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


Similar Posts:


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

Flex :: Detect Source Video Size VideoPlayer?

Apr 30, 2010

Is it possible in Flex 4's VideoPlayer control (spark.components.VideoPlayer) to detect some attributes of the source video?

In my case, it's a local file. I would need to detect the original width and height of the input source video (an h264 f4v).

View 2 Replies

Flex :: Flash - Getting Exect Time Of Currently Playing Flv Video Stream In VideoPlayer?

Dec 5, 2010

How to get timestamp with milliseconds or better nanoseconds of currently playing video?

View 1 Replies

ActionScript 3.0 :: Load New Video Into VideoPlayer?

Jul 15, 2011

I've made a very simple video player from bits I've found on the internet and it's working great provided I want to only use 1 video...

I have added two buttons on the stage and the idea is, if you click "videoBtn1_mc" it plays video1 and if you click "videoBtn2_mc" it plays video2.

I can't seem to eject/unload the first video that is loaded in. Once it loaded in it will just play that one no matter which btn I click...

Here is my code. The buttons I'm referring to are right at the bottom...

ActionScript Code:
import flash.events.MouseEvent;
//------------------------------------------------------------------------------------------
////CONSTANTS////

[Code].....

What must I add to eject/unload the current video so the new one can load in?

View 4 Replies

Html :: Fl.video.VideoPlayer Loads Flv Relative To Swf?

Nov 9, 2009

Update: Turns out this is undocumented behaviour of the NetStream class - NetStream loads relative to the swf, as opposed to URLRequest which loads relative to the HTML doc...annoying.I am having a strange issue where loading an FLV file using thefl.video.VideoPlayer class that comes with CS4: Adobe docs hereUsually when loading external content into flashplayer, the path is relative to the HTML page that the swf is embedded in - but when I try and load an FLV using the VideoPlayer class the player looks for a path relative to the swf, not to the HTML (as you would expect).

eg:
My file setup is:index.html (which contains the swf)swf/my-video-player.swfvideo/my-video.flv

[code].....

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 :: Toggling Video Fullscreen And Positioning Videoplayer UI?

Oct 12, 2011

I've landed a project which is centered around building a custom video player with some special functionality (so I can't just use the default Flash video player, unfortunately). I have two small 'problems' in the sense that I could probably solve them myself, but I'd like some input on best practice for solving them:(The project is for Flash Player 10 and the video is intended to run inside a browser.)

Toggling between normal / fullscreen playback Ok, so my custom video player needs to be able to toggle between fullscreen and normal embedded-in-webpage player size. How does fullscreen toggling currently work in AS3 -is there a specific AS3 method for fullscreening a specified video object in the swf (without stretching the video player UI in the swf itself), and if so, does it automatically black out the background if the screen format doesn't match the video format? - or do I need to download a class for this?

Positioning video player UI when going fullscreen As opposed to YouTube, I want the player UI to still show up when the video is toggled to fullscreen mode - but as mentioned above, I don't want to stretch its size along with the video. So is there a best practice for repositioning the video player UI to the vertical bottom and horizontal center of the screen when the user clicks full screen? I'm not entirely familiar with what happens to the Flash stage when it goes full screen,. How to deal with not knowing the coordinates of the vertical bottom/horizontal center when screens have different ratios and resolutions?

View 3 Replies

Actionscript 3.0 :: Flv Preload - Add Function To Videoplayer Class

Jul 25, 2009

I want to add this function to my videoplayer class :

[Code].....

In order to have a preloader in case the video takes time to dl. How do I rely it to the the netsream, what do I have to add , and where exactly?

View 1 Replies

ActionScript 3.0 :: Toggling Video Fullscreen And Positioning Videoplayer UI - Best Practice?

Oct 12, 2011

I've landed a project which is centered around building a custom video player with some special functionality (so I can't just use the default Flash video player, unfortunately). I have two small 'problems' in the sense that I could probably solve them myself, but I'd like some input on best practice for solving them: (The project is for Flash Player 10 and the video is intended to run inside a browser.)

Problem 1: Toggling between normal / fullscreen playback Ok, so my custom video player needs to be able to toggle between fullscreen and normal embedded-in-webpage player size. How does fullscreen toggling currently work in AS3 -is there a specific AS3 method for fullscreening a specified video object in the swf (without stretching the video player UI overlay), and if so, does it automatically black out the background if the screen format doesn't match the video format? - or do I need to download a class for this?

Problem 2: Positioning video player UI when going fullscreen As opposed to YouTube, I want the player UI to still show up when the video is toggled to fullscreen mode - but as mentioned above, I don't want to stretch its size along with the video. So is there a best practice for repositioning the video player UI to the vertical bottom and horizontal center of the screen when the user clicks full screen? I'm not entirely familiar with what happens to the Flash stage when it goes full screen, How to deal with not knowing the coordinates of the vertical bottom/horizontal center when screens have different ratios and resolutions?

View 3 Replies

Actionscript :: Remove Auto-play Function From A Flash Videoplayer?

Nov 1, 2011

I have a flash videoplayer that playing automatically when enter the site, it makes the site become slow to load, actually there is button called 'Play Video'. Ican see a code in the action panel in the first frame

Stage.showMenu = false;
import mx.video.*;
import flash.external.*;

[Code]....

I didn't get an idea how to stop the autoplay function..

View 1 Replies

ActionScript 2.0 :: Cannot Finish This Function

Jun 24, 2004

I have several MC that move downwards. They all start with the same _y value and when they reach the "floor" I want them to go 20 pixels down all toghether with a continuous move. I'm stucked with this last action.

This is the code I have

Code:
Movieclip.prototype.bounce = function(factor, posFinal, ratio) {
this.onEnterFrame = function() {
cont++;
this._y++;

[code]....

So far, all the ways I tried make the MCs go 20 pixels down but not all at the same time.

View 1 Replies

IDE :: Force Play Flash Video From Start To Finish?

Feb 5, 2009

We have this wicked project requirement to force play a flash video from start to finish upon user login. One possible solution is to autoplay the video and disable the mouse and keyboard while the video is playing. Is there a way to disable the mouse and keyboard in flash? This means you cannot click anything and type anything until the video finishes.

View 1 Replies

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 :: Wait For External Function To Finish?

Aug 19, 2009

I have a actionscript file and it tells a function in another actionscript file to run.How can I add an event listener to wait for the function to complete in an external file.

View 9 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

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

ActionScript 3.0 :: A Function To Freeze The Timer After Finish The Game?

Feb 17, 2010

I have a little game with a timer in it. What I want is to stop the timer when you pass the finish.I wrote the if function with timer.stop();The timer stops but it is gone too. I want to see the time you have left to make it into a score.Is there a function to freeze the timer after finish the game?

View 3 Replies

ActionScript 2.0 :: Button Function - Finish Loading Then Continue

Jul 2, 2008

In a buttons code, how would I say finish loading, then play. Here is what I have:
btn.onRelease = function(){
loadMovie(movie.swf);
//finish loading code goes here
gotoAndPlay("label");
}

View 6 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

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







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