Professional Web Applications Themes

live stream - Macromedia Dynamic HTML

Hi, I need to take a URL for a live stream and have it pop up in a designated media player. For instance, the QuickTime stream will be coming from: rtsp://catstream1.cat.uaf.edu/ruralhealth.sdp I will have a link on a webpage that should open the QT player and start playing the live feed from the above URL. (I also have to do this with windows media from another URL.) Anyone know how to do this? Steve...

  1. #1

    Default live stream

    Hi,
    I need to take a URL for a live stream and have it pop up in a designated
    media player.

    For instance, the QuickTime stream will be coming from:
    rtsp://catstream1.cat.uaf.edu/ruralhealth.sdp

    I will have a link on a webpage that should open the QT player and start
    playing the live feed from the above URL.

    (I also have to do this with windows media from another URL.)

    Anyone know how to do this?

    Steve


    AKsteve Guest

  2. #2

    Default Live stream

    Hi,
    I have FMS2, Flash 8 and this client-side code:

    var client_nc:NetConnection;
    var out_ns:NetStream;
    var in_ns:NetStream;

    emisor_cam = Camera.get();
    emisor_video.attachVideo(_root.emisor_cam);

    function doConnect() {
    client_nc = new NetConnection();
    client_nc.onStatus = function(info) {
    trace("Level: " + info.level + " Code: " + info.code);
    }
    client_nc.connect("rtmp://loca lhost/videochat/" + _level0.sid);
    }

    function publishMe() {
    out_ns = new NetStream(_root.client_nc);
    out_ns.attachVideo(_root.emiso r_video);
    out_ns.publish(_level0.eid);
    }

    function playMe() {
    in_ns = new NetStream(_root.client_nc);
    receptor_video.attachVideo(in_ ns);
    in_ns.play(_level0.rid);
    }
    // Connect to the server
    doConnect();

    // Publish the live stream
    publishMe();

    // Play back the stream from the server
    playMe();

    Modified from a sample. I run two web pages with this flash where _level0.sid
    is the room id, and _level0.eid and _level0.rid are crossed values.
    I see at FMS Admin that the two users connect to the same instance and that
    they publish and play the streams, but they can only view their published
    strem. They cannot view the in_ns stream.
    This worked fine with FCS. What's the matter?


    rethor Guest

  3. #3

    Default Re: Live stream

    And why this is not recording anything?:
    out_ns.publish(_level0.eid,"record");
    It appears as Live Stream at Admin Console.


    rethor Guest

  4. #4

    Default Re: Live stream

    Ok, I found the stupid error
    out_ns.attachVideo(emisor_cam);
    Instead
    out_ns.attachVideo(emisor_video);

    rethor Guest

Similar Threads

  1. can stream LIVE, but can't stream FLV -=
    By adamscott30 in forum Macromedia Flash Flashcom
    Replies: 1
    Last Post: July 17th, 10:09 PM
  2. Embed live cue data in live stream?
    By mconnell1 in forum Macromedia Flash Flashcom
    Replies: 7
    Last Post: July 12th, 06:01 PM
  3. Mirroring a live stream
    By Neeeol in forum Macromedia Flash Flashcom
    Replies: 2
    Last Post: April 9th, 09:20 PM
  4. LIVE stream using FCS
    By or-tec in forum Macromedia Flash Flashcom
    Replies: 1
    Last Post: February 6th, 06:37 PM
  5. Live webcam stream with FMS!
    By Tekkster in forum Macromedia Flash Flashcom
    Replies: 1
    Last Post: January 13th, 09:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139