ActionScript 3.0 :: FLVPlayer - Manager Class For Playback?

Jun 18, 2010

So I've got a video player that works great. You hit 'play', it calls the public playVideo() function in the FLVPlayer class to begin playback, and then other things happen accordingly (the PlayerControls class updates to show playbar progress, etc). Currently, it's easy: there's only one type of 'playback', and it talks directly with the FLVplayer class (and PlayerControls, etc).

However, we're adding different types of 'playback' now, where a poster image could optionally show for xxx seconds ahead of the video (and still needs to update the playbar to show progress). We're also doing the same for a video bumper, which plays between the poster image and the video as well (and also needs to update the playbar class).

In all these cases, there is a common "playback" that needs to be able to be paused (in some cases automatically, like when you click on a menu button in the menu to open a separate section) or restarted. Rather than do a check to see isVideoPlaying || isPosterPlaying || isBumperPlaying, it seems to make better sense to lump all these things into a common playback manager interface.

View 1 Replies


Similar Posts:


Flex :: Listen For Events On The Pop Up Manager Class?

Jan 27, 2012

I'm trying to detect when pop ups are visible (including tool tips if possible). The reason is that I need to hide or freeze (capture a snapshot) the Stage* components (StageWebView, StageVideo, StageText etc) when pop ups appear.

View 1 Replies

ActionScript 3.0 :: Add A Squeeze Transition Effect Between Frames Using The Transition Manager Class?

Nov 16, 2009

How can I add a Squeeze transition effect between frames using the transition manager class on a simple slideshow using the goBack and goForward functions in ActionScript3? Below is the code I have so far:

stop();
function goBack(event:MouseEvent):void
{[code].....

View 0 Replies

ActionScript 2.0 :: Instantiated FLV Playback Class?

Aug 13, 2008

I've been struggling with this for almost a day now and I can't seem to find the problem. I'm making an instantiated FLV playback class in actionscript 2, but it just doesn't play the video

Here's the code, if I uncomment the camera parts and attach _cam instead of _stream it will show the camera feed, it just won't play my movie (and I get no errors whatsoever).

[Code]...

View 2 Replies

ActionScript 3.0 :: Video Class Vs. FLV Playback Using NetStream?

Sep 17, 2008

I am trying to load video using NetStream. I am able to do this by using the Video Class, but is it possible with the FLV Playback? I would like to add a seek bar so people can scroll the video if they want to.

I know the FLV Playback Component has this built in so I would use it BUT I can't load a stream to the FLV Playback, I can only set it's source. This works fine, but it doesn't allow me to unload it, the sound keeps playing, which is why I ended up using the NetStream instead.

So I have 2 questions. 1) Is it possible to load the NetStream to the FLV Playback component? 2) If not, how do I add the seek functionality to my Video Class?

View 2 Replies

ActionScript 2.0 :: Extending Component Class - FLV Playback Not Initializing

Oct 19, 2011

I've never extended a component class in AS2, and I'm having problems with it now.

Here's my class file:
Actionscript Code:
import mx.video.FLVPlayback;import mx.video.*;class AkamaiFLVPlayback extends FLVPlayback{
public function AkamaiFLVPlayback(){
super()}}

Here's how I'm trying to instantiate it from the FLA:
Actionscript Code:
import AkamaiFLVPlaybackvar g = new AkamaiFLVPlayback()this.attachMovie(g,myVid,1)g.contentPath = "[URL]"

Now this does not work at all. I can see that the super class FLVPlayback is creating variables, but it's not loading to the stage or initializing.

View 1 Replies

Play .mov Files Through Flvplayer Component?

Aug 18, 2009

I want to play .mov video file in my flvplayer component.

I have to play that .mov file in that format only without any conversion to .flv.

View 7 Replies

Professional :: Video Size Of FLVPlayer?

Apr 16, 2010

I have a videos of 16:9 and 4:3 ratio.When I play them in flvplayer having dynamically loaded skin, in 4:3 ratio video the video and skin both get squeezed.I put scale mode to 'mainaspectratio'as desired.But I want skin not to squeeze.As the controls are disorted. How to achieve this?

View 1 Replies

ActionScript 2.0 :: FLVplayer Only Play One Flv File?

Aug 19, 2009

I have some flv file on a streaming server and I have a flash that have a FLVPlayback.

At the begin in the flash I have

ActionScript Code:
flvplayer.contentPath = "adress to the movie1.flv";
flvplayer.play();

[Code]....

The strange is when if I change movie2.flv to movie1.flv and then push the button, now it works

Do I have to clear something after I have play a movie to make it ready to play another movie?

View 0 Replies

