?
Solved

Flash rmtp + mp3 audio stream monitoring software

Posted on 2011-05-11
22
Medium Priority
?
1,442 Views
Last Modified: 2012-08-13
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...
0
Comment
Question by:digital1stein
  • 12
  • 10
22 Comments
 
LVL 29

Expert Comment

by:dgofman
ID: 35741833
I think you have to use Adobe AIR
0
 

Author Comment

by:digital1stein
ID: 35742017
Is that because of technical limitations due to the rtmp streaming protocol?
I'd rather prefer a service than a desktop app...
0
 
LVL 29

Expert Comment

by:dgofman
ID: 35749398
rtmp is like ftp stream protocol is you lost connection you have to load again
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 29

Expert Comment

by:dgofman
ID: 35749402
0
 

Author Comment

by:digital1stein
ID: 35749639
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
 
LVL 29

Expert Comment

by:dgofman
ID: 35750350
Please can you give me URL to your stream file I will try to implement AS monitoring
0
 

Author Comment

by:digital1stein
ID: 35750454
The MP3 stream is at http://mp3.streampower.be/fmbrussel96

The RTMP stream is at rtmp://live.flash.streampower.be/fmbrussel/fmbrussel_hi
0
 
LVL 29

Expert Comment

by:dgofman
ID: 35750507
I cannot get access to these files. By the way would you like to monitoring network connection or loaded bytes/?
0
 

Author Comment

by:digital1stein
ID: 35750535
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
 

Author Comment

by:digital1stein
ID: 35750589
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
 
LVL 29

Expert Comment

by:dgofman
ID: 35750842
I downloaded Moyea FLV Player and tried to open your URL (nothing)

rtmp://live.flash.streampower.be/fmbrussel/fmbrussel_hi
0
 

Author Comment

by:digital1stein
ID: 35753133
What about the mp3 stream? Got it working now.
0
 
LVL 29

Expert Comment

by:dgofman
ID: 35755443
0
 

Author Comment

by:digital1stein
ID: 35757807
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
 
LVL 29

Accepted Solution

by:
dgofman earned 1500 total points
ID: 35758259
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
 
LVL 29

Expert Comment

by:dgofman
ID: 35758284
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
 
LVL 29

Expert Comment

by:dgofman
ID: 35758299
0
 
LVL 29

Expert Comment

by:dgofman
ID: 35758321
0
 
LVL 29

Expert Comment

by:dgofman
ID: 35758336
And finnaly you can apply this code for handling all your probelms

http://forums.adobe.com/thread/438472?decorator=print&displayFullThread=true
0
 

Author Comment

by:digital1stein
ID: 35779096
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
 

Author Comment

by:digital1stein
ID: 35796523
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
 

Author Closing Comment

by:digital1stein
ID: 35796536
question was not accurately answered
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network ports are the threads that hold network communication together. They are an essential part of networking that can be easily ignore or misunderstood, my goals is to show those who don't have a strong network foundation how network ports opera…
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses
Course of the Month15 days, 22 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question