Play video with subtitles in JavaFX 2

我是研究僧i 提交于 2020-01-21 09:13:59

问题


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?


回答1:


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

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.



来源:https://stackoverflow.com/questions/13197243/play-video-with-subtitles-in-javafx-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!