在JavaFX 2中播放带字幕的视频 [英] Play video with subtitles in JavaFX 2

查看:99
本文介绍了在JavaFX 2中播放带字幕的视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到JavaFX 1有一个SubtitleTrack类用于从视频文件中提取字幕,但是我在JavaFX 2中找不到等效的功能(javafx.scene.media中一个类似命名的类似乎不存在.在所有情况下都实现了功能吗?还是计划在将来的版本中使用该功能?

I notice that JavaFX 1 has a SubtitleTrack class for extracting subtitles from video files, but I can't find equivalent functionality in JavaFX 2 (a similarly named class in javafx.scene.media doesn't appear to exist. Is this functionality implemented at all in which case where has it moved to? Or is it planned for a future release?

推荐答案

我认为JavaFX 2.2没有实现视频字幕支持.

I don't think video subtitle support was implemented for JavaFX 2.2.

我认为针对媒体轨道的公共API更改功能实现了您所需要的功能问一下.您可以在最新的 jdk8快照发行版中测试实现.

I think the Public API changes to media Tracks feature implements the functionality you ask about. You can test out the implementation in the latest jdk8 snapshot release.

这篇关于在JavaFX 2中播放带字幕的视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