Actionscript 3.0 :: Making A FLVPlayer Stop?

Nov 11, 2009

Okay I'm struggling with my FLVPlayeback component. I have one on my stage, then when you click a button a movie loads in it, but as soon as i click on the home button to go back to frame 1 then the movieclip continues playing, (audio only) when i go back to the FLVPlayer, nothing is playing although you hear the audio and if you load another movie in the FLVplayer it plays over the other one.

I did try

Code: Select allMovieB.stop();

but its not working, it only gives me a

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at WorshipTeam_fla::MainTimeline/onPhotoClick2()

View 4 Replies

ActionScript 2.0 :: Passing A Variable To FLVPlayer?

Oct 11, 2006

I am working on a little gallery to play FLV clips. I have gotten the following working:Frame 1 (labeled list) has a list of the videos with thumbnails that have the following variables assigned for onPress:

videoPath = "path/to/video.flv";
returnTo = "list";
gotoAndPlay("player");

[code].....

View 1 Replies

ActionScript 3.0 :: Append Flvplayer Setbuffertime From Array?

Mar 30, 2011

I have a flvplayer assigned to the id player and I am trying to set buffer times for videos I have embedded in an array, I understand how to pull the information from my array and have that value be set intoplayer.setBufferTime(value);but when ever I call that command it gives me the error1061: Call to a possibly undefined method setBufferTime through a reference with static type fl.video:FLVPlayback. player.setBufferTime(1);

View 2 Replies

.mov File Doesn't Play In Flvplayer Component

Aug 19, 2009

One of the .mov video file doesn't play in my flvplayer component. While other play as desired. Any clue what may be the reason and how to play that .mov file without conversion to .flv

View 2 Replies

Put Control On Play Button Of Flvplayer Component?

Aug 20, 2009

I want to put some control on play button of flvplayer component in AS2.0.How this can be done ??How I can call play button: I don't know how it to be referenced/its name.

View 1 Replies

ActionScript 3.0 :: FLVPlayer With Multiple Videos - Via Buttons?

Feb 9, 2011

I have my stage with the FLVPlayer and its easy enough to get it to play one video, but I have a series of buttons on the right hand side (day1, day2, day3.. etc).How can I go about getting a button click to change the FLV srouce and begin playback? And do I need to stop the loading of the previous video, or is that handled automatically?

View 1 Replies

ActionScript 3.0 :: FLVPlayer Stop When Redirecting To Another Frame?

Aug 5, 2011

In main time line i have first frame used for preloader and second for intro. Frame 3 is first screen with videoand my MainMenu with buttons inside mc.
 
Now when I click on button it successfully redirect screen to next frame and load my page, but I still hear music from video. I need to stop playing video when i redirect to frames 4, 5 ....28 where are pages frame by frame. In MainMenu i use
 
import flash.events.MouseEvent;import flash.display.MovieClip;
//menu Domovfunction btnHome(event:MouseEvent):void{    (root as MovieClip).gotoAndPlay(4);}function btnOnas(event:MouseEvent):void{    (root as MovieClip).gotoAndPlay(5);}function btnBoard(event:MouseEvent):void{    (root as

[Code].....

View 2 Replies

ActionScript 3.0 :: Popup FLVPlayer - Cannot Connect After Once Closed

Oct 4, 2011

I am trying to popup (addChild) a movieclip with a close button, which has FLVPlayback component in it. When hit close button, movieclip is removed from the scene and flv is stopped. But when popup the same movieclip again, flv is not correctly loaded into player and progress continues forever.vance.

View 1 Replies

Flash :: Flvplayer.swf Player To Play Video?

Apr 6, 2010

I am using flvplayer.swf player, it is playing the videos,but before playing the video the player has black screen and a play button. When I click the play button the video plays. Is it possible to show a screen-shot of the video with the play button on top, instead of the blank screen?

View 1 Replies

Flash :: Changing Path Of Flvplayer From Timeline In As3?

Sep 9, 2010

I can get the videos to play using the flvplauer component, but im having a little trouble figuring out if and how to dynamically change the path of the flvplayer while running through a timeline. If I can do something like mc.changeFLVPath that would be awesome!

View 1 Replies

ActionScript 3.0 :: FLVPlayer : Seeking To Any Point Like YouTube?

Aug 26, 2009

I am trying to achive is the "SEEK" effect that you find on YouTube. Like suppose the Video is 20 Minutes long and only 5 minutes are loaded and if you click on the 15th minute, the video will start playing from that point.I saw a PHP script some time back which would return the "FLV" which starts from the point which is requested to the PHP Script. I didn't bookmark that I don't know why and it was really long time back.

