-
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...
-
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").
-
if you upload your file to server you must set the url as absolute address.
Press shift+F7 to find it
-
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?
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|