传递选项:no-video-title-show以禁用视频上的媒体标题.见http://wiki.videolan.org/VLC_command-line_help
使用VLCJ 1.2.0的示例:
String[] options = {
":sharpen-sigma=2.0",
":blur-factor=127",
":ipv4-timeout=3000",
":no-video-title-show",
":loop",
":file-caching="+getFileCaching(),
":sout-all",
":sout-keep"
};
gc.getMediaPlayer().setRepeat(true);
gc.getMediaPlayer().setPlaySubItems(true);
gc.getMediaPlayer().playMedia(media, options);
Run Code Online (Sandbox Code Playgroud)
更新:
最近的libVLC 2.0.x更改vout功能可能导致no-video-title-show不再使用per-playitem配置:no-video-title-show,可能需要设置为全局配置--no-video-title-show.在VLCJ工厂构造函数中传递每全局配置选项,MediaPlayerFactory(options)而不是mediaplayer的xxxMedia方法.
| 归档时间: |
|
| 查看次数: |
3589 次 |
| 最近记录: |