Search code examples
flashwmvasf

Could flash media player play wmv/asf format media?


I have tried to play wmv/asf file in HTML page, but always Windows Media Player is embedded in browser, but Flash Media Player is not embedded.

Here is my code to embed Flash Media Player. I suspect it is because Flash Media player does not support wmv/asf format, so even if I explicitly assign "application/x-shockwave-flash" value, Flash Media player is not displayed. Any ideas?

Does Flash Media player support wmv/asf file?

<html>
<body>
<embed src="http://myserver/videos/123.asf" quality="high" width="480" height="400" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"></embed>
</body>
</html>

Solution

    1. There's an obvious confusion here : Flash Player is not directly a media player. The source specified in the embed should be a SWF. On the other hand there are media players built in flash (e.g. JW FLV Media Player).

    2. Flash doesn't accept WMV but uses FLV / MPEG-4.

    3. The streaming protocol used is RTMP, not sure how to handle an ASF stream in flash.