actionscript 3 - I can't play a valid RTMP stream in OSMF -


i'm building application strobe media playback in , can't play rtmp stream.

the weird thing here can play stream on jwplayer , in simple flash video player classic netstream , netconnection code.

http://www.longtailvideo.com/jw-player/wizard/

this stream: rtmp://fl.world-television.com/streamstudio/vod/flv:endesa/20130422/video_full_es_v2.flv

i don't know if need set special configuration through osmf params.

this how have been played video in simple flash cs application.

package {     import flash.display.sprite;     import flash.events.netstatusevent;     import flash.events.securityerrorevent;     import flash.media.video;     import flash.net.netconnection;     import flash.net.netstream;     import flash.events.event;       public class videotest extends sprite {         private var videourl:string = "rtmp://fl.world-television.com/streamstudio/vod/flv:endesa/20130422/video_full_es_v2.flv";         private var connection:netconnection;         private var stream:netstream;          public function videotest()         {             initialize();         }          private function initialize():void         {             connection = new netconnection();             connection.addeventlistener(netstatusevent.net_status, netstatushandler);             connection.addeventlistener(securityerrorevent.security_error, securityerrorhandler);             connection.connect("rtmp://fl.world-television.com/streamstudio/vod/" );         }           private function netstatushandler(event:netstatusevent):void {             trace("net status handler: " + event.info.code);             switch (event.info.code) {                 case "netconnection.connect.success":                     connectstream();                     break;                 case "netstream.play.streamnotfound":                     trace("stream not found: " + videourl);                     break;             }         }          private function securityerrorhandler(event:securityerrorevent):void {             trace("securityerrorhandler: " + event);         }           private function connectstream():void         {             stream = new netstream(connection);             stream.addeventlistener(netstatusevent.net_status, netstatushandler);             var video:video = new video();             video.attachnetstream(stream);             stream.play("endesa/20130422/video_full_es_v2");             addchild(video);         }     } } 

i think problem here osmf it's not slicing url correctly , it's trying connect (netconnection) or trying play (netstream) bad string.

edit:

solved removing "/vod" in url.

you try here:

http://osmf.org/dev/2.0gm/debug.html?wmode=direct&width=470&height=320&src=rtmp%3a%2f%2ffl.world-television.com%2fstreamstudio%2fendesa%2f20130422%2fvideo_full_es_v2


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

java - Using an Integer ArrayList in Android -