header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
amar
Points:210
Posts:11

12/24/2009 6:44:53 AM

Title: rtmpe streaming


i have a video player, it is streaming through RTMP...and it is working perfect. but as a security purpose we need RTMPE streaming. we code for RTPME as NetConnection.connect("rtmpte://servername.com"); but its is not working. i have searched in google but didnt find the solution. plz help me out...what to do...it is really urgent. thnx in advance.



1
Garry
Points: 0
Posts:0
12/24/2009 6:59:51 AM



To make RTMPE work you should meet the following minimum requirements : 1) Flash player 9.0.115.0 or greater on client side 2) Flash media server 3 or greater on server side . 3)Ports : Any one of the( 1935, 443, 80 ) ports available on client side. If you dont specify the port in connection .It will try on 1935, then 443 and then 80; For testing purpose disable all your spyware, anitivirus, Bitdefender and firewalls.

2
Gflash
Points: 0
Posts:0
12/24/2009 9:16:25 AM



update your flash player to latest version, install debug version in order to capture any exception if occurring.

3
amar
Points: 210
Posts:11
12/24/2009 10:22:45 AM



thanks for your help. i m working on flash cs3...but it is still not working...even i have just activated for SWF varification...facing ame prblm...not streaming either in rtmp or rtmpe.

4
Mark
Points: 0
Posts:0
12/24/2009 12:48:04 PM



hi, this is the code for rtmp streaming
 var myVideoInstance:Video = my_video_instance; var nc:NetConnection = new NetConnection(); var connected:Boolean = nc.connect("rtmp:/localhost/myStreamingApp"); var ns:NetStream = new NetStream(nc); myVideoInstance.attachVideo(ns); ns.play("flvName");
Check the following if not able to connect: *You might be behind a firewall. Use direct connection to internet if testing online. *Some security softwares like bitdefender sometimes interfere with the packet data, I faced this issue once. *Your netconnection is successful. *Your server has outgoing and incoming ports open. * Test your ports using this tool http://www.flashcomguru.com/apps/port_test/index.cfm

5
amar
Points: 210
Posts:11
12/24/2009 2:55:35 PM



thanx mark, I know this code..currently i m using RTMP streaming but i need to stream my video in RTMPE PROTOCOL, bcoz of swfverification. so plz help me in RTMPE .. thnx Mark

6
Mike Hakak
Points: 0
Posts:0
5/17/2011 10:59:13 AM



The protocol is similar to rtmp, however:

Check to make sure you don't have some kind of tokenization key that needs to be verified along with the stream:

so your stream might be something like this:
rtmpte://servername.com/flv/myStream.flv?auth=XAHDFhjasfaDHAS

you would need to parse out that authentication key and process it as a property of the connection.... This is a bit complicated, so check if there is a key along with the stream first, if so, I will go into detail on how to work with that.

The more likely cause that your connection fails is due to swf verification. You need to copy your application (eg: videoplayer.swf) file to specific folder on the flash media server.

The reason is that, FMS will try to see what is the file attempting to retrieve the stream, and if it sees that the file is not an EXACT copy of the one listed in its verification folder, than you get a big rejection on connection.

Mike

7
Mike Hakak
Points: 0
Posts:0
5/17/2011 1:11:35 PM



I made the assumption that you are using a Flash Media Server.

In case you are not, try seperating out your server call and stream call:

netConnectionObject.connect ("servername.com") - no RTMPE://

once connected, your stream would be ("/flv/myStream.flv")

Mike


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 1+17+2 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions