A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [F8] Simple problem - Video not visible on Load

  1. #1
    Senior Member drn33's Avatar
    Join Date
    Mar 2006
    Posts
    104

    [F8] Simple problem - Video not visible on Load

    Good morning, I am sure this is a simple fix, but I'm not having much luck.

    I am loading videos dynamically via XML. I've got it loading correctly and I can hear each one play, but I cannot see it. My code is below:

    I created a blank MC called "myVideo" that I want it to load into. The XML value is a variable called "theVideo" which is tracing correctly.

    PHP Code:
    var nc:NetConnection = new NetConnection(); 
    nc.connect(null); 

    var 
    ns:NetStream = new NetStream(nc); 
    ns.setBufferTime(5);
    ns.play(theVideo); //theVideo is my XML loaded value
    myVideo.attachVideo(ns); 
    Also, it won't unload when I navigate away. Any suggestions?

    Thanks for your help.

  2. #2
    Senior Member drn33's Avatar
    Join Date
    Mar 2006
    Posts
    104
    I'm still having some trouble. I can make it play and be visible easily with the following code:

    myVideo1.contentPath = theVideo;
    myVideo1.play ();


    But I need it to stream and buffer. I am also open to a FLVPlayback component if that's easy. I tried it already and it won't show up either.

  3. #3
    Senior Member drn33's Avatar
    Join Date
    Mar 2006
    Posts
    104
    Okay, so I have it working with FLVPlayback using this code:

    import mx.video.*;
    myVideo2.contentPath = theVideo;


    But I still can't make it buffer and stream. Any help would be greatly appreciated.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center