I'm using flex 3.
I've successfully played video and audio files by using following libraries:
flash.media.Video
flash.media.Sound
Live docs link.
But the limitations are as follow:
- Video class can be used to play only flv file format.
- To play mp3 files I must use audio file.
So can I play most of the famous audio/video files by using single method?
Well by checking the file type w开发者_如何学Ce can some how achieve it. Then I should create a component for that.
So can any one suggest me such ready-made components? or is there any other alternatives to play audio/video files?
You want to play any video/audio formats in flash? (Almost) impossible. ActionScript libraries will not help you - ActionScript has not enough power to decompress video in realtime. Maybe this is possible with Alchemy, but I haven't seen codecs implemented this way... Usually, people are converting their content to FLV which is played by Flash player natively.
精彩评论