Stream .asf video from web page (embedded player in HTML)

瘦欲@ 提交于 2019-12-23 12:13:19

问题


I need for my web page to have video player that supports .asf format. My .asf files have 2 video streams.

Windows media player works fine for this. Here is my example: http://weblectures.yolasite.com/

and scenarios of opening link above:

  1. Chrome, in Ubuntu, it won't work or just one video stream will start
  2. IE, in Windows 7, it won't work
  3. Chrome, in Windows 7 it works (both video streams are streaming)

My ultimate goal is that user/client has to do minimal effort to stream a video from my web page. I don't want for e.g. that user has to go on JW Player and downlad it and then install it so he could stream my videos.

And also it has to work on all platforms (Windows, Ubuntu, MAC OS X).

Questions (it is similar to this question but I have to play .asf that has 2 video streams.

  1. Is HTML5 solution?
  2. I've seen that Ubuntu has problems with .asf, is there a way to play it in Ubuntu?
  3. Is there some "universal" player?

回答1:


For ASF/WMV your only cross-platform option right now is probably Silverlight. Microsoft has stated that the only codec they are going to support for HTML 5 is MP4.

Silverlight works in IE, Firefox, Chrome and on PC/MAC's. I don't know exactly about the current state of Moonlight, the Unix implementation of Silverlight, but this might be an option there as well.

There are several open source media players for Silverlight:

  1. http://silverlight3.codeplex.com/
  2. http://slvideoplayer.codeplex.com/

Edit for Moonlight info:

Moonlight was built by Novell in collaboration with Microsoft which provided Novell with test suites, specifications, open source code and Media Codecs to create an entirely open sourced Silverlight-compatible implementation for Unix systems.

Access to licensed Media Codecs (MP3, WMV, VC-1) is provided by Microsoft to Moonlight 1.0 and 2.0 users. The first time that you access a web site that requires these codecs, Moonlight will prompt you to download the codecs from Microsoft and install those on your system.



来源:https://stackoverflow.com/questions/4100070/stream-asf-video-from-web-page-embedded-player-in-html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!