FLV load problem

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 4th, 2007, 11:20
New Member
Join Date: Jul 2007
Location: Turkey
Age: 23
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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);
}
Reply With Quote

  #2 (permalink)  
Old Jul 5th, 2007, 15:05
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
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)
Reply With Quote
Reply

Tags
flv, upload

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 20:22.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43