Play video with subtitles in JavaFX 2

2020-03-27 10:13发布

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条回答
家丑人穷心不美
2楼-- · 2020-03-27 10:40

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.

查看更多
登录 后发表回答