Skip to main content
Known Participant
Feb 23, 2010 8:08 AM UTC
Question

video is streamed but is not working together with the player skin(?)

nc = new NetConnection();
nc.connect( "rtmpe://localhost/vod" );
nc.onStatus = function( info )
{
    trace( info.level + ": " + info.code + " " + info.description );
   
    if ( info.code == "NetConnection.Connect.Success" )
    {
        ns = new NetStream( nc );
        ns.onStatus = function( info ) { trace( info.level + ": " + info.code + " " + info.description ); }
        ns.play( "sample" );
    }
}

nc.stat = function( a, b ) {
    trace( "stat called " );
    // if you return anything else (or don't return anything at all)
    // stream access will not be turned on, so playbacks will fail
    return a*b;
}

This is my code that i have inserted into the first frame(?) of the fla file.

When I use the swf in a html web page, i can hear the video but I can't see it and play skin cannot control the video.

This is also a part of a security token code which i'm implementing on the client-side.

Help Please?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    14 replies

    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    Feb 23, 2010 8:52 AM UTC

    Hi,

    Your stream play started, but you cannot view the video is it? But can listen to audio, is that what you mean? Have you attached your netstream object to your video component?

    Your code looks clean.

    Regards,

    Janaki L

    Translate
    Zeeek_90Author
    Known Participant
    Feb 23, 2010 9:02 AM UTC

    Hey!

    yup, there's the skinplayer, but it's not controlling the video.


    I can't see the video but can hear the audio.

    how do i do that? attach the netstream object to video component..

    thanks.

    Translate
    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    Feb 23, 2010 11:00 AM UTC

    Hi,

    use the below statement to attach the netstream object to your video object.

    videoObject.attachNetStream ( NetStreamObject );

    Regards,

    Janaki L

    Translate
    Participating Frequently
    Feb 23, 2010 8:52 AM UTC

    Can you let me know which version of Flash Player are you using in your browser.

    Translate