ActionScript 3.0 :: Incredible, Ridiculous Video Lag When Using Seek()?

Oct 5, 2010

I'm working on development of a medical training app and have come across a stumbling block I can't work out. I'm using FlashCS5, and AS3.Basic setup is this:

- 1 flvplayback with an H.264 MP4 loaded into it, stock controller

- 1 standard UILoader with a jpeg put into it

The jpeg still image is a sideview of a medical image, and the idea is that the user can move their mouse over this image and move the corresponding movie to a certain timecode. The full width of the image maps directly to the length of the movie clip, i.e. if you put your mouse on the very left of the still image, you are at 0 seconds of the movie, all the way on the right will be 49 seconds.

So, attached to my UILoader I added a simple routine that gets the mouseX, does some basic math to determine how far into the movie we should go, and sets the movie to that time.The problem is that using playheadTime, seek(), or seekSeconds() gives me incredible lag. You can move the mouse on the still image and the output window shows instantaneous reporting of the proper calculated time, but the movie itself might take 5-10 seconds to actually move to that time.

The movie has been rendered out using the CS5 Media Encoder and has a keyframe every 1 sec.Here is a link to a screen capture I did to show the problem. As you can see, using the standard controller is pretty responsive, but my other method is unusable. This happens locally as well, with the movie being fully loaded instantly.

h t t p://cl.ly/2gZY (1MB, quicktime)

Partial code, very basic:

ActionScript Code:
screenImageView.addEventListener(MouseEvent.MOUSE_MOVE, pullbackJump);
...
public function pullbackJump(e:MouseEvent):void {

[code].....

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Getting Flv Video Seek Bar Control?

Aug 3, 2009

i am working in Flash AS2. still now i want one flv video play back with seek bar control animation script (not a Flvplayback component).

View 0 Replies

ActionScript 2.0 :: Seek Bar For An Embedded Video?

Nov 19, 2010

Does anyone know of any tutorials that explain how to make a seek bar with a handle that will be linked to the main timeline, so that when you move the handle the animation will move too, e.g. if you drag the handle to the centre of the bar then it will skip to the middle of the animation?

I currently have a handle that move on the x axis with in a set boundary, but not sure how to link it to the main timeline.

View 0 Replies

ActionScript 3.0 :: Video Scrubber/Seek Bar?

May 11, 2009

I'm looking for a tutorial on the interwebs to create a scrubber for the length of a movie clip.For example:If a movieclip is 300 frames long, the beginning of the scrubber would be Frame 1 and the end would be Frame 300 with Frames 2-299 in the middle.I'd like the user to be able to scroll through the movie much like a Quicktime VR

View 2 Replies

ActionScript 3.0 :: Seek To A Not-yet-loaded Second In Fl.video.VideoPlayer?

May 11, 2009

I'm using fl.video.VideoPlayer and I'd like to be able to seek arbitrarily within the video. seek() works unless the given time isn't yet loaded, in which case the video hiccups and continues playing normally. I'd like it to seek to the specified second even if it's not yet loaded, loading/buffering as necessary. I've tried seek() and play() and haven't been able to make this work.

View 1 Replies

ActionScript 1/2 :: Implementing A Seek Bar For Video Player?

Aug 2, 2009

implement a seek bar for a video player. I know some basics about that. If possible send me any tutorials for that.

View 2 Replies

Flash :: Flv/video Player Which Allows To Seek For Part Of Not Loaded Video Part?

Mar 11, 2012

I'am looking for a flv/video player which allow to seek for not loaded part of the video,just like on youtube.

View 1 Replies

Flash :: Getting Error While Trying To Seek In My Streaming Video Player

Jan 28, 2010

I'm building a video player here[url]...

It's streaming RTMP, and I'm trying to get my video to seek correctly if the user clicks on the groove bar (gray bar under the green progress bar) Currently it does not seek and gives me a NaN on my duration variable and an error on my progress bar width variable, which is puzzling me.

For some reason my videoDuration variable is coming up as NaN when used inside of my seeker function, also I'm getting a null object reference error when trying to trace out playerCntrls.progressTotalW which is the total width of the groove bar[code]...

View 1 Replies

ActionScript 3.0 :: Video FLV Seek Beyond Loaded Buffer Like YouTube

Oct 14, 2009

Does anyone know if it's possible to get your FLV to seek to a point beyond what's already been loaded into the buffer... just like how youTube does it?I want it to seek to the new point, drop all buffered data that it had before and then just start buffering from the new point.I'm NOT (and can't) use a media streaming server - is this possible without it? After a bit of research it's not looking good :sIf you can't do it then I'm thinking I'll have to preload the whole FLV before the user even sees anything!

View 5 Replies

ActionScript 2.0 :: Seek To Specific Point In Video Before It Buffered

May 22, 2010

I'd like to start playing a web-based video at a specific time, say 2 minutes in, even if the video hasn't been downloaded that far. I thought I could just "seek" to that time but that apparently only works when the video is buffered first.

