Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-26-2011, 07:14 AM   PM User | #1
slappyjaw
Regular Coder

 
slappyjaw's Avatar
 
Join Date: Mar 2009
Location: Wonderland!
Posts: 146
Thanks: 14
Thanked 3 Times in 3 Posts
slappyjaw has a little shameless behaviour in the past
Question dynamic flvplayback

Hey everyone, I'm trying to make a flash video player with the flvplayback component that dynamically gets the video file path from flashvars. For some reason it doesn't work. Here is what I have. I've tried every tutorial for setting and getting flash vars I could find.
Code:
import fl.video.*;
var vp:FLVPlayback = new FLVPlayback();
var path:String;
vp.source = this.root.loaderInfo.parameters.path;
var starttime:Number;
vp.seek(this.root.loaderInfo.parameters.starttime);
vp.playWhenEnoughDownloaded();
vp.registrationX = 0;
vp.registrationY = 0;
vp.bitrate = 5600;
vp.registrationHeight = 400;
vp.registrationWidth = 533.3;
vp.bufferingBar = bb;
addChild(vp);
and html
Code:
<param name=FlashVars value="starttime=60&path=/files/movies/The_Wasp_Women.mp4" />
The video is supposed to look like its streaming. The start time of the movie is determined by the php by subtracting the unix time of when it started from the current unix time. Then it should be passed through the flash vars to make it seek to that time. Thanks in advance for any help.
slappyjaw is offline   Reply With Quote
Old 06-27-2011, 04:51 AM   PM User | #2
slappyjaw
Regular Coder

 
slappyjaw's Avatar
 
Join Date: Mar 2009
Location: Wonderland!
Posts: 146
Thanks: 14
Thanked 3 Times in 3 Posts
slappyjaw has a little shameless behaviour in the past
ok so i got it to work but im having a problem. It noticed it was taking a long time to buffer the video. Then i realized that the way that the player was set up is that it must load the whole video to the point being seeked. Is there anyway without a streaming server to make it like youtube where it empties the buffer and then buffers from the seek point on? Thanks again for any help, i know its an obscure question.
slappyjaw is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 03:52 PM.


Advertisement
Log in to turn off these ads.