Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: 弹幕功能优化请求 #245

Open
cyb233 opened this issue Jan 28, 2025 · 1 comment
Open

[Feature Request]: 弹幕功能优化请求 #245

cyb233 opened this issue Jan 28, 2025 · 1 comment

Comments

@cyb233
Copy link

cyb233 commented Jan 28, 2025

你希望开发者添加什么功能?

1:通过大航海和成就等,可以突破原有的弹幕20字限制,如图1,2所示
此外,输入法输入拼音时,不应因拼音字母数超限而截断,导致输入被打断
另外输入框的弹幕无法被Ctrl+X剪切

2:弹幕查看器最小宽度定死了450,影响同屏有限宽度放多窗口了

3:希望在播放器窗口右键增加打开弹幕查看器的功能

4:弹幕查看器缺乏直播间关联的窗口名,切换窗口时不能快速找到,如图3

5:关于WebPlayWindow(兼容播放窗口),由于其无法发送弹幕,或许可以添加设置项兼容播放窗口打开时自动打开弹幕查看器

此外一些可以考虑的小的细节:VlcPlayWindow打开弹幕输入框时自动获得焦点,记忆各个直播间音量设置等

图1
Image
图2
Image
图3
Image

什么使用场景?

观看直播和输入弹幕时

相关信息

问题1:

private void DanmaOnly_DanmaInput_TextChanged(object sender, TextChangedEventArgs e)
{
System.Windows.Controls.TextBox? textBox = sender as System.Windows.Controls.TextBox;
if (textBox != null && textBox.Text.Length > 20)
{
int selectionStart = textBox.SelectionStart;
textBox.Text = textBox.Text.Substring(0, 20);
textBox.SelectionStart = selectionStart > 20 ? 20 : selectionStart;
}
}

问题2:
Title="DanmaOnlyWindow" Height="500" Width="450" MinWidth="450" Closing="FluentWindow_Closing">

问题3:
<Grid.ContextMenu>
<ContextMenu>
<MenuItem Header="窗口置顶" Icon="{ui:SymbolIcon BorderTopBottomThick20}" Click="MenuItem_TopMost_Click"/>
<Separator/>
<MenuItem Header="刷新" Icon="{ui:SymbolIcon ArrowClockwise20}" Click="F5_MenuItem_Click"/>
<MenuItem Name="SwitchPlaybackClarity_Menu" Header="切换清晰度" Icon="{ui:SymbolIcon Fps6020}">
</MenuItem>
<Separator/>
<MenuItem Header="展示\隐藏弹幕" Icon="{ui:SymbolIcon Chat20}" Click="MenuItem_Switch_Danma_Exhibition_Click"/>
<Separator/>
<MenuItem Header="切换全屏状态" Click="FullScreenSwitch_MenuItem_Click" Icon="{ui:SymbolIcon FullScreenMaximize20}"/>
<MenuItem Header="展示弹幕发送框" Icon="{ui:SymbolIcon News20}" Click="MenuItem_Switch_Danma_Send_Click"/>
<MenuItem Header="在浏览器打开直播间" Icon="{ui:SymbolIcon WebAsset20}" Click="MenuItem_OpenLiveUlr_Click"/>
<Separator/>
<MenuItem Header="关闭本窗口" Click="ExitWindow_MenuItem_Click" Icon="{ui:SymbolIcon ArrowExit20}"/>
</ContextMenu>
</Grid.ContextMenu>

问题4:

应增加类似VlcPlayWindow中的
this.Title = $"{roomCard.Name}({roomCard.RoomId}) - {roomCard.Title.Value}";

@cyb233 cyb233 changed the title [Feature Request]: 弹幕字数上限配置 [Feature Request]: 弹幕功能优化请求 Feb 5, 2025
@CHKZL
Copy link
Owner

CHKZL commented Feb 10, 2025

bf9d2ae 中已经修改

1、在设置中增加可以弹幕配置最大长度的配置项,剪切和输入法问题本地没有复现
2、窗口最小宽度修改为了300,再小顶栏会出问题(关闭缩小那几个按钮)
3、增加了
4、修改了标题
5、在设置中增加了相关开关

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants