Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Load video from rtsp

New Here ,
Mar 31, 2013 Mar 31, 2013

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.

TOPICS
ActionScript
10.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 31, 2013 Mar 31, 2013

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();

Translate
Community Expert ,
Mar 31, 2013 Mar 31, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 31, 2013 Mar 31, 2013

Thank you for the reply. I see. Well, in case i have a rtmp, how can i load it with flash?

Thank you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 31, 2013 Mar 31, 2013

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();

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 02, 2013 Apr 02, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 02, 2013 Apr 02, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 02, 2013 Apr 02, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 02, 2013 Apr 02, 2013

check on the videoLAN webiste.  if that's a publically available plug-in they should have code published showing how to embed their player.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 05, 2013 Apr 05, 2013

Thanks. I checked there but no answer. I think it would be enough if im able to load the html from the swf movie.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 05, 2013 Apr 05, 2013

you can load html from flash using getURL().

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 06, 2013 Apr 06, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 06, 2013 Apr 06, 2013

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:

  • "_self" specifies the current frame in the current window.
  • "_blank" specifies a new window.
  • "_parent" specifies the parent of the current frame.
  • "_top" specifies the top-level frame in the current window.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 06, 2013 Apr 06, 2013

Hi,

i first tried with _self but still it opens in another window and not inside the flash..

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 06, 2013 Apr 06, 2013

copy and paste the code you tried.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 20, 2013 Apr 20, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 01, 2013 May 01, 2013

Hello??

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 16, 2013 May 16, 2013

Help please??

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 16, 2013 May 16, 2013

upload the swf and html published by flash to your server and post a link to your embedding html page.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 12, 2014 Sep 12, 2014

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 30, 2014 Nov 30, 2014
LATEST

Try this one. http://www.fstreamer.com

Support RTSP and HLS,  and require a socket policy server

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines