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

Tags: Adobe Animate

Similar Questions

  • 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.

  • 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

  • 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.

  • 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 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.

  • 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 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);

  • 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

  • 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 ();

    }

  • 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;

    }

  • targeting a FLVplayback component in an element nested movie

    I am trying to get my own buttons to load FLV movies into the FLVplayback component. I work in a simple test but need help to operate on a level more complex. The test is here http://lawrencejonespromoprince.com/testvideo.html

    I named the FLVplayback instance "my_video".

    The simple buttons have this script in action:

    on (release) {}

    my_video. Load ("videonamehere.flv");

    my_video. AutoPlay = true;

    }

    This works fine as long as the FLVplayback component and the buttons are on the same frame on the same page. But for the actual use, I need to work where the buttons on a page that is nested in another element of the film. If the NEST looks like this:

    Scene1 Nestmovie1 Nestmovie2 Nestmovie3

    .. .when FLVplayback component is in Nestmovie2 and the buttons are in Nestmovie3.

    Nesting was needed so that the buttons are on a separate panel slider so I can scroll through the list of movies.

    See the current flash site here http://lawrencejonespromoprince.com/index2.html

    and the movie list (not made) will be on the Promos 30 page.

    So now the question is: How can I target the FLVplayback instance in a nested movie.

    Thank you

    You should be able to use references to _root to return to the main timeline to target the flv player

    on (release) {}

    _root.nestedMovie1.my_video. Load ("videonamehere.flv");

    _root.nestedMovie1.my_video. AutoPlay = true;

    }

Maybe you are looking for

  • Cannot delete extension

    Picked up an extension that I don't want, somehow it's creating pop ups, ads etc. in all directions. The extension is PassShow 1,154 I removed it and just recently downloaded files of the computer itself. But he's still on the extensions, and there i

  • HP 15-af158nm: drivers for windows 7 for HP 15-af158nm

    Hello! Just bought the HP 15-af158nm netobook and installed windows 7 (64-bit), but I couldn't access the internet, LAN or wirelles is USB not work porperly... Searched Hp's site and the internet for drivers but no use... Is could someone please tell

  • Search for a list of resources 'USB to RS232.

    Hello I wonder how do I get the "USB to RS232" device name, description, and serial number, as NiMAX is capable of (see the attached image NiMAX-USB - 232.jpg). By using the function viFindRsrc (as in the example of FindRsrc_CVI.cws), I get the name

  • IMAQ AVI2 write leak memory frame

    There is a bug report.  Writing great images 2160 x 1080 AVI file without compression CODECs causes the memory usage go back upwards, until LabVIEW fundamentally exceeds the limit of 8 GB memory and stops processing the images.

  • start and stop a program

    Hello world I have change a bit the pulse and transition Vi. I have acquire a signal from acquisition of data instead of a wave of sign, now I want to control the data entry through a start stop button I found. but the problem is that it doesn't work