Skip to main content
Known Participant
February 23, 2010
Question

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

  • February 23, 2010
  • 2 replies
  • 1959 views

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 has been closed for replies.

    2 replies

    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    February 23, 2010

    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

    Zeeek_90Author
    Known Participant
    February 23, 2010

    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.

    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    February 23, 2010

    Hi,

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

    videoObject.attachNetStream ( NetStreamObject );

    Regards,

    Janaki L

    Participating Frequently
    February 23, 2010

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