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.
发布评论
评论(3)
嗯...当我想显示元数据信息时,我遇到了类似的问题。
我最终创建了一个视图覆盖并将元数据放在那里。
我认为我在文档中没有遇到任何其他方式。
但你将会遇到更多的麻烦。如果您有一个视频文件,您将必须检查视频中的特定点是否已到达,然后更新叠加层上显示的字符串......可能有点混乱。
等待更聪明的人提出更好的答案。 :)
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.