View 2 Replies

Professional :: FLVplayer Question Preview Or Opening Image?

Jan 20, 2010

I hope I am placing this question in the right forum. I have searched everywhere trying to find the answer..
 
I am using Dreamweaver CS4 to insert a FLV video into a web page. Dreamweaver automatically uses FLVPlayer as the flash player. All is working beautifully except that when I first visit my web page, the video area is just a black screen. I would like to put a preview image there instead. Other players just seem to usually have a parameter that you set like "image=" and you point to the .jpg or whatever, but I can't get that to work here.
 
I can't believe I am having this much trouble, and this must be a super simple answer. [URL]..

View 5 Replies

ActionScript 3.0 :: Add A Listener On An Flvplayer That Listens For A Certain Time To Pass

May 6, 2010

is there a way to add a listener on an flvplayer that listens for a certain time to pass - lets say 1 minute so that upon reaching that 1 minute I can call a funciton?

View 1 Replies

ActionScript 3.0 :: Unload FLVPlayer Component - TotalMemory Increases Every Time

Jan 26, 2010

I have added a FLVPlayer component to my clip/class. On REMOVED_FROM_STAGE I call the unloadAndStop on the Loader object and null all references but the totalMemory increases every time. What can I do to remove it completly?

View 2 Replies

AS3 :: Media Server - Video Not Showing - Working On FLVPlayer Using FMS3

Jul 19, 2010

Currently I am working on FLVPlayer using AS3 and FMS3. When I test tthe connection
Traced NetConnection.Connect.Success And I had added eventlistener for NetStream. It also shown NetStream.Play.ResetNetStream.Play.Start But the video is not showing.

View 2 Replies

ActionScript 2.0 :: Create A Custom Video Player Without Using Default FLVplayer?

Jun 19, 2009

How can i create a custom video player with out using the default FLVplayer

View 1 Replies

ActionScript 3.0 :: Button Click Function In FLVPlayer - Converting To Arrays?

Feb 8, 2010

Basically, I have a FLVplayer called vidPlayer and 3 dynamic text fields that put text in when they are clicked. I want to be able to keep the button clicked in the 'over' state, and to do this I believe arrays are needed? Also, an array might be easier, as there is a lot of code to sift through.

Below is the code for the buttons in my flv;
Select all//video player script
function fenwick(event:MouseEvent):void{
vidPlayer.source = "flvs/adver/Fenwick.flv";
}function moneyshopGold(event:MouseEvent):void{
vidPlayer.source = "flvs/adver/MS_Liquid_Gold.flv";
[Code] .....

View 1 Replies

ActionScript 3.0 :: FLVPlayer Error - Seeking Bar / Volume Control Turned Pink

Aug 6, 2009

I just ran into an error I haven't come across yet. The player's seeking bar turned pink and so does the volume control. Don't know what would have caused it. That's what it looks like. And the link is the errors I'm getting when the movies finish playing. I don't know if that as anything to do with it. I tried to narrate what I was doing. [URL].

View 2 Replies

ActionScript 3.0 :: Flash FLVPlayer Video Component Doesn't Works Correctly

Apr 1, 2011

I am trying to add videos to my project, but none of them seems to work correctly. I have a movieclip, which has 3 layers and 2 frames on each layer, 1 frame at nr.1, and frame 2, at nr. 5 in the timeline. I tried to add a FLVPlayer, using a tutorial, but it doesn't works correctly. 1st frame has a stop(); a blank, and 4 buttons + FLVPlayer component. the last frame nr.5, has the AS3 code, the frame label "videocontent", and the same 4 buttons and FLVPlayer component as in the first frame. I've created a classic tween between 1st and 5th frame on the timeline for the buttons and component. even with or without animation, the video is throwed by the Flash on the stage without any coordinates, where he wants by default. The FLVPlayer's buttons are throwed in other place on the stage, and none of them seems to work.

the second issue is that after i click the main menu button, the sound of the video is still playing and to be heard, so that means it is still there. In AS 2, once upon a time, i used some function called removeclip, or unLoadMovie, and it worked.

View 6 Replies

ActionScript 3.0 :: Using The Transition Manager

Oct 28, 2009

im using flex builder 3 to write my AS3 classes for a slideshow. I want to use the transition manager, but when i attempt to import the class..

Quote:

import fl.transitions.*;

i get this error..

Quote:

1172: Definition fl.transitions could not be found.

I am not sure if this means the class is missing from my folders or something else?

View 1 Replies

ActionScript 3.0 :: Transform Manager For Free?

Dec 9, 2009

Where from i got transform manager as3 for free

View 5 Replies







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