The overview/poster set for the flvplayback component

I have been customizing the flvplayback component and have encountered a problem. So far, I created a custom look for the flvplayback component, with a play overlay button that loads the FLV file dynamically from flashvars successfully. Now, I'm trying to load in a static image that takes until the video is played. I look around the internet and in the Adobe forums, but have not found what I'm looking for. I thought that maybe the preview in the AS3 flvplayback component would help, but it won't apparently.

I was thinking myPlayer.source = "image.jpg"; but then how to change what is the source, once someone clicks on the video? I also found fl.video.VideoEvent, but I don't know how I can use this to set the image as a source, so that someone presses the play button, or until the video plays (notice that I use a play button on overlay that appears whenever the movie is paused, so once the video starts to play (, I would not want the static preview image to find once again... until someone clicks the play button of any kind)

Ideas or meanings is greatly appreciated.

I joined code how I am dynamically loading the FLV right now.

The preview of the component FLVPlayback-is only a placeholder for design - which will not get exported in the final swf file unfortunately. The class itself does not posterframe features. What you need to do is to load your posterframe using the class loader as:

var pfContainer:MovieClip = new MovieClip();
addChild (pfContainer);
var pf:Loader = new Loader();
PF. Load (new URLRequest ('posterframe.jpg');
pfContainer.addChild (pf);

Next, you need to define an EventListener to your FLVPlayback instance that removes the Posterframe when the video starts to play:

myPlayback.addEventListener (VideoEvent.PLAYING_STATE_ENTERED, removePF);
{removePF(e:Event):void}
removeChild (pfContainer);
}

If you want to have the Posterframe reappear on break, you could hide the pf instead of remove and set up a second EventListener for VideoEvent.PAUSED_STATE_ENTERED.

Tags: Adobe Animate

