I'm having problems with live streaming.
When I use my own Flash Media Server at localhost it works perfect, but when I use my CDN and OSMF I get the next error message:
Error: Connection refused by FMS.
It works perfect if I use NetConnection and NetStream.
This is my piece of code:
var container:MediaContainer = new MediaContainer();
_mp = new MediaPlayer();
_mp.autoRewind = false;
var videoElementStatic:VideoElement = new VideoElement(new StreamingURLResource("rtmp://myhost/myapp/live/livestream",StreamType.LIVE_OR_RECORDED), new NetLoader());
_mp.media = videoElementStatic;
P.D.: My CDN is Level 3
I'm not sure whether Level 3 requires the FMS application instance. But you might want to try the instruction in this thread:
I doubt that's the problem though, because that should prevent the connection from happening entirely. It sounds more like an authentication issue, you might need to follow up with Level 3 to make sure you have any necessary token in your URL.
Thank you!! it works!