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.

Tags: Adobe Animate

Similar Questions

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

  • 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

  • Weird reading during the use of Stream.play ("mp3:file")

    Hello!

    I am trying to set up a selection side server for playback of mp3 files, if I fall into a weird behavior of the FMS.

    I use the last FMS 4.0.2

    Here's how I try to publish the stream (ActionScript on the server side):

    var s = Stream.get ("boo");

    If (s) {s.play ("mp3:rhcp", 0) ;}}

    Client side, I try to play using NetStream.play ("boo"). However, the sound quality that I get is really weird. The sound goes slower and faster and stops for a split second. He can play properly for a few seconds, but that's all. Sounds like a problem of decoder for me, or a bitrate conversion problem.

    When I play the stream with NetStream.play ("mp3:rhcp"), the reading goes well.

    I tried several MP3s with different flow rates, but they all have the same problem.

    It looks like a bug to me, so I'm expecting Adobe to comment on this one.

    Hello

    Please try the FMS 4.0.2

    It is a little strange to see the problem, but I would like to know your settings on the client side. What player flash you use (although I doubt that it is a question that your reading of the original file is ok), and what is the length of the buffer that you used? There are known issues with the length of the buffer to 0. Can you try and change the length of the buffer in some other values and see if that helped to get the best quality?

    Thank you!

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

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

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

  • 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

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

  • 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

  • Playing Flash 7 FMS streams

    To read a (live or on-demand) FMS stream or a FLVPlayback component, or the Video class is required.

    And they require 3 ActionScript and Flash 8 or higher.

    As far as I know, Youtube, Dailymotion and Google Video stream their videos on demand for a FMS, and their players are compatible with Flash 7.

    How can they do this?  If Google, Youtube and Dailymotion, I take it that it is possible...

    I tried to create a Flash 7 application that plays a video input of the FMS, using a MediaDisplay component, but it does not work well. Sometimes it shows the video, sometimes not.

    So I don't think that youtube player use MediaDisplay...

    You need not use the FLVPlayback component.

    You can manually code your netconnection and netstream and then simply attach the netstream video to a video object (not a component... the video object).

    As for google reader... I would need to decompile the .swf to get an idea of how they have things to implement, but I think would be that they do not use prefabricated components of video.

  • See the static Image, then Play F4V file

    Hi, I tried to follow the instructions in the following of discussion http://forums.adobe.com/message/2057441 but without success.

    I'm doing it too, only with a static image at the beginning and then to play the flv file:

    Here's where I am right now:

    In the FLA in Flash CS4

    Have the FLVPlayback component and FLVPlaybackCaptioning component (with associated .xml file) more the component button legend inserted and all work fine.

    At this stage have made the video with the controls of the background layer on the timeline.  Name of the FLVPlayback component instance is vid.

    Next layer is the still image as a graphic symbol.

    Top layer is the layer actions.

    On the actions of layer I place the code as indicated in the previous answer, before you twisted for two videos:

    I get compiler errors five, which I have attached a screenshot in jpg format.  I am very new, understand the code, but not AS code.

    Thank you in advance for your help!

    The code used is the following:

    startBtn.onRelease = function() {}
    Make sure that your video has an instance name of vid
    and it is NOT set to AutoPlay.
    VID. Play();
    This ._alpha = 0;
    };
    var listenerObject:Object = new Object();
    listenerObject.stopped = {function (eventObject)}
    startBtn._alpha = 100;
    };
    vid.addEventListener ("stopped", listenerObject);

    listenerObject.playing = {function (eventObject)}
    startBtn._alpha = 0;
    Or you can use startBtn._visible = false
    }

    vid.addEventListener ("playing", listenerObject);

    Here's the AS3 script:

    Import fl.video.VideoEvent;

    function doPlayVid(e:MouseEvent):void {}

    VID. Play();

    This.Alpha = 0;

    }

    function doStopped(e:VideoEvent):void {}

    startBtn.alpha = 1;

    }

    function doPlaying(e:VideoEvent):void {}

    startBtn.alpha = 0;

    }

    startBtn.addEventListener (MouseEvent.CLICK, doPlayVid);

    vid.addEventListener (VideoEvent.STOPPED_STATE_ENTERED, doStopped);

    vid.addEventListener (VideoEvent.PLAYING_STATE_ENTERED, doPlaying);

Maybe you are looking for

  • Pavilion dm1: Pavilion dm1 does not illuminate

    Hello. My pavilion dm1 stopped turning. When the battery is in it is plug in, nothing happens and no lights. I tried holding power button thing. Did not work. When the battery is removed and it is plugged into the socket the led lights blue solid but

  • HP 940 ink cartridges: ink changes if I update printer?

    My 'printer HP Officejet Pro 8500 Wireless all-in-One - A909g"seems to have recurring problems with the touch screen becomes unresponsive and I think it's time to consider an upgrade to a newer model.  However, I bought ink (940xl black and multiple

  • I need a support DX9 compatible video card.

    I just installed a game TROPICO 3 but im getting an error of a DX9 compatible card. I have a GeForce 7600GS PCIe 512 MB DDR2 card.

  • How to get this kind of GUI

    How to display the bar setting, profile and displayed such help in the image... the adjustment bar remains constant inside and the background scrolls vertically... Thanks in advance

  • Possible bug in getDisplayPhoneNumber()?

    Hi, it's to do with the PhoneCall.getDisplayPhoneNumber () method as the topic suggests. I have something like: PhoneCall phoneCall = Phone.getCall(callID); String number = phoneCall.getDisplayPhoneNumber(); System.out.println(number); On the debugge