Flash rmtp + mp3 audio stream monitoring software

Does anyone know a software tool that runs as a Windows service (not a desktop app) and that can monitor a Flash rtmp and mp3 audio stream?
The idea is to monitor a radio station's live audio stream so that warnings can be issued when the stream falls out.
Any suggestions are highly appreciated...
digital1steinAsked:
Who is Participating?
 
dgofmanConnect With a Mentor Commented:
Here what you can do with MP3 streaming on Flex and Flash.

The volume, ranging from 0 (silent) to 1 (full volume).

var url:String = "http://mp3.streampower.be/fmbrussel96";
var volume:uint = .5;
var request:URLRequest = new URLRequest(url);
var soundFactory:Sound = new Sound();
var channel:SoundChannel = new SoundChannel();
var soundtransform:SoundTransform;
var positionTimer:Timer;
      
function loadMP3() {
      soundFactory.addEventListener(Event.COMPLETE, completeHandler);
      soundFactory.addEventListener(Event.ID3, id3Handler);
      soundFactory.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
      soundFactory.addEventListener(ProgressEvent.PROGRESS, progressHandler);
      soundFactory.load(request);
      channel = soundFactory.play();
      soundtransform = channel.soundTransform;
    soundtransform.volume = volume;

      channel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);

      positionTimer = new Timer(50);
      positionTimer.addEventListener(TimerEvent.TIMER, positionTimerHandler);
      positionTimer.start();
}

function positionTimerHandler(event:TimerEvent):void {
      trace("positionTimerHandler: " + channel.position.toFixed(2));
}
            
function completeHandler(event:Event):void {
      trace("completeHandler: " + event);
}

function id3Handler(event:Event):void {
      trace("id3Handler: " + event);
}

function ioErrorHandler(event:Event):void {
      trace("ioErrorHandler: " + event);
}

function progressHandler(event:ProgressEvent):void {
      trace(event.bytesLoaded + " : "+ event.bytesTotal);
}

function soundCompleteHandler(event:Event):void {
      trace("soundCompleteHandler: " + event);
      positionTimer.stop();
}
loadMP3();
0
 
dgofmanCommented:
I think you have to use Adobe AIR
0
 
digital1steinAuthor Commented:
Is that because of technical limitations due to the rtmp streaming protocol?
I'd rather prefer a service than a desktop app...
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
dgofmanCommented:
rtmp is like ftp stream protocol is you lost connection you have to load again
0
 
digital1steinAuthor Commented:
So, technically it should be perfectly possible to develop a software tool in like C# or another language that can monitor the connection and see if something comes through?
I mean: we're not bound to Adobe Air then?
0
 
dgofmanCommented:
Please can you give me URL to your stream file I will try to implement AS monitoring
0
 
digital1steinAuthor Commented:
The MP3 stream is at http://mp3.streampower.be/fmbrussel96

The RTMP stream is at rtmp://live.flash.streampower.be/fmbrussel/fmbrussel_hi
0
 
dgofmanCommented:
I cannot get access to these files. By the way would you like to monitoring network connection or loaded bytes/?
0
 
digital1steinAuthor Commented:
Let me check tomorrow why the links don't work (don't have access to them now either).

Well, actually I would like to check whether something comes through the stream or not.
In practice:
1) can a connection be made to the stream? yes or no?
2) is there audio available or only silence? (if there is silence, then there is also a problem as the stream is running, but no audio is going over the stream)

I'll come back to you tomorrow.
0
 
digital1steinAuthor Commented:
Dgofman, I'm able to play the rtmp stream but only from within a Flash player like Movea
http://www.moyea.com/flv-player/

The MP3 stream is still a riddle, I'll check that out in the morning.
0
 
dgofmanCommented:
I downloaded Moyea FLV Player and tried to open your URL (nothing)

rtmp://live.flash.streampower.be/fmbrussel/fmbrussel_hi
0
 
digital1steinAuthor Commented:
What about the mp3 stream? Got it working now.
0
 
dgofmanCommented:
0
 
digital1steinAuthor Commented:
dgofman,

Are you suggesting that I would develop the tool I was looking for in Flash or Flex?
I'm not sure what to do with the info you gave me.
0
 
dgofmanCommented:
Another cool feature you can add controlling Network stream and buffering

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.html#attachAudio()
0
 
dgofmanCommented:
0
 
dgofmanCommented:
And finnaly you can apply this code for handling all your probelms

http://forums.adobe.com/thread/438472?decorator=print&displayFullThread=true
0
 
digital1steinAuthor Commented:
Sounds like this is the perfect tutorial to develop a player, but it's not exactly what I'm looking for I'm afraid.
I simply wanted to know with which technology it is possible to monitor (meaning: see if the stream exists and if anything comes through - in case of failure send out alerts)
an audio stream as a Windows service (running in the background).
I'm sure Flash would do the trick, but that's a desktop app, not a service.
Flex I'm not familiar with.
0
 
digital1steinAuthor Commented:
Since I have no exact answer on my question, I'll be closing the thread.
Anyway thank you for your efforts, dgofman, as you were the only one that responded to my question.
0
 
digital1steinAuthor Commented:
question was not accurately answered
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.