ActionScript 3.0 :: FLVPlayback Component - Switching Between Videos

Mar 16, 2012

I am currently working on a project (AS3), where I have 2 frames, with 2 videos (using the FLVPlayback component) and I want to switch from one video to the next video, however the catch is when I switch to the next video I want the new video to play at the previous video time. Example: Video 1 plays, 10 sec later, you click a button to go and see the next video (in another frame) and that new Video starts 10 sec into it.

This is the codes I been using so far:
import fl.video.VideoEvent;
import fl.video.MetadataEvent;
video1.addEventListener(VideoEvent.PLAYHEAD_UPDATE, timer);
function timer(e:VideoEvent):void {
var newTime = video1.playheadTime;
[Code] .....

View 3 Replies


Similar Posts:


Professional :: Switching Between FLVPlayback Component At Their PlayheadTime

Mar 16, 2012

I am currently on a project (AS3), where I have 2 frames, with videos (using the FLVPlayback component). and I want to switch from one video to the next video, however the catch is when i switch to the next video I want the new video to play at the previous video time. example: Video 1 plays, 10 sec later, you click a button to go and see the next video (in another frame) and that new Video starts 10 sec into it.

[Code]...

View 15 Replies

ActionScript 3.0 :: Switching To Fullscreen With FLVPlayback Component On Stage

Sep 5, 2009

I've encountered a really frustrating problem recently when switching to StageDisplayState.FULL_SCREEN with a FLVPlayback component on the stage.

My movie:
bottom layer: a movie clip inside of which is a FLVPlayback component playing a flv movie
upper layer: movie clip (logo), second mc (fullscreen button)

Fullscreen button code:
function doFullscreen(event:MouseEvent):void {
if(stage.displayState == StageDisplayState.FULL_SCREEN){
stage.displayState = StageDisplayState.NORMAL;
} else {
stage.displayState = StageDisplayState.FULL_SCREEN;
}}bFullscreen.addEventListener(MouseEvent.CLICK, doFullscreen);

Effect (Before clicking the fullscreen button):
Everything is okay, the movie plays, logo and button are visible.

Effect (After clicking the fullscreen button):
The only thing that is visible is the playing movie, but logo and fullscreen button disappear.

What happens:
The mc with the FLVPlayback component gets the highest child index and covers the logo and button. It is not the problem with aligning logo and button on the stage, as without the FLVPlayback component they are perfectly aligned. I also tried to manually switch the depth of the mc with the FLVComponent, unfortunately without any result.

View 1 Replies

Media Server :: Play Recorded Videos Using FLVPlayback Component?

Jan 17, 2011

I recorded videos using fms and i want to play them using FLVPlayback component. I've done some research but i cant find somethinguseful, I tried this code :
 
flvplayback.source = "rtmp://localhost/appname/instancename/video";

View 5 Replies

Flash :: Professional - Import YouTube Videos Into FLVPlayback Component?

Jun 18, 2011

I'm now working on a flash website, i need to play a youtube video inside my flash movie. In this Flash file i have a FLVPlayback component and i tried to link the youtube video into this but did'nt work.

View 1 Replies

Media Server :: Switching Videos In Playlist: OldStreamName

Sep 8, 2011

So I've built a player to play playlists and it uses my own DynamicStream class (not the abobe one). I've ran into an issue with playing the same video multiple times. In this app there will be many occassions when a video may be repeated in the playlist up to 3 times. Here's an example of the problem:

Lets say I have 2 videos in a playlist and they are the exact same video. They both are the low birate version. The fist video dynamically swiches to different bitrates seamlesly as planned. If I fast forward the stream to the begining of the second video it starts playing and if my bandwith is ok it wants to switch to a better bitrate. It swiches but instead of being seemless it plays the second video from the begining again. So, I'm thinking this is where oldStreamName comes in. So I add the oldSteamName and make sure its correct, but the problem with that is if the same video is in playlist more than once then the transition never even happens.

View 5 Replies

ActionScript 3.0 :: Loading Multiple Videos In FLVPlayback

Jun 4, 2009

I am building a video player which should load multiple videos in a FLVPlayback. When the loading of the first video has finished, the second one should start, using the VideoProgress Event.

My code looks like this, videos is an array with the paths to the videos:
 
flvPlayback.addEventListener(fl.video.VideoProgressEvent.PROGRESS, progress);
flvPlayback.addEventListener(VideoEvent.COMPLETE, onComplete);
private function progress(e:fl.video.VideoProgressEvent):void

[Code]....

Now I have the problem when I test this locally, the first video is invisible sometimes when starting to play. This is not happening everytime, but sometimes the video is not shown, but I can hear the sound, and I can see the scrubber on the seekbar moving.
 
I already tried to check in the progress function if the video is already playing, and if not, set a timer that will call the progress function again in 1 second.

View 7 Replies

IDE :: FLVPlayback - Importing Videos Via Wizard To Stage

Dec 16, 2009

I imported multiple flvplayback videos on my file via the Video Wizard Import. After that I removed all videos except one. But it's still trying to load those old video and the skin of their player when I preload the file. I am sure there's no player on the stage except the one I need. And when I need to play the file, it's working well, the only problem is the extra loading for 6 skins that I don't use anymore and the time to look for 6 videos that are not there. So here're my questions;

1- When you import a video via Wizard, it there a script hidden somewhere that can be found?
2- When you import a flv to the stage, there's a loading bar saying getting metadata. Is there a place to edit or erase this metadata?
3- Any other ideas of where I could look to find this hidden data or trace or ghost that needs to be remove from the file ?

View 1 Replies

Actionscript 3 :: Control The FLVPlayback Component's Volume Using The Slider Component In Flash?

Mar 20, 2012

I was wondering if there was a way to get the sound from a FLVPlayback component and manipulate it with using a custom volume slider? Within my Actionscript I currently have this code which enables me to control the volume of a MP3:

import fl.events.SliderEvent;
var mysong = new music();
var myChannel:SoundChannel = new SoundChannel();
var myTransform = new SoundTransform();
myChannel = mysong.play(0,10);

[Code]...

But Instead of using the MP3 for sound, is there a way to use an FLV's sound instead?

View 1 Replies

Flash :: Use FlvPlayBack To Play Back And Live Videos?

Nov 19, 2010

I want it to automatically detect if there's a live video,then play live;otherwise play back.

View 2 Replies

ActionScript 3.0 :: FLVPlayback Via XML - Play Videos From A XML Based Playlist

Aug 1, 2011

I am trying to play some videos from a XML based playlist. I found this, but it's for AS2: Quote:

[Code]...

The instance is named flv and the XML file flv.xml, what would be the correct way to do this in AS3?

View 9 Replies

ActionScript 3.0 :: Performance - Videos Play Slow Using FLVPlayback

Feb 25, 2009

My scene has a video background which scales to the stage size. Then, each section has another video when transitioning in. The problem is that the videos play really slow than they should, very low fps. When there are 2 videos on the stage, it goes even slower. I've tried with embedding videos, using FLVPlayback, wrapping in movieclips, but still the same result. The videos are exported at 30 fps, same rate than the flash movie.

View 3 Replies

Media Server :: Set The Flvplayback Properly So That It Can Play Both Live And Recorded Videos?

Nov 19, 2010

I've read the reference here,but it seems to me that I can only make it work with live OR recorded videos.How can I make it work with both live AND recorded videos?

View 7 Replies

ActionScript 3.0 :: Playing Two Videos - Assign The New Urls To 'player' Instance Instead Of FLVPlayback

Jan 5, 2011

I'll start by saying that I'm in the process of learning actionscript. That said, I'm wanting to play two videos with actionscript. I went through a tutorial and using a pre-built flash player I used the following script

[Code]....

Which worked fine. That said, that was just a test. We are wanting to use the F4 Player. I opened up the player and looked at the actionscript (which is below). I had some trouble, so I posted on here and this was my response..

[Code]....

View 0 Replies

Flex :: Flash - Multi Bitrate Switching Between Live Streams Using The VideoDisplay Component?

Jul 20, 2010

I am passing to the source property of a VideoDisplay component a DynamicStreamingVideoSource object with 3 different dynamic live stream items, described by this XML, for your consideration:

src="rtmp://88.87.56.214:1935/live/fashiontv_tmo_h.stream" bitrate="19200"
src="rtmp://88.87.56.214:1935/live/fashiontv_tmo_m.stream" bitrate="9000"
src="rtmp://88.87.56.214:1935/live/fashiontv_tmo_l.stream" bitrate="3600"

But the player then runs the stream with the lowest bitrate, out of those 3. Wasn't it supposed to go for the stream with the highest bitrate, that is viewable by the end-user? All 3 streams have been individually tested and they are all viewable.

View 2 Replies

How To Loop Flvplayback Component

Aug 17, 2010

I know nothing about flash but this is what I am doind with CS5 Adobe Flash Professional:1. Import video. I type in the server location of my .mp4 file.Now when I save it and embed on a webpage it loads and works perfect, however it is not looping. So my question is in adobe flash professional what do I need to exactly?

View 1 Replies

Add Time To FLVplayback Component?

Feb 9, 2010

Im using the FLVplayback component for a project im doing. I want to add the time elapsed and time left on the controls. I dont really want to create my own controls, as im happy with the flv playback component. The FLVs playing in the component are external and are loaded into it via as3

View 13 Replies

ActionScript 2.0 :: Using The FlvPlayBack Component?

Apr 8, 2011

With autoHide set to true would like to have the skin show when a video is loaded then fade away after a couple of seconds.

View 3 Replies

IDE :: FLV Playback And Caption Component For Videos

Sep 13, 2008

I'm using the flvPlayback and Captioning component/skin for some videos. Works great, but I can't figure out how to have the captions off by default and use the caption button to turn them on for users who want to see the caption buttons.
flvCaption.showCaptions=false;
Hides the captions, but also disables the captionButton in the skin, so there is no way to toggle showing and hiding the captions.

View 4 Replies

Can't Get FLVplayback Component To Fullscreen Correctly

Sep 30, 2010

I have tried numerous things but when I insert the FLVplayback Component into flash that is linked to an external video source the fullscreen function will not work but the video plays as needed.

View 15 Replies

ActionScript 3.0 :: Refresh The FLVPlayBack Component?

Dec 21, 2010

I am working on AS3 project using Flash CS3. I have to display some videos using FLVPlayBack component. I am using the same component instance to display videos but when a new video is loaded the max duration property does not updates and hence the onComplete event is never fired. I somehow wanted to refresh the component when a new video is to be played.

View 1 Replies

ActionScript 3.0 :: Addressing A Flvplayback Component?

Jun 11, 2009

I imported the flvplayback component on-stage in one frame and gave the instance a name of hv.If a button takes the movie to another frame, how do I pause the flv at that point

View 1 Replies

ActionScript 3.0 :: How To Unload A FlvPlayback Component

Jun 29, 2009

What are steps to do unload a flv file after clearing necessary memory used for its loading and also to remove the FLVPlayback component.his is the code i have used for creating FLVPlayback component and setting its source.
 
public  var m_flvPlayer:FLVPlayback;
m_flvPlayer= new FLVPlayback();
m_flvPlayer.autoPlay = false;

[code].......

View 12 Replies

ActionScript 1/2 :: How To Recognize FLVPlayback Component

Jul 13, 2009

Publish to Flash 8 and using the FLVPlayback component as part of a larger elearning course.We have a legacy pause button that works by recursively looking through every item on stage and if the item is a movieclip following its children and so on. Something like this (there is more to the whole thing, but this is where the problem is):
 
findCurrent = function (obj){ // RECURSIVE SEARCH FOR MOVIECLIPS for (var i in obj) {  if (typeof (obj[i]) == "movieclip" && obj[i] != obj) {   if (obj[i]._name == "pauser"{
continue;   }   var m = obj[i];   m.frameWas = m._currentFrame;   isCurrent.push(m);   findCurrent(m);  } }};
 
