Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Audio stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 06-05-2008, 02:31 PM
jzeel
 
Posts: n/a
Default

Software development: Streaming audio with Flash Media Server(RTMP):Reading rtmp MP3


Hello 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
Reply With Quote
Reply Post New Thread
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 07:46 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons