Copy link to clipboard
Copied
Hi,
i wonder if its possible to load streaming video from a rtsp server. I have this adress:
rtsp://173.208.220.150/asahi.qwcporgfdukrxzk
i want to create a swf file that laods and plays the video stream from there. Is it possible?
Thank you.
you would use something like:
var nc:NetConnection = new NetConnection();
nc.connect("rtmp://173.208.220.150/asahi.qwcporgfdukrxzk");
var ns:NetStream=new NetStream(nc);
var video:Video = new Video();
video.attachVideo(ns);
ns.play();
Copy link to clipboard
Copied
no, flash doesn't support rtsp.
flash uses rtmp for streaming video.
if you control the streaming server, you may be able to convert rtsp to rtmp.
Copy link to clipboard
Copied
Thank you for the reply. I see. Well, in case i have a rtmp, how can i load it with flash?
Thank you.
Copy link to clipboard
Copied
you would use something like:
var nc:NetConnection = new NetConnection();
nc.connect("rtmp://173.208.220.150/asahi.qwcporgfdukrxzk");
var ns:NetStream=new NetStream(nc);
var video:Video = new Video();
video.attachVideo(ns);
ns.play();
Copy link to clipboard
Copied
Thank you. Seems like the server wont support rtmp. Is there a way to load an html page that has the movie embedded? the html would look like this
<embed height="400" width="600" version="VideoLAN.VLCPlugin.2" type="application/x-vlc-plugin" target="rtsp://173.208.220.150/asahi.qwcporgfdukrxzk" style="margin-left: 10px;" pluginspage="http://www.videolan.org" loop="yes" id="vlc" autoplay="yes">
Thank you.
Copy link to clipboard
Copied
for rtmp, you need to use a flash server like adobe media server or red5.
i don't know what players are out there for rtsp but i'm pretty sure none have much penetration.
Copy link to clipboard
Copied
Yes, i understand that, but the server is no mine so there is nothing i can do except to load it from an html. But i wonder if i can load that html from my swf file.
Copy link to clipboard
Copied
check on the videoLAN webiste. if that's a publically available plug-in they should have code published showing how to embed their player.
Copy link to clipboard
Copied
Thanks. I checked there but no answer. I think it would be enough if im able to load the html from the swf movie.
Copy link to clipboard
Copied
you can load html from flash using getURL().
Copy link to clipboard
Copied
I didt know you could do that with getURL(), i thought it was only to open links on a browser window. In fact, thats what it does when i use this script:
getURL("page.html", "justin");
where justin is the name of the movie clip instance i made which is supposed to be the container for the loaded page. However, it only opens the page on a new browser window. Any hint please?
Thank you.
Copy link to clipboard
Copied
the 2nd parameter in getURL is not a movieclip. it's a string that indicates which window into which the url should open:
window:String (default = null) — The browser window or HTML frame in which to display the document indicated by the request parameter. You can enter the name of a specific window or use one of the following values:
Copy link to clipboard
Copied
Hi,
i first tried with _self but still it opens in another window and not inside the flash..
Copy link to clipboard
Copied
copy and paste the code you tried.
Copy link to clipboard
Copied
Sorry about the late reply. I had to flee home because of North Korean threats. Anyway, this is my code
getURL("page.html", "_self");
but when i open the swf either it loads nothing or the page is loaded in a now window.
Copy link to clipboard
Copied
Hello??
Copy link to clipboard
Copied
Help please??
Copy link to clipboard
Copied
upload the swf and html published by flash to your server and post a link to your embedding html page.
Copy link to clipboard
Copied
There is now a player for this: Locomote Video Player: https://github.com/AxisCommunications/locomote-video-player. Disclaimer: I am the author.
Locomote supports RTSP (and RTMP[S,E,T], MP4 and FLV). It uses sockets to connect so a socket policy server (see http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html) is required.
Copy link to clipboard
Copied
Try this one. http://www.fstreamer.com
Support RTSP and HLS, and require a socket policy server
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more