Controlling the FLVplayback component Volume

Hi there,
I have a FLVPlayback component which I have modified to the
core.There is one problem with the volume slider. Im using Flash
Professional 8 with XP, and the skin Im using is
"steelExternalAll". Suppose I load some file into the contentPath,
it plays, and I drag the volume slider up (100%) and down(0%) for a
couple of time I get a bug. The bug is that when Im finally in the
down state, with 0% I still hear the sound which was in the
previous status, say 38 or 50%. And it happens in the reverse too.
Why is this happening? Can i resolve it?
I tried doing this using a fresh FLASH file, still the result
is the same. It happens once in a 10 times, but this surely is a
defect i need to handle. I dont think I have enough API's to do
something serious. Can anyone help me out?

Hi kglad,
Greetings. Felt so glad when I saw your reply saying that the
problem was with the skinning, because I did one hell of a
skinning. But I had a crosscheck. I tool a sample
"steelExternalAll" skin, just like it is in the component panel,
and just added a contentPath. Simple. I checked for the volume
slider problem, and there it was.
I can find the problem in the normal unmodified skin. This is
the same problem I face. Can this be solved. There is no other code
piece Im using other than the one given below.
Thanks a lot for your kind patience.

Similar Messages

  • Adding time to the FLVplayback component

    Hi everyone, 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
    Is there a quick and easy way of doing this?
    Cheers
    Dan

    I have managed to find some code for this component, but im getting some errors which im having trouble to de-bug;
    1118: Implicit coercion of a value with static type Object to a possibly unrelated type Function. vidPlayer.addEventListener("metadataReceived", listenerObject);
    1118: Implicit coercion of a value with static type Object to a possibly unrelated type Function. vidPlayer.addEventListener("playheadUpdate", listenerObject);
    Please would someone take a look and let me know what im doing wrong?
    Thanks
    code:
    var listenerObject:Object = new Object();
    var fullDuration = null;
    listenerObject.metadataReceived = function(eventObject:Object):void {
        fullDuration = prettyTime(vidPlayer.metadata.duration);
    listenerObject.playheadUpdate = function(eventObject:Object):void {
        var paTime = vidPlayer.playheadTime;
        if(fullDuration != null){
    //updates the text box with the instance name timeCode_txt on the root timeline.
    //best to use a monospace typeface like calibri for the textbox font.
            time_txt.text = prettyTime(vidPlayer.playheadTime) + " / " + fullDuration;
    vidPlayer.addEventListener("metadataReceived", listenerObject);
    vidPlayer.addEventListener("playheadUpdate", listenerObject);
    function prettyTime(timeinSeconds):String{
        var seconds:Number = Math.floor(timeinSeconds);
        var minutes:Number = Math.floor(seconds / 60);
        var hours:Number = Math.floor(minutes / 60);
        //Storing the remainder of this division problem
        seconds %= 60;
        minutes %= 60;
        hours %= 24;
        //Converting numerical values into strings so that
        //we string all of these numbers together for the display
        var sec:String = seconds.toString();
        var min:String = minutes.toString();
        var hrs:String = hours.toString();
        //Setting up a few restrictions for when the current time reaches a single digit
        if (sec.length < 2) {
            sec = "0" + sec;
        if (min.length < 2) {
            min = "0" + min;
        if (hrs.length < 2) {
            hrs = "0" + hrs;
        //Stringing all of the numbers together for the display
        var time:String = hrs + ":" + min + ":" + sec;
        //Setting the string to the display
        return time;

  • FLVPlayback Component Volume Issue

    Hopefully someone can give me a hand with this one. 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.
    Any idea how to set the max volume for the volume slider? I'd have thought the volume parameter setting would be tied to this.
    Thanks!

    Thanks, Kibbik.  That's actually very helpful.  I guess I was just wondering if there was a method to reset the max volume of the slider to 200% or something similar, but I suppose not.
    I figured redoing the volume on the original movie was one solution, but it would be nice to see the component rewritten so as to reset the max volume of the slider to the volume parameter setting.

  • A better way to determine the current state of the FLVPlayback component?

    Below is the AS3 code I have used to display images (MCs) over an instance of the FLVPlayback component.  These images (one for loading, one for the title) are to appear – or disappear – according to the current state of the FLVPlayback component. 
    It “works,” but when testing, I have noticed that it can be rather finicky.  The most common issue that arises is that many times the loadPoster movieclip will still be visible even though the video has entered the playing state.
    Also, I wanted a title placeholder image to appear whenever the user stops the video or if the video completes.  However, I had to add the conditional statement to the “stoppedStateEntered” case to make everything appear when expected.  When the video is first viewed (and has completed buffering), it seems that the FLVPlayback component enters the stopped state before entering the playing state.  Thus, the titlePoster would flash on the screen right before it and the loadPoster “should” disappear when the video begins playing.
    Even in my limited testing, these issues were very easily re-created.  I am definitely looking for a more reliable solution.  Is there a better (or more correct) way to go about all this?  If possible, I would like to stick with the FLVPlayback component, just for the simple fact of not having to code my own.
    Where am I going wrong?
    function updateMoviePoster(event:VideoEvent):void
                    switch (event.type)
                                    case "playingStateEntered":
                                                    loadPoster.visible = false;
                                                    titlePoster.visible = false;
                                    break;
                                    case "stoppedStateEntered":
                                                    if (loadPoster.visible == false)
                                                                    titlePoster.visible = true;
                                    break;
                                    case "complete":
                                                    titlePoster.visible = true;
                                    break;
    myFLVPlayback.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, updateMoviePoster);
    myFLVPlayback.addEventListener(VideoEvent.STOPPED_STATE_ENTERED, updateMoviePoster);
    myFLVPlayback.addEventListener(VideoEvent.COMPLETE, updateMoviePoster);

    Any suggestions?  I would truly appreciate the help.

  • How to control the line-in volume input via LabView?

    Anyone know how to control the line-in volume and balance input via LabView?

    I assume you are referring to audio line-in volume control and lerft-right balance...
    If so, then check out this thread:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000D83A0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    Look at the info near the bottom from Paul S & Spectre. They talk about "winmm.dll"
    -cheers-
    JLV

  • Looking for a Bluetooth headset that can control the iPhone's volume

    Hey guys,
    I'm looking to buy a cheap bluetooth headset that can control the iPhone's volume. The reason why I'm looking for that is because I want to take remote pictures. I currently have the Motorola H350 and it does have volume buttons except they control the headset's volume, not the iPhone's.
    I was wondering if you guys could help me.
    Thank you.

    Like ur self, I'm also looking for a bluetooth that can trigger the cam on iphone 4s, mainly for moment when I'm all alone for a picture.
    Have tried the following earphone without success, all purchase through Apple Store, guess will have to source somewhere else.
    1. Jawbone ERA - failed
    2. Bose BLuetooth Headset series II - failed

  • How can I control the PP (monitor) volume using my computer volume controls.

    I'm no longer able to control the PP (monitor) volume using my computer volume controls. I've always controlled the monitor volume using my computer volume levels, but starting today, that has changed.
    The volume is just playing at the level recorded with no way for me to turn down or up.
    I performed a disc repair and that didn't solve the problem.

    Does the OS volume control affect anything?  System beeps and sych?

  • Will the FLVPlayback component play MP3's without FMS?

    Will the FLVPlayback Component (version 2.5.0.15) play an MP3 file without it having to be streamed through a Flash Media Server? All I'm looking for is to place a player into my Flash that plays an MP3 file that's in the same directory as the SWF.
    Here's 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);

    So the answer is no, correct?  FLVPlayback will not handle MP3 files?
    My new script, in case anyone is interested:
    import flash.media.Sound;
    import flash.net.URLRequest;
    var songTitle:String = "Shake Your Rump"
    var fileName:String = "shakeYourRump.mp3"
    var myMusic:Sound = new Sound(new URLRequest(fileName));
    var soundChannel:SoundChannel;
    var isPlaying:Boolean = false;
    var currentPosition:Number = 0;
    btn_Rewind.addEventListener(MouseEvent.CLICK,rewindMusic);
    btn_Play.addEventListener(MouseEvent.CLICK,playMusic);
    btn_Pause.addEventListener(MouseEvent.CLICK,pauseMusic);
    txt_Status.text = 'Click play to hear "' + songTitle + '"';
    function rewindMusic(myEvent:Event): void {
    currentPosition = 0;
    txt_Status.text = 'Rewinding "' + songTitle + '"  Click play to restart.';
    if (isPlaying) {
    soundChannel.stop();
    soundChannel = myMusic.play(currentPosition);
    txt_Status.text = 'Playing "' + songTitle + '"';
    function playMusic(myEvent:Event): void {
    if (!isPlaying) {
    soundChannel = myMusic.play(currentPosition);
    isPlaying = true;
    txt_Status.text = 'Playing "' + songTitle + '"';
    function pauseMusic(myEvent:Event):void {
    if (isPlaying) {
    currentPosition = soundChannel.position;
    soundChannel.stop();
    isPlaying = false;
    txt_Status.text = '"' + songTitle + '" is paused. Click play to resume.';
    stop();

  • HT1947 Any way to directly control the apple TV volume via ios remote app?

    It is great that remote app can now control direct streaming options to the apple TV (such as apple match, apple radio, and home sharing) but is there any way for the remote app to control the volume?
    Note that when I indirectly stream music through an external device (such as an iphone/ipad/laptop), I can of course use an apps volume control (such as, say, spotify, or itunes or whatever), and that works. What i'm talking about here is instances where I'm using the remote app to have the apple TV stream directly from, say, apple radio.
    As it stands now, the only way to control the volume in such cases is to control what is receiving the signal from the apple TV (such as an amplifer, or external sound producing device such as powered speakers, etc.).
    To make sure this clear to everyone, if I do:
    internet -> WIFI LAN -> iphone running, say, spotify -> WIFI LAN via airplay -> Apple TV -> Amplifer
    I can control the volume using the spotify app (or even the iphone's volume). This also works if I replace the spotify app with any music app runing
    on the iphone (such as the music app). If, however, I try to do the following:
    internet -> LAN -> Apple TV -> Amplifer
    and where the Apple TV is controled via the latest iphone/ipad remote app so that the Apple TV streams from, say, apple radio directly, there is no way
    to control the volume other than to adjust the amplifer.
    Thanks very much!

    The Apple TV has no volume control. When you are streaming from an app you are then controlling the  volume  on your iphone and transmitting via airplay.

  • How can I save a video's position using the FLVPlayback component

    I've got a video I'd like people to be able to navigate away from in my project, but resume where it left off if they come back to it.  I would think I could do this by just saving its current position when they exit that frame as a variable and then using .seek() to go back to that spot if/when they return.
    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.

    This is what I ended up doing.  I put the FLVPlayback inside a movieclip and put this on the first frame:
    stop();
    var vidTime:Number=0;
    on the frame that the video plays on I have the video and a close button (which is a movieclip) and I put the following script:
    if(vidTime>0)
        htMeasVid.seek(vidTime);
    close_btn.addEventListener(Event.ENTER_FRAME, seekCount);
    close_btn.addEventListener(MouseEvent.MOUSE_UP, closeBtnUp);
    function seekCount(e:Event):void
         vidTime=htMeasVid.playheadTime;
    function closeBtnUp(e:MouseEvent):void
        e.currentTarget.parent.play();
    on the following frame I have this code:
    close_btn.removeEventListener(Event.ENTER_FRAME, seekCount);
    htMeasVid.stop();
    and then on the last frame I have this:
    gotoAndStop(2);
    so that it doesn't reset the vidTime variable to 0.
    Thanks again for the help.

  • FlvPlayback component not visually appealing

    Hi,
    Anyone out there know where a guy can put his hands on a good
    book or tutorial on creating video controls; the flvPlayback
    component and controls are not very pretty. I am creating a flv
    video player and want to provide some style while doing so.
    There must be others who would agree, that the flvPlayback
    componets are ugly.
    Kind Regards,
    Boxing Boom

    Actually the flvplayback component is not ugly.. it provides
    you with a pretty good basic layout to deliver your video as
    quickly as possible to the web.
    Regarding the design of a player.. it's upon your design
    skills to create an appealing player, looking at youtube,
    dailymotion and all those flash sites, they all have pretty simple
    playercontrols, but a book specially for that is not available,
    google for design videocontrols.
    I remember now that there was a book a while ago called
    interface design, not mentioned for "how to design my videocontrol
    interface" but more on the functionality and usability.

  • FLVPlayback Component for AIR & IOS

    Hello,
    I have referenced this and other forums several times in regards to this question, but would like to canvas it myself here once more in hopes of any new or additional insights that were absent before.
    I am developing an AIR application that uses a long (45min) video as a centerpiece. It necessarily (I think) needs to be applied with the FLVPlayback component because it is both masked by menu and playback controls, and has a large variety of interactive content layered on top of the full-screen (more or less) video.  As of now, the video is encoded in FLV, and works fairly well, but I do have some lingering performance issues, which I am asking help with here today.
    I have read that using FLV in iOS apps is not advised, but for the reasons listed above I most likely will have to do so. I don't think I can use the other options (stagevideo, or otherwise) due to the layering of content above the video, and an irregular mask. I have placed the video in the main directory of the app package (which made all the difference), used GPU, and tweaked the encoding ad nauseam. While all-in-all it has resulted in "okay" performance, I still have a slight but noticeable skip/hiccup/jump in the video during the more graphically intense portions of the production. This only occurs on the iPhone 4/s devices, while the iPhone 5 experience is flawless.
    So I am asking for ANY help/suggestions anyone could offer towards a possible solution/improvement to this problem. I would be grateful for any other setting, encoding, file structure, or alternate suggestions that I have not thought of or addressed.
    Thank you.

    Hi Freelance77,
    The product team would like to know the steps to reproduce this issue. After that, we can try solving it for you. Do let us know.
    Thanks,
    Preran

  • Making the flv component accessible?

    I am using the flv player component and am having trouble adding the players buttons to the tab order.
    I opened the FLA for the skin I am attaching to the component, and individually selected the play, close caption and full screen button and assigned them each a tab order number within the Accessibility window. I also selected the "make object accessible" checkbox for each button within the Accessibility window. Doing that didnt seem to work, so I looked further and found that there is an accessibility class and I have now tried to utilize that class with the following code:
    import fl.accessibility.ButtonAccImpl;
    ButtonAccImpl.enableAccessibility();
    but still dont seem to be doing something right?
    does anyone have experience accessibility and the flv player component?
    many thanks in advance.
    corey.

    i found this on adobes site but the code dosent seem to be correct? it throws this error when i publish:
    Scene 1, Layer 'actions', Frame1, Line 10 1046: Type was not found or was not a complie-time constant: Void.
    DESCRIPTION:
    The FLVPlayback component skins with captioning support were designed with keyboard and screen reader access in mind. The class mx.video.skins.AccessibleSkin assigns a text label to each of the FLVPlayback controls. The AccessibleSkin class also provides the method assignTabIndexes for assigning tab index values to the FLVPlayback controls and incorporating them into the logical tab order of your Flash application. The assignTabIndexes method accepts a start index as a numeric parameter, iterates through the FLVPlayback controls assigning a unique tab index value to each control, and returns the next available tab index number.
    CODE:
    // The starting tabIndex for the FLVPlayback controls
    var nextTabIndex:Number = 10;
    // define a listener object
    var listenerObject:Object = new Object();
    // define a skinLoaded event handler
    listenerObject.skinLoaded = function (eventObject:Object):Void
        // this is technically a hack since the skin_mc is
        // a private property of the FLVPlayback component
        var accessibleSkin = eventObject.target.skin_mc.accessibleSkin;
        if(accessibleSkin){
            // It's best to wait a frame until
            // all FLVPlayback controls initialize
            var intID:Number;
            intID = setInterval( function(){
                // assign tabIndexes starting at nextTabIndex
                nextTabIndex = accessibleSkin.assignTabIndexes(nextTabIndex);
                // trace the next tab index after
                // FLVPlayback controls
                trace( nextTabIndex );
            clearInterval(intID);
            }, 100 );
    // register listenerObject to handle "skinLoaded" event.
    // this code assumes that your FLVPlayback component instance is
    // named "myFLVPlayback_flvp"
    myFLVPlayback_flvp.addEventListener("skinLoaded",listenerObject);
    i miss good old AS2
    thanks again in advance for any help.
    corey

  • Control two FLVPlayback by one seekBar or another controller

    Hii
    i have two FLVPlayback on stage i need to control the both videos by one controller when back or skip some second the both videos moved to the same second , i have created seekBar "seekbar_mc" at stage and typ the code
    myflv1.seekBar =myflv2.seekBar =seekbar_mc;
    it give me 2 slider on seekBar but i need one only can controlling the 2 FLVPlayback
    any one can help me please ?!

    1. add an EnterFrame eventlistener to the stage that checks if any seekbar is being scrubbed
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/video/FLVPlayback.ht ml#scrubbing
    2.If yes:use
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/video/FLVPlayback.ht ml#playheadTime
    to get the value the user scrubbed to
    3.use at last: the seek function on the other flvComponent:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/video/FLVPlayback.ht ml#seek%28%29
    to synchronize both videos
    when synchronized the seekbars should be in synch to
    you should be able to translate that to the case were you have a third, central seekbar on stage:
    Caveat: its highly unlikely that this double streaming will work efficiently in a web based environment.
    If you want to have it functioning reliably you should abandon the flvplayback component (which is only good when it comes to streaming)
    and preloading both your videos in total, before you allow the user to scrub.

  • Using skin from mediaplayback component on flvplayback component ?

    Hi.
    Is it possible to use the skin from the mediaplayback
    component on the flvplayback component ?
    (I've been checking online for this but can't find answer
    anywhere.)
    I want to use the flvplayback so as I can keep the movie
    controls within the area of my flv movie.
    The flvplayback is too large with the boarders and the fact
    that the progress/control bar is placed outside of the movie area.
    Any advice would be great. Thanks. Joey

    Hi.
    Is it possible to use the skin from the mediaplayback
    component on the flvplayback component ?
    (I've been checking online for this but can't find answer
    anywhere.)
    I want to use the flvplayback so as I can keep the movie
    controls within the area of my flv movie.
    The flvplayback is too large with the boarders and the fact
    that the progress/control bar is placed outside of the movie area.
    Any advice would be great. Thanks. Joey

Maybe you are looking for

  • Specific extractor works in DEV but not in QUAL

    Hello Everybody I have new problem : I created a specific extractor ZCRM_SRV_PROCESS_I based on specific FM based on RSAX_BIW_GET_DATA_SIMPLE. This extractor have to retrieve specific fields of Service Order Item (linked document type BUS2000116) In

  • How to read Assignment blocks mode options Lazy, Direct etc

    Hi, I need to read the Assignment block mode settings made in configuration i.e, Direct, Lazy etc in a program. Can some one help me out how to get these values for Account assignment block. Based on these modes, i need to programatically control and

  • Tabbed Panels - Default Tab on Mouseout

    Morning! I have looked all over the place for the answer to this question but alas...no luck! So I'm working on just adding one small bit of functionality for the basic spry tabbed panels; the ability that when the user moves their mouse off of the t

  • DAQ counter vi

    I'm using a DAQ USB-6008 to count the edges of a digital pulse. i need to calculate the frequency of these pulses but I can't do it using the period time because this device doesn't allow it (or so i'm told) I'm using a counter channel, and can succe

  • Calculate the average with respect to time (moving average)

    hello, I am desinging a prototype to detect a kind of cardiac illnesses. I am obtaining beats per minute of heart. At the one of stages of project, I want to calculate the running or moving average of beats per minute at every last 10 seconds. For ex