开发者

Any possibility to add subtitl in AxWindowsMediaPlayer control?

I am using axWindowsMediaPlayer control in my windows mobile application with using .net CF 2.0, I want to play the video with subtitle.(S开发者_StackOverflow中文版RT file type) Any one know how to add the SRT file in AxWindowMediaPlaye ,It is possible ?

Pl. give me some suggestions

Thank you in advance.


Yes, write or find a DirectShow filter that displays the subtitle. You can also write your own player.

For ASF playback (e.g. wmv, wma) on PC you need to add a script stream to the file. Not sure if the mobile version of WMP supports captioning.


As I know the Windows Media Player doesn't suuport the SubRip SRT-Files, but the smi (SAMI-Files, closed captions). I use the smi-file to show the multi-language subtitles. You can covert very easy your srt to the smi, or create your own smi subtitles, using a free "Subtitle Workshop" tool.

You can also add another language to the smi, here is some samples: Captioning for Windows Media. You can also change the language of the subtitles using the closedCaption properties, like

AxWindowsMediaPlayer.closedCaption.SAMILang = "German";

or set the smi-file direclty

AxWindowsMediaPlayer.closedCaption.SAMIFileName = "subtitles.smi";
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