dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Problem playing flv

  1. #1
    Junior Member
    Join Date
    Mar 2007
    Posts
    1

    Problem playing flv

    Hi Friends,
    I was trying to make a custom video player. I inserted an embeded video from library (i m using flash mx 2004 pro). then i aded a new layer for actions and ad the following code in the first frame of actions layer

    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);

    theVideo.attachVideo(ns);
    ns.play("test.flv");

    where "theVideo" is the instance name of embeded video and "test.flv" is the flv file which is in the same directory.

    my problem is when i click on test movie, it displays nothing. i even tried to publish the flash document but i can't see the movie even in the html file.

    I need healp desperately. my whole development is stuck due to this problem. help me guys...

  2. #2
    Junior Member
    Join Date
    Mar 2007
    Posts
    14
    Quote Originally Posted by rajusohi
    Hi Friends,
    I was trying to make a custom video player. I inserted an embeded video from library (i m using flash mx 2004 pro). then i aded a new layer for actions and ad the following code in the first frame of actions layer

    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);

    theVideo.attachVideo(ns);
    ns.play("test.flv");

    where "theVideo" is the instance name of embeded video and "test.flv" is the flv file which is in the same directory.

    my problem is when i click on test movie, it displays nothing. i even tried to publish the flash document but i can't see the movie even in the html file.

    I need healp desperately. my whole development is stuck due to this problem. help me guys...
    is your Flv with in the same folder as your FLA? And when you publish make sure you add the URL of the FLV's location in you web site to the ns.play feild. ie: ns.play("http://www.mysite.com/myflv/test.flv").

  3. #3
    Banned For a Long Time
    Join Date
    Dec 2006
    Location
    My house
    Posts
    35
    if you upload your file to server you must set the url as absolute address.
    Press shift+F7 to find it

  4. #4
    Junior Member
    Join Date
    Nov 2003
    Posts
    3

    No sound on my video???

    I don't understand it there is no sound on my vidoe flv.

    I import a quicktime video with sound and it does not appera in my file.

    Any thoughts?

  5. #5
    Junior Member
    Join Date
    Mar 2007
    Posts
    14
    Quote Originally Posted by oakmeister
    I don't understand it there is no sound on my vidoe flv.

    I import a quicktime video with sound and it does not appera in my file.

    Any thoughts?
    try converting/encoding your .mov or quicktime file into an .avi

    there should be no reason why the quicktime file shouldnt work but try something else and see if thats why. Also ON2 and Sorenson Spark use MP3 as audio codec. Make sure your quicktime files are using the same.

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