我如何在asp.net网页中使用mplayer。我知道如何在c#form应用程序中使用mplayer [英] How do i use mplayer in asp.net web pages.i know how to use mplayer in c# form application

查看:54
本文介绍了我如何在asp.net网页中使用mplayer。我知道如何在c#form应用程序中使用mplayer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我知道如何根据这个链接

i想知道如何在asp.net网页中使用mplayer。

i想要一个网页上的玩家我可以告诉它播放一个较大的视频的一部分,例如从0:1:10到0:3:20。

提前谢谢你。

感谢任何帮助。



我尝试过:



i学会了如何在C#表单应用程序中使用mplayer,我搜索了解如何在asp.net网页中使用它,但我没有找到任何办法。

解决方案

如果你指的是Windows Media Player,那就是一个ActiveX控件。如果您在网页中使用它,它只能在Windows上的Internet Explorer中工作,并且只有在用户允许它运行时才能使用。



如果你想要显示您网页中的视频,请使用 < video> 元素 [ ^ ]。



如果您想播放声音,请使用 < audio> 元素 [ ^ ]。



这两种产品都具有良好的浏览器支持,可以在多种操作系统上运行。唯一的问题是将您的媒体文件转换为支持不同浏览器所需的不同格式。

HTML音频和视频元素支持的媒体格式 - HTML | MDN [ ^ ]

Hi
I know how to use mplayer in C# form application according to this link.
i wanna know how to use mplayer in asp.net web pages.
i want a player on web page that I can tell it to play a part of a larger video for example from 0:1:10 to 0:3:20 .
thank you in advance.
any help is appreciated.

What I have tried:

i learned how to use mplayer in C# form application and i searched to know how to use it in asp.net web pages but i did not find any way.

解决方案

If you're referring to the Windows Media Player, that's an ActiveX control. If you use that in a web page, it will only work in Internet Explorer on Windows, and only if the user allows it to run.

If you want to show video in your web page, use the <video> element[^].

If you want to play sounds, use the <audio> element[^].

Both of these have decent browser support, and will work on multiple operating systems. The only problem will be converting your media files to the different formats required to support different browsers.
Media formats supported by the HTML audio and video elements - HTML | MDN[^]


这篇关于我如何在asp.net网页中使用mplayer。我知道如何在c#form应用程序中使用mplayer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