WPF中的嵌入式Flash播放器可以播放哪些文件格式?它只是SWF吗?

时间:2015-02-12 14:41:03

标签: c# wpf activex axshockwaveflash embedded-flashplayer

我在WPF中嵌入了 axShockwaveFlash ,当我想通过 LoadMovie 方法或电影属性设置媒体时,我可以提供本地*.swf并看到结果,但如果我给 Mp4(h.264)我什么也看不见! 在此之前,我已经嵌入了 VLC播放器插件,我可以提供不同的类型。 Flash播放器只能播放swf吗?那你怎么用youtube呢?我觉得我完全混淆了!

1 个答案:

答案 0 :(得分:0)

The axShockwaveFlash can only open swf files. to play video formats using this control, you should use a player.swf (that made by adobe flash to play flv files) like the one youtube using.

The player.swf contains the seek bar, volume button and other options.

so you should load a player.swf inside axShockwavwFlash and load the flv file inside this player.

Here is an example of loading flv video inside axShockwaveFlash. to play other formats you can embed Windows Media Player inside your win form.