Can a SWF file be made to play wav, wma and mp4? - actionscript-3

I am putting together a website that uses a templating system. It contains a plugin that lets users upload/share music files so anyone can listen to them via the website's flash player.
It works with mp3 files only. Is there a way to make the player play other formats such as wav, wma, mp4, etc?

Here is the list of natively supported codecs by the Flash Player:
http://kb2.adobe.com/cps/402/kb402866.html
If you need to play something not natively supported, there are external API's that will allow you to do so, just chose a Flash Sound API:
http://www.google.com.br/search?q=flash+sound+API

Related

HTML5 video player showing to enable flash in browser. How can I play stream video without enable the flash?

I made a streaming server and a website to show the Video. I have tried with many HTML5 player. But problem is no player working without enable flash on browser. There are a website http://jagobd.com and its playing video even I block flash on this site. How they did it? and How can I get this kind of player open source? could you please give me any solution?
My streaming link is Rtmp
RTMP is a Flash technology, and only plays in Flash or other players that support it. No browser supports RTMP, and it's unlikely that any will in the future.
If you want to use a regular HTML5 player, you need to use a compatible streaming format. Consider DASH. While it doesn't have native support in-browser, it doesn't need it as it can be handled with MediaSource Extensions. Most modern browsers support MSE. Many encoders do as well, and you can use whatever static web hosting or CDN you want.
There are other options for video distribution as well, if you have special streaming requirements.

How to play .ts files (video/MP2T media type) in Browser?

I have one .m3u file that points to several .ts files (all in akamai).
Because we give to akamai a live stream, they convert it to these .ts files each of 10s. I see that the m3u files are easy to understand, but I can't find a browser based (flash, html5 or native plugin) player for these files.
If I give to vlc the link of the m3u file, vlc plays all the .ts files one after another as if it where only one big file. I want to use flash or something similar to be able to play in browser, the same way vlc can play those .m3u files.
Is this possible ?
You are basically talking about Apple's HLS format.
You can use an html5 object in your web page. You can use http://osmfhls.kutu.ru/ flash plugin. You can use jwplayer. There are more choices (e.g. flowplayer).

Play Flac files on website

Is there a way to play Flac files on a website, preferably using HTML5 and/or jQuery?
I don't know any in-browser Flac player. But, if you are after a loseless file format, you can consider mp3HD, which is also loseless, like Flac, but is backwards compatible with mp3, which means that any mp3 player can play it.

Playing local video files in HTML

A project has various local HTML & video files for help pages. We need to be able to embed these videos in HTML pages - but because all are local files we have no server-side streaming.
Can I still just use SWFObject? Are there other well-known controls that will let us play .mp4, .swf/flv, .wmv files?
This solution is targeting HTML4 across Chrome, FF and IE (I don't know if IE6 is needed).
SWF can reproduce different video formats (FLV, F4V, H.264, although you need a component that handles the reproduction of the video.
For simple reproduction, you don't need a streaming server.
There are different video players available, with open source, freeware or commercial license.
You can check, both Open source:
FlowPlayer
JW Flv player (HTML5 support)
The FLVPlayback component will play FLV video from the same web server the page is hosted on. You don't need a dedicated media server to do that, unless you need more advanced streaming and/or interactive features.

How do I embed wmv/mpg/avi/mov/etc videos reliably?

I am trying to embed video files (wmv, mpg, avi, mov, etc.) dynamically by creating embed elements in javascript. The problem I am running in to is this has not been very reliable across all browsers and even if it does work, there is no guarantee that the end user has the required plugin to play the video. Ideally, I would convert everything to flv or an HTML5 video format but this is not currently possible due to cpu/disk space restrictions (these are videos uploaded by the end user, not me). I feel like this shouldn't be as difficult as it has presented itself to be - does anyone have any suggestions?
To the day VLC release a browser plug-in, the best way is to convert them to .FLV or .MP4 files server side. And use a free Flash video player for the playback (I mean HTML5 with Flash fallback).
If you do not want to convert those videos, let the end user directly download the files. And deal with the problem of multiple video format himself.
edit:
Or you could move your website out of the HTML browser, and build a desktop software, that can take charge of all those videos format, client side.
edit2:
Use Youtube API or any other already existing video hosting services. Personally I will avoid this solution.
The only way to do it reliably is with flash. Use ffmpeg to convert incoming videos to .FLV and use a flash player.