本文介绍了如何使用影片播放器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
在我的项目中,有aq要求才能播放最新格式的视频,例如mp4,avi,wmv,3gp等.因此,我需要一个视频播放器.我应该使用哪个视频播放器以及如何使用?我想如果有人打开网页视频,则应在我选择的播放器中播放.请帮助我...我长期以来一直面对这个问题...所以请提供最佳解决方案...
在此先感谢...
hi to all,
in my project there is aq requirement to play latest format videos like mp4,avi,wmv,3gp etc. so i require a video player. which video player should i use and how? i want if any one opens a webpage video should be played in the player which i selected. please help me ...i am facing this problem since a long time...so please give a best solution...
thanks in advance...
推荐答案
string myobj = "";
myobj += "<video width='462' controls='controls' data-setup='{}'>";
myobj += "<source src='http://www.yourdomain.com/videos/Video.mp4' type='video/ogg' />";
myobj += "Your browser does not support video";
myobj += "</object>";
myobj += "</video>";
Literal1.Text = myobj;
注意-视频路径必须与上述相同
跟随脚本替换音频
Note- video path must be same as above
for audio replace script by Following
<audio controls="controls">
<source src="song.ogg" type="audio/ogg" />
<source src="song.mp3" type="audio/mpeg" />
Your browser does not support the audio element.
</audio>
希望对您有帮助
祝你好运
快乐编码:)
Hope this help u
best Luck
Happy Coding :)
这篇关于如何使用影片播放器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!