So for example, this:
Code:
nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
ns.play("[URL]");
ns.seek(123);
video.attachVideo(ns);

Seems to work if you have the video cached or buffered or whatever, but if you don't it gives the "NetStream.Seek.InvalidTime" error, which makes sense. I want to know if it's possible to start playing a video at a specific time, even if the video hasn't loaded up to that point.

View 1 Replies

ActionScript 2.0 :: Ridiculous Load Time For A Huge String?

Mar 30, 2010

i need to upload a ridiculously huge text file into Flash MX 2004 and turn it into an array. The loading part is not a problem: the issue is splitting the array.

The original string is approximately 531,000 characters long and needs to be turned into a multi-dimensional array of 3500 elements split into another 20 elements (array[3500][20]). Unfortunately when I try to make the initial split into 3500 elements (which I would later need to split again into 20 using a for loop) the Flash takes a ridiculous amount of time to load.Most of the time Flash just crashes: I tried splitting the string into just 50 elements and it took me around 7 seconds. My computer usually has no problems with basic tasks like these.

So, what should I do? Is there a way to change memory allocation to Flash? Should I split the string? Should I create multiple text files, load them into separate loadVars objects and split those? Or am I just trying to do something too big for Flash?

View 4 Replies

Professional :: Volume And Seek Bar Handles Missing From Video Player?

Dec 13, 2010

I am creating a custom flash video player for my friend's wife's surprise 40th birthday party. I was progressing through and everything was working fine, but now the seekbar and volume bar handles are completely gone. I was working on doing some buttons to load each video segment when I realized the missing handles. My actionscript is below:

import fl.video.*;
var flvPlayer:FLVPlayback = new FLVPlayback();addChild(flvPlayer);
flvPlayer.playButton = playbtn;  flvPlayer.pauseButton = pausebtn; flvPlayer.seekBar =

[code].....

View 5 Replies

ActionScript 3.0 :: NetStream.seek() Not Seeking To Start Of Video On Mobile

Nov 4, 2011

I have a "video on demand" video that I'd like to seek at any point of the video. It's playing on a Motorola Xoom tablet. I can seek to the beginning of the video when the playhead is near the beginning. However, if I the playhead is towards the end of the video and I attempt to seek to the beginning of the video, the video seeks many seconds after the start of the video. I thought this might be a buffering issue, so I set inBufferSeek to true, but I still have the same issue.

View 2 Replies

Actionscript 3 :: Seek Playhead To Specific Location In Flash Video?

Dec 21, 2011

If you load up a FLVPlayback component in Flash or VideoDisplay in Flex and try to seek to a specific location or set playheadTime to a specific location, the movie always rounds up or down by very large amountsIn flash, drag a FLVPlayback component to stage and set source to Then try to video.seek(6) or video.playheadTime = 6;It will just goto 10. Likewise if you use their built in scrubber the only intervals are 0, 5, or 10. So at most the scrubbing frame you see is 3Here is an example of flex with the same result.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:media="com.synapsegroup.media.*">

[code].....

View 1 Replies

ActionScript 3.0 :: Video Player - Adding Seek From Download Functionality

Sep 1, 2011

I have a video player that doesn't have "seek from unloaded time" functionality. I want to add it now. I simply load video like this;
stream.play("vidurl.flv");
(pseudo streaming)
Server side is ready. I can call videos like videourl.flv?start=xxx but cant play them in player cuz video comes without metadata
To sum up:
1. stream.play("vidurl.flv"); works, video plays
2. user clicks to seek bar. on unloaded part. I get the position and convert it to seconds
stream.play("vidurl.flv?start=10");
Doesn't work! No metadata what I should do after?

View 0 Replies

Actionscript 3.0 :: Seek Unloaded Time In Flash Video Player?

Jun 21, 2011

I created a flash video player. Could any one show me how to seek unloaded time in flash video player?

View 1 Replies

ActionScript 3.0 :: When Seek To A Point That Has Not Downloaded Yet The Video Player Freezes

Apr 30, 2009

I am using progressive download to play video files in a video player. When I seek to a point that has not downloaded yet the video player freezes. The player enters the seeking state and stops playing.Clicking the play and pause buttons has no effect. The video player comes out of the seeking state and resumes playing only when the video file has completely downloaded. How do I implement the functionality where the player when seeked to a point that has not downloaded simply seeks back to the amount that has downloaded.

View 1 Replies

ActionScript 2.0 :: Incredible Amazing Extraodinary Full Screen Mode?

Sep 28, 2007

when one right-clicks the screen you will see "go full screen" in the menu. It launches a purely full-screen mode (not just a large toolbarless window). It seems to be the same function used by DivX.

View 5 Replies

ActionScript 3.0 :: VideoError:1003: Invalid Seek At Fl.video::FLVPlayback/seekToNavCuePoint()

Sep 4, 2009

I am using an flv file with navigation cue points.  When I try clicking on a button I created to go to "EndOfMovie" I get the following error: VideoError: 1003: Invalid seek at fl.video::FLVPlayback/seekToNavCuePoint()at vectorVideo_fla::MainTimeline/skipToEnd()