The issue is that when using the FLVPlayback component the 256 recursions limit is reached. I'm guessing that the video part contains a reference to playback controls skin and the playback controls skin contains a reference to the video part and the recursion just goes round and round till it hits the limit and then all actionscript is disabled for the rest of the file.
 
I thought of adding a counter, and that is probabaly a good idea, but I was wondering if there is anyway to identify that I've hit a video player and stop following it?
 
Obviously the topeof(myVideoPlayer) is coming back as "movieclip" or I wouldn't be getting this problem. I don't think there is a getQualifiedName for AS2, right? I looked at the properties and couldn't find one that said, "clearlyVideoPlayer."

View 3 Replies

ActionScript 1/2 :: FLVPlayback Component Volume?

Aug 16, 2009

I'm using the FLVPlayback component to play a movie. In the parameters, I'm setting volume to "8" where the default is "1".This works great and gives me the right volume setting, but if the user touches the volume slider (which I'd like to keep), the new maximum volume is only one.

View 2 Replies

ActionScript 3.0 :: Load FLV Into FLVPlayback Component?

Feb 10, 2010

I have an array of videos coming from an XML doc. I am getting the name of my video in the trace statement okay, but am not sure how to go about loading the FLV video into the player.I have an FLVPlayback component on the interface named "video". The video I'm going to load will be ("videos/" + videoArray[0]))

View 3 Replies

Play Mp3 File Using Flvplayback Component?

Mar 9, 2010

Is there any way that i can load a local mp3 file using flvplayback?

View 2 Replies

Professional :: Trying To Modify FLVPlayback Component

Aug 27, 2010

I try to modify ncmanager file. (I want add parameter when connect method is called). I've edited this file but nothing happens in my application. After two hours of headacke, I delete NCManager (I've made a copy on my USB key).I try to place a FLVPlayback on my scene : no problem ! I can place it, but it does'nt work as I want.So I discover that even I try to change NCManager, this file isn't read.I need help to understand what I must do when I modify these file. Should I have to put it somewhere ? must I compile them and how ?

View 14 Replies

ActionScript 2.0 :: Use Cue Points With FLVplayback Component?

Sep 12, 2009

I need to use cue points in an FLVplayback component to load other movies. I've looked at several tuts, but most are for navigation.

View 7 Replies

Actionscript 3.0 :: Looping .flv With The FLVPlayBack Component?

Sep 3, 2009

I've noticed, that placing an FLVPlayBack component on Stage, instancenaming it myFLVPlayer and using this code:

Code: Select allmyFLVPlayer.addEventListener(Event.COMPLETE, playAgain);
function playAgain(e:Event):void {
trace("starting over");

[Code]....

View 2 Replies







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