Stream .asf video from web page (embedded player i

2019-06-26 05:12发布

问题:

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.



回答2:

maybe you can try how is explained here: http://forums.cnet.com/7723-6615_102-14875.html

I'm also trying it right now. It's a Javascript solution that could be a nice (and lightweighted) solution....



标签: video stream asf