Skip navigation
_pjriot
Currently Being Moderated

Implementing a fallback mechanism for RMTFP to RTMP

Oct 14, 2010 9:17 PM

Hi folks,

 

So I've run into several of the oft-discussed NAT problems with an RTMFP app I've written in Flex. (borrowing heavily from the VideoPhone sample) What I'd like to do is write a fallback mechanism for the app to use RTMP if RTMFP fails. Now, both users have registered with stratus, but when I get to the placeCall function, even though it completes successfully for the caller, the callee never actually receives anything.

 

Can someone point me in the right direction for discovering if the callee's media stream is actually active? Also, since the callee may have to "allow" flash to access their webcam is there a way of distinguishing between those 3 states? i.e. 1) not connected, no way. 2) just waiting on the callee to click allow and 3) yup, connected.

 

I've also read that its possible to start the two connections simultaneously. (both RTMP and RTMFP) In that case presumably you would be sending twice as much data as needed and would cut the RTMP connection once you have detected the active RTMFP stream. Is this the correct approach in general terms?

 

Any hints at all would be much appreciated.

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points