Playing a RMTP FLV problem!

Posted Posted by Ercan in Actionscript     Comments No comments
Mar
20

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

Spam Protection by WP-SpamFree