This is a discussion on "FLV load problem" within the Flash & Multimedia Forum section. This forum, and the thread "FLV load problem are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
FLV load problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
FLV load problem
I try to write a FLV player component(dont want to use existing player). I have a problem about upload FLV file..
In my computer the following codes are working but on the net it is not. What would be the problem or do have an alternative solution? First approach; var my_video:Video; // my_video is a Video object on the Stage var my_nc:NetConnection = new NetConnection(); my_nc.connect(null); var my_ns:NetStream = new NetStream(my_nc); my_video.attachVideo(my_ns); my_ns.play("f1.flv"); //or//my_ns.play(http://www.mediacollege.com/video-ga...51210-w50s.flv); ************************************************** **** alternatively using CASA flvLoad class flvLoad= new FlvLoad(this.video_v,"f1.flv");//video_v is Video object flvLoad.addEventObserver(this, FlvLoad.EVENT_BUFFER_PROGRESS); flvLoad.addEventObserver(this, FlvLoad.EVENT_BUFFER_COMPLETE); flvLoad.start(); function onBufferProgress(sender:FlvLoad, percentBuffered:Percent, secondsTillBuffered:Number):Void { trace("Video " + Math.round(percentBuffered.getPercentage()) +"% buffered."); trace("Video will be buffered in " + Math.round(secondsTillBuffered) + " seconds."); } function onBufferComplete(sender:FlvLoad):Void { flvLoad.getNetStream().pause(false); } |
|
|
|
|||
|
Re: FLV load problem
It probably has something to do with how you are referencing the file path to the video - try using an absolute path instead of just "name.flv".
Cheers, Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
![]() |
| Tags |
| flv, upload |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fade in on load? | jtyoungs | JavaScript Forum | 6 | Nov 9th, 2007 07:10 |
| Load Last | fizzgig | JavaScript Forum | 5 | Sep 20th, 2007 20:07 |
| Load time | acrikey | Flash & Multimedia Forum | 3 | Jul 23rd, 2007 16:54 |
| HELP!!! Images won't load IE 6 | Lilas | Graphics and 3D | 1 | Dec 23rd, 2005 18:08 |
| load css to flash for xml | Ozeona | Flash & Multimedia Forum | 0 | Sep 27th, 2005 00:38 |