Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Software development: Streaming audio with Flash Media Server(RTMP):Reading rtmp MP3Hello everybody,
I want to read a audio file mp3 by rtmp protocol (FLASH MEDIA SERVER)... streaming. There is my first code before : //--- __sound = new Sound(); var filename = "rtmp://vwwma.bnquebec.ca/vod2/0003403950.mp3"; play.onRelease = function(){ __sound.loadSound(filename, true); } stop.onRelease = function(){ __sound.stop(); } //--- When I finish to read the Flash LiveDocs I modify my code as: //--- import flash.media.Sound; import flash.media.SoundLoaderContext; import flash.net.URLRequest; var s:Sound = new Sound(); var req:URLRequest = new URLRequest("rtmp://vwwma.bnquebec.ca/vod2/0003403950.mp3"); var context:SoundLoaderContext = new SoundLoaderContext(8000, true); s.load(req, context); s.play(); //--- Localy it's work but when I put my RTMP protocol, I'm still have this error: Erreur d'ouverture de l'URL 'rtmp://vwwma.bnquebec.ca/vod2/0003403950.mp3' Error #2044: IOErrorEvent non pris en charge : text=Error #2032: Erreur de flux. at audio3_fla::MainTimeline/frame1() Where is the problem? Thanks for your help? Jzeel |
Tags: flash media server, read rtmp mp3, reading rtmp mp3 |
Thread Tools | |
Display Modes | |
|
|