开发者

How to add subtitles to video [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only开发者_高级运维 by editing this post.

Closed 2 years ago.

Improve this question

I want to add subtitles inside a video programmatically. Can we dynamically add subtitles to video. Any help will be appreciated.


Hmm... I had a similar problem when i wanted to display metadata information. I ended up creating a view overlay and putting the metadata there. I dont think i encountered any other way in the documentation.

You are going to have a lot more trouble though. If you have a video file, you are going to have to check if a particular point in the video had been reached, and then update the string being shown on the overlay.... Might be a little messy.

Stand by for the smarter ones to come up with a better answer. :)


The best thing you can do here is add an overlay view and you will be done, i don't think that the movie player class must be having any property or method to add subtitles so adding an overlay view is the best option.


You can try embedding subtitle directly to the video and play it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