Similar Questions

  • Help with the FLVPlayback component in Air for Android

    Hi all

    I am currently working on a project for an Android tablet in which I need to play a FLV video on a specific image.

    To do a standard PC/Mac packadge I would use normally FLVPlayback component to load the external FLV video, I did a few times before with no real problems.

    But I can't seem to get this working for the Android tablet that I'm working on.

    I post the .apk file and got the .sfw of player and the FLV video file include the value, but I can't seem to load the video playback component.

    Once the application is installed on the tablet of the Player bar appears but no content is never displayed.

    I think it must be something to do with the path of the source I put in place for the components of reading, but once the .apk is installed I don't really know where ends the FLV video or what will be the relative path to it: S

    Everyone manages to get the FLVPlayback component to work on an android Tablet?

    I hope someone can help!

    Thanks in advance.

    I found the solution. If someone asks me. Simply change the video format. do not use flv. Yassin

  • Remove noise in the FLVplayback component?

    How to remove the sound of "specifically" to the FLVplayback component? Given that the sound will not stop playing when I'm on a different page (assuming that if the person does not click on the pause button, and navigate to other pages)... Normally, I would add SoundMixer.stopAll (); for each button in my swf main and loaded but it stop my background music as well...

    The flvplayback component is located in another swf file and the code has been added on the second frame of the movieclip call "scrollGroup.

    //////////////////////////////////////////

    Import fl.video.FLVPlayback;

    import flash.events.Event;

    var flvPlayback:FLVPlayback = new FLVPlayback();

    flvPlayback.fullScreenTakeOver = false;

    flvPlayback.autoPlay = false;

    flvPlayback.source = "video/Listening_to_Community_Voices.f4v";

    flvPlayback.skin = "MinimaFlatCustomColorPlayBackSeekCounterVolMuteFull.swf";

    flvPlayback.x = 31;

    flvPlayback.y = 123.8;

    addChild (flvPlayback);

    /////////////////////////////////////////

    25-11-2011 1-35-04.png

    http://forums.Adobe.com/message/2587415?TSTART=0

  • Add time to the FLVplayback component

    Hi everyone, I'm using the FLVplayback component for a project im doing. I want to add that the time elapsed and time remaining on the controls. I don't really want to create my own controls, as im happy with the flv playback component. The FLV playing in the component files is external and is loaded in via as3

    Is there a quick and easy way to do this?

    See you soon
    Dan

    use:

    Import fl.video.VideoEvent;
    Import fl.video.MetadataEvent;

    var fullDuration:String = "";
    function metadataReceivedF(e:MetadataEvent):void {}
    fullDuration = prettyTime (vidPlayer.metadata.duration);
    };
    function updateF(e:VideoEvent):void {}
    var paTime = vidPlayer.playheadTime;
    If (fullDuration! = "") {}
    time_txt. Text = prettyTime (vidPlayer.playheadTime) + "/" + fullDuration;
    }
    };

    vidPlayer.addEventListener (MetadataEvent.METADATA_RECEIVED, metadataReceivedF);
    vidPlayer.addEventListener (VideoEvent.PLAYHEAD_UPDATE, updateF);

    function prettyTime(timeinSeconds:Number):String {}
    var seconds: Number = Math.floor (timeinSeconds);
    var minutes: Number = Math.floor (seconds/60);
    var hours: Number = Math.floor(minutes/60);
       
    seconds, % = 60;
    % of minutes = 60;
       
    var sec: String = seconds.toString ();
    var min:String = minutes.toString ();
    var hrs:String = hours.toString ();

    While (sec.length< 2)="">
    s = '0' + seconds;
    }
    While (min.length< 2)="">
    min = "0" + min;
    }
    While (hrs.length< 2)="">
    h = "0" + hrs;
    }
    return h + ":" + min + ":" + seconds;
    }

  • addition of transition to the FLVPlayback component

    Hi guys,.
    is it possible to add transitions to the FLVPlayback component using the Transition Manager class. all I wan to do is to add the effect to the elements that go into the stage.this start can be easily done from movieClip, but is it possible to do this for the FLVPlatback component.
    Thanks in advance...

    Hey there,
    You can put your FLV inside a movieclip and then use the effect on all.

    B

  • How to read the videos recorded using the FLVPlayback component?

    Hey guys,.

    I recorded video using fms and I want to play using the FLVPlayback component. I did some research but I can't find something

    useful, I tried this code:

    FLVPlayback.source = "rtmp://localhost/appname/instancename/video";

    This code does not work. Did I do wrong or something? Can someone tell me please on track!

    Thanks in advance!

    Randy

    You may probably want to use something like a text box can be changed in your swf file, where a path is entered could be played by the FLVPlayback component in the swf file.

  • How to make the loop of the FLVPlayback component

    Hello

    use of the FLVPlayback component to complete an animation and I don't see anywhere in the settings, select this option, I'm sure it's an easy fix, I don't know where to look.

    Thank you

    published too soon...

    Mx.video import. *;
    var listenerObject:Object = new Object();
    listenerObject.complete = {function(eventObject:Object):Void}
    my_FLVPlybk.play ();

    };
    my_FLVPlybk.addEventListener ("complete", listenerObject);
    my_FLVPlybk.contentPath = "PS Animation QT.flv";

  • Load FLV into the FLVPlayback component?

    I have a table of videos coming from an XML doc. Get the name of my video in the correct trace statement, I'm don't know how to load the FLV video in the player. I have an FLVPlayback component on the interface named "video". The video, I'll load will be ("' video / ' + videoArray [0]")). What is the right way in AS 3 to load this video?

    You can set the source property of the component:

    myPlayer.source = ' video / ' + videoArray [0];

  • The FLVPlayback component to play MP3 without FMS?

    The FLVPlayback (version 2.5.0.15) component will play an MP3 file without having to be listened to by a Flash Media Server? All I want is to place a player in my Flash who plays an MP3 file that is located in the same directory as the SWF file.

    Here is my code... it's pretty simple:

    Import fl.video.FLVPlayback;


    var myMusic:FLVPlayback = new FLVPlayback();

    myMusic.source = "mySong.mp3";

    myMusic.skin = "SkinOverPlayMute.swf";

    myMusic.skinBackgroundColor = 0xCCCCCC;


    addChild (myMusic);


    you might be able to compel a flvplayback component to manage mp3 files, but there is no advantage and a lot of inconvenience.

  • How can I save post a video using the FLVPlayback component

    I have a video I want people to be able to navigate away from in my project, but resume where it left off, if they come back to him.  I think I could do by just to save its current position when they come out of this framework as a variable, then using. seek() to return to that spot if/when they come back.

    The only problem is that I can't find any script to capture the current position.  I tried .time, but it gives me an error.

    Use the eventobject playheadUpdate earpiece playheadTime property:

    var flvUpdateObj:Object = new Object();
    flvUpdateObj.playheadUpdate = {function(eobj:Object):Void}
    trace (playheadupdate "+ eobj.target +": "+ eobj.playheadTime);
    };

    yourcomponent.playheadUpdateInterval = 500;
    yourcomponent.addEventListener ("playheadUpdate", flvUpdateObj);

  • Trying to modify the FLVPlayback component

    I'm disappointed: I try to modify the ncmanager. (I want to add the parameter when the connection is called method). I edited this file but nothing happens in my application.

    After two hours of headacke, I remove NCManager (I made a copy on my USB key).

    I try to place an FLVPlayback instance on my stage: no problem! I can place, but it does'nt work as I want.

    So I've discovered that I even try to change NCManager, this file is not read.

    I need help to understand what I do when I change those files. Should I have to put it somewhere? I have to compile them and how?

    Thank you

    N. Bauland.

    You can do one more thing just copy the folder integer fl of ' C:\Program Files (x 86) \Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\FLVPlayback "and paste it in the same folder where your .fla file, so instead of picking of" C:\Program Files (x 86) \Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\FLVPlayback ". He chooses to local folder. Just try and let me know.

    -Amit

  • How to get the NetConnection off an in AS3 flvplayback component?

    http://www.Flashcomguru.com/index.cfm/2009/8/14/FLVPlayback-obtain-NC-reference

    I followed the above example in AS2, but only get the error:

    Call to a possibly undefined method getNetConnection through a reference with static type fl.video:INCManager.


    Here is my code:

    this.addEventListener (Event.ENTER_FRAME,
    function() {}
    If ((nc = player.ncMgr.getNetConnection ())! = undefined)
    {
    trace (NC);
    }
    });

    Someone knows how to do it in AS3?

    Hello

    Drag the flvplayback component on the stage and 'vidplayer' name in the properties panel. Then, you can use the following code example:

    import flash.utils.setInterval;
    import flash.utils.setTimeout;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    import flash.events. *;

    Import fl.video.FLVPlayback;
    Import fl.video.VideoPlayer;
    Import fl.video.VideoEvent;

    import flash.display.MovieClip;

    VideoPlayer.iNCManagerClass = fl.video.NCManagerNative;
    vidplayer.isLive = false;
    vidplayer.isDVR = false;
    vidplayer.source = "rtmp://localhost/vod/sample";

    var videoplayer:VideoPlayer;
    var flvplayback:FLVPlayback;
    FLVPlayback = FLVPlayback (this.getChildByName ("vidplayer"));
    VideoPlayer = flvplayback.getVideoPlayer (0);
    setTimeout (initMonitor, 5000);

    function initMonitor (): void
    {
    If (videoplayer.netStream! = null)
    {
    trace ("video plays!");
    If (VideoPlayer.NetConnection)
    {
    trace ("Got NetConnection!");
    }
    }
    on the other
    {
    trace ("Main.as:" + "not connected to FMS yet - try again...")
    setTimeout (initMonitor, 5000);
    }
    }

    Kind regards

    Amit

  • Control of the Flash CS5 video AS3 - jump before 10 seconds in the FLVPlayback video

    I want to push a button and jump 10 seconds ahead in one a .f4v that is imported into the FLVPlayback component.


    Using Flash CS5 and AS3.


    Here's what I have:

    next_btn_i.addEventListene r (MouseEvent.) CLICK, fx_forward10);

    function fx_forward10(event:MouseEv___ent):void

    {

    I can't find any code in line to tell me how to do this! I spent the last 4 hours looking and trying different things, sucky, worthless.

    //For example: vid_i.seek (vid_i.findCuePoint ("marker 10", CuePointType.ACTIONSCRIPT) ["time"]);

    I want something like this:

    Set vid_i.playheadTime = vid_i.playheadTime + 10000

    }

    Good Lord, 4 hours online for this search.

    var seekto:Number;

    next_btn_i.addEventListener (MouseEvent.MOUSE_UP, fx_forward10);

    function fx_forward10(event:MouseEvent):void

    {

    trace (aud01.playheadTime);

    SeekTo = aud01.playheadTime + 20;

    aud01.playheadTime = seekto;

    }

  • FLVPlayBack component

    Hello

    I am trying to get a handle on the FLVPlayBack component.

    I have the instance of the component drugs at my stage.

    When I set the contentPath of the file name, we'll call it ald.flv and test the movie on my development machine, the video plays.

    However, when I download the file swf and flv on my live server for quality controls, it does not play, even if the swf and flv are in the same directory, both on our development box and our direct box.

    In addition, if I set the content to an http address path to point to the FLV on our direct box, the video does not, on our development or our direct box.

    Now, the propaganda on the Adobe website, they claim "It Just Works". Well, it 'Just' does not work.

    Can anyone point us in the direction of this ' work '?

    Thank you very much.

    GN

    leatherjeep wrote:
    > :) OHHHHHHHHH!
    >
    > Can you tell me all references about these MIME configurations? I am
    > familiar with them, and I know how to configure them on our web server.
    > but there is really not much sense to me that my server would require no
    > more change - I think I understand the video plays
    > the Flash Player on the client machine - with no impact on the
    > web server set up.
    >
    > If you have a url to a post here in the discussions on this issue which
    > would be much appreciated.
    >
    > I'll try your theory of video import tomorrow... Alas, I'm
    > time to access today.
    >
    > Thanks for your help so far.

    I had the same problem. They added this mime type
    The mime type that was added was: video/x-flv

    Hope this helps

  • How to unload a FlvPlayback component

    What are the steps to download a flv file after clearing the necessary memory used for loading and also to remove the component FLVPlayback.

    This is the code I used to create FLVPlayback component and setting its source.

    public var m_flvPlayer:FLVPlayback;

    m_flvPlayer = new FLVPlayback();

    m_flvPlayer.AutoPlay = false;

    m_flvPlayer.source = "FileName.flv".

    addChild (m_flvPlayer);

    Attached to unload the actions button

    m_flvPlayer.stop ();


    m_flvPlayer.autoRewind = true;

    m_flvPlayer.getVideoPlayer (0). Close()

    removeChild (m_flvPlayer); Clears FLVPlayback component.

    Are there any other important step we need to do for safe unloading of the FLVPlayback component?

    use:

    public void init(sFileName:String):void {}
    trace (FLVPlayback.version);

    m_flvPlayer.activeVideoPlayerIndex = 1;
    m_flvPlayer.visibleVideoPlayerIndex = 1;
    m_flvPlayer.AutoPlay = true;
    m_flvPlayer.source = sFileName;
    }
    public function unINI (): void {}
               
    m_flvPlayer.stop ();
    m_flvPlayer.autoRewind = true;
    m_flvPlayer.closeVideoPlayer (1);

    MyComObj.removeChild (m_flvPlayer);
    m_flvPlayer = null;

    MyComObj.nextFrame ();

    }

Maybe you are looking for

  • Problems with iphone 4S and ios 9.3.1

    I've updated my 4S 3 years yesterday at 9.3.1 - well, I wanted to do. The process has failed and the phone wanted itunes to restore connection. And that is not too much. I tried with a 10 Win and a Win 7 machine, with a new installation of itunes and

  • Error analysis of the G Word-

    Hello I have the Moto G device that will be used with a basic job application. This app is created and maintained by us. Normally, what we must do is choose the box 'Unknown Sources' safety and we can normally install the apk with no problems. We use

  • Excel gives only the Photo paper as print option

    I just switched to a Mac and most of my documents have been moved from my old computer, but the problem also occurs with new documents generated on the Mac: the only book listed as an option to print in Excel is HP Premium Photo paper.  Plain paper o

  • Communication client server

    Hi all I need to communicate from a system to another system through labview. Can someone help me on this. Thank you Rakesh Reddy

  • light sensor

    can I use my light as a charger for my battery sensor? ... If it isn't... what happens to the current generated from it?