[Code]...

View 1 Replies

Actionscript 3 :: Seek Function Donīt Work On Flex VideoPlayer After The Video Finish?

Jan 22, 2012

The video seeks normally when first playing but when it finishes i canīt seek the video again. I used a listener to call a function after the event TimeEvent.COMPLETE occurs(video finishes). In the function i call the function player.seek(20) for example but it doesnīt work. The video keeps in the end of it.

View 1 Replies

Flex :: Seek To An Exact Point In A Flash Video Without A Flash Media Server?

Aug 20, 2010

Is the Flash Video (or Flex VideoDisplay) component capable of seeking to an exact moment in a video?It seems to always 'snap' to keyframes (which is understandable). I'm just wondering if there are any mechanisms in the video classes for seeking to exact frames, ie it should do the translation from keyframe to specific frame in the background rather than having to actually play the video forward to the desired frame.This is not a streaming file and has nothing to do with buffering. The player is just downloading a movie file from the web and playing it from memory.

View 1 Replies

ActionScript 3.0 :: Makes Button Visible...but Button Stays Visible If They Seek Back In Video?

Mar 30, 2011

when the video reaches 1 minute, a button appears. is there a way to hide the button again if the user uses the seek bar to go back to the 30 second (or any time before 1 minute) point?

View 2 Replies

Use Seek() In Flowplayer With An FLV File?

Nov 16, 2009

Is it possible to use Flowplayer (flowplayer.org) and the seek() function with an FLV file?

View 3 Replies

Actionscript 3 :: Seek Bar In Flash?

Jun 1, 2010

I have created a flash movie in AS3, I wanted to have a seek bar [or a Back and Forward button] to move my movie forward/backward.

View 1 Replies

ActionScript 2.0 :: Seek Bar For Streaming Mp3?

Aug 4, 2008

I am working on a music player where the music list is loaded using xml. I am using sound object and the streaming property is set to 'true'. Now I want to calculate sound.duration, but I don't get the actual value when it is streaming, probably because the entire file is not downloaded at once because of streaming, and it is returning the duration of the portion of the file downloaded. So I am unable to develop a seek bar which shows the current position of the music.

I even tried to get the file duration using ID3 tag but the TIME property does not seem to work either.

Another options could be using php to get the duration of the mp3 file and generate an xml file which specifies the duration of the file.

View 9 Replies

ActionScript 2.0 :: Clicking FLV Seek Bar?

Oct 24, 2008

if Flash can listen for a click/drag on the seek bar playhead from the FLV player controls? I'm attempting to perform an action when a user drags the playhead through the video.

View 2 Replies

ActionScript 2.0 :: Add Seek Bar MP3 Player?

Sep 24, 2009

I built an MP3 player a couple years back in AS2. I have tried various tutorials and can't seem to implement a basic seek bar. I am hoping for something with a draggable scrubber bar.I have attached the .as file, and stripped out all my failed seek bar code. It's currently published to work with Flash Player 8, and works fine - except for no seek bar.

View 2 Replies

ActionScript 2.0 :: Clickable Seek Bar?

Sep 29, 2011

iam using media display for display video , and media controller for controlling flv video, i want the seek bar to be clickable ,i made the clicking,but how to make the video to jump to the clicked time line. iam editing the mediacontroller.fla in .../en/components/ and coverting it into swc and using it

on(release)
{
var mcli = _parent._tray._xmouse;

[code].....

View 1 Replies

ActionScript 3.0 :: Seek Button For FLV Component?

Oct 29, 2009

I'm building an flv player using the cs4/as3 video playback component as a basis with custom buttons on the interface. I'm trying to figure out how to do rewind or fastfoward using a button instead of a scrub bar. I've seen plenty of tutorials on how to develop a scrub bar but I can't figure out a way to apply the theory to a button you hold down and it fast forwards/rewinds until you mouse off.

Obviously a mouse_down event only fires one signal and causes a jump effect if you click repeatedly, so is there a way of firing multiple events whilst holding down the mouse button?

Code:
flvPlaybackComponentname.seek(flvPlaybackComponentname.playheadTime + fastForwardSeekAmount);

to achieve the skip through the video, but this only happens as I said with multiple clicks.

View 4 Replies

ActionScript 3.0 :: Timeline Seek Bar For Animation

Oct 27, 2008

I'm not able to create a working seek bar (or progress bar or timeline bar) to give the viewer complete control for where they want to play an animation. The animation is a .fla file, which moves frame-by-frame with motion tweens). There are 4446 total frames (at 12 fps), so I'd like the viewer to be able to skip ahead or back as they desire. The instructions I've found so far all have to do with FLV files instead of FLA.I've tried the following Actionscript, but I get errors(which are also listed below). As the seek bar object, I'm using the UIScrollBar (with a horizontal direction).[code]I'm more than willing to try a different Actionscript.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved