Playing a RMTP FLV problem!
While working on a flash video player, everything was fine when I used an http video as the source of the player.
var netConnection:NetConnection = new NetConnection(); netConnection.connect(null); var netStream:NetStream = new NetStream(netConnection); _videoplayer.attachVideo(netStream); netStream.play("http://www.domain.com/myvideo.flv");
Problems started when I decided to play a flv file on a Flash Media Server.
var netConnection:NetConnection = new NetConnection(); netConnection.connect("rtmpe://85.***.**.***/"); var netStream:NetStream = new NetStream(netConnection); _videoplayer.attachVideo(netStream); netStream.play("myvideo.flv");
So, what was the problem ? I changed addresses, client types, objectencoding etc. couple of times and finally found that problem could be solved by only deleting 3 magic letters : “flv” ! By using netStream.play(“myvideo”) instead of netStream.play(“myvideo.flv”) solved everything . Learned that no need to use “.flv“ while working on rmtp server. Hope this also helps to you….
Post comment
Blog Categories
- Actionscript (3)
- Air (4)
- Android (6)
- BLOG (4)
- Flex (3)
Recent Posts
- Using Button in ExpandableListView
- Showing flash objects in WebView
- Using Android library projects in custom builds
Archives
- June 2012
- December 2011
- October 2011
- September 2011
- July 2011
- June 2011
- August 2010
- June 2010
- May 2010
- March 2010

Posted by Ercan in