Media Playback Component - how do i close connection

I am using the media playback component to stream Mp3 files.
The rtmp files are loaded into my flash component from a database
and show up as click-to-play links. When the users click to play
them, I call stop on the playback component if it is currently
playing and then the playback component path is changed to the
clicked song and then told to play. When I run this as a Flash
Application everything is fine, however, when I preview on the web
or load onto the web it has problems.
On the Web:
1. Each time I click a link it makes a new connection to the
Media Server and does not close the old one.
2. The music either fails to play, stutters, plays both
streams, or plays for a while and quits.
3. I end up with one user taking up a bunch of streaming
licenses
From Flash:
1. Each time I click a link it closes the old connection and
makes a new connection.
2. The correct song plays without problems.
3. 1 User, 1 License
Does anyone have any thoughts? How do I explicitly close that
connection?

Write a stopMusic function that contains the code: "delete
yourMusic" where yourMusic is the name of your Sound Object. i.e.
var yourMusic:Sound;

Similar Messages

  • Need a small media playback component

    Is there anywhere i can get a small medit playback component
    from? I want to put mp3s into my swf files but the current media
    playback component is too big. Id prefer it if the play buttons
    were to the left and the how much of the audio has been played is
    to the right to create a strip. Want something with a max height of
    about 50 px.

    Why don't we start over and go step by step from the
    beginning...
    #1 - Create a project folder somewhere on your hard drive.
    Name it. You will save your fla, swf, and mp3 files in this folder.
    #2 - create new flash document.
    #3 - save flash file to project folder.
    #4 - drag MediaPlayback component to the stage.
    #5 - open Component inspector. Click mp3 radio button. Place
    name of mp3 file in URL field.
    #6 - make sure mp3 is in project folder with fla file.
    #7 - test movie.
    That "should" work.

  • Media Playback Component Behaving Erratically

    Google player is playing easily the flvs but the our flash
    player using "Media Playback Component" is getting stuck, not
    showing video, stopping mid way.
    http://demo.pixsense.com/videoPlayer.swf?movie_ID=454.flv
    attari_pixsense:
    http://demo.pixsense.com/googleplayer.swf?videoUrl=http://demo.pixsense.com/454.flv
    We are converting 3gp files using ffmpeg.
    Any pointers will be very helpful. If more info is needed let
    me know.
    Thanks in advance.

    Why don't we start over and go step by step from the
    beginning...
    #1 - Create a project folder somewhere on your hard drive.
    Name it. You will save your fla, swf, and mp3 files in this folder.
    #2 - create new flash document.
    #3 - save flash file to project folder.
    #4 - drag MediaPlayback component to the stage.
    #5 - open Component inspector. Click mp3 radio button. Place
    name of mp3 file in URL field.
    #6 - make sure mp3 is in project folder with fla file.
    #7 - test movie.
    That "should" work.

  • Media playback component

    Hi, I understand that the media playback component in mx 2004
    does not suuport m4a files. Does anyone know an easy way of
    converting m4a to mp3 format? Thanks in advance

    you can convert using itunes if u have it
    open itunes, go to ur itunes preferences and under the
    "advanced" screen click on the tab "importing"....make sure ur
    "import using" is set to MP3 encoder. click ok and head back to ur
    itunes library. click once on whatever file u r looking to change
    and then go to "advanced", the 3rd option down should say "convert
    selectin to mp3". it will create a second file (mp3) u can use to
    bring into flash.
    hope that helps. good luck
    A

  • How do I close Adobe Dynamic Link Manager & Adobe Media Core to install After Effects?

    when i try and install the after effects cc it tells me to close the following programmes: after effects, adobe dynamic link manager and adobe media core.
    How do i close the last 2??

    You can also restart your computer to make sure that everything has been quite that needs to be. Restarting before and after installing major software is a good idea in general, anyway.

  • Media playback

    hello,
    i'm trying to use the media playback component in fllash CS3.
    I can see that I have the option to write in a URL for an flv
    in the "component inspector" but I actually
    want it to load from an external file so i can decide which
    movie I want to see...
    how can I do that using ActionScript?
    thanx alot

    Glad to stumble accross this one. I'm wondering the same
    thing. For my project once you hit that expanding arrow the video
    get lost on screen without controls.

  • I want to writte C# code for 503 Service Unavailable error to web application page immediate close connection any page loaded

    Here is a ticket regarding our current client web application (  Image data add, edit , delete in folder with form data in MSSQL Database) that using code c#, web form, ajax, VS2008, MSSQL Server2008 , it appears that there is an error where the HTTP
    503 error occurs. 
    . Below is a conversation with Host Server support assistant.Can you take a look at it? 
    Ben (support) - Hi 
    Customer - We're having an issue with our windows host 
    Ben (support) - What's the issue? 
    Customer - 503 errors 
    Ben (support) - I am not getting any 503 errors on your site, is there a specific url to duplicate the error? 
    Customer - no, it comes and goes without any change Customer - could you have access to any logs ? 
    Ben (support) - Error logs are only available on Linux shared hosting, however with this error it may be related to you reaching your concurrent connections 
    Ben (support) - You can review more about this at the link \ 
    Customer - probably yes - how can we troubleshoot ? 
    Ben (support) - http://support.godaddy.com/help/article/3206/how-many-visitors-can-view-my-site-at-once 
    Ben (support) - This is something you need to review your code and databases to make sure they are closing the connections in a timely manner 
    Customer - we're low traffic, this is an image DB to show our product details to our customers 
    Customer - ahhhh, so we could have straying sessions ? 
    Ben (support) - Correct Customer - any way you could check if it's the case ? 
    Customer - because it was working previously 
    Ben (support) - We already know that's the case as you stated the 503 errors don't happen all the time if it were issue on the server the the 503 would stay. 
    Customer - so our 2/3 max concurrent users can max out the 200 sessions 
    Customer - correct ? 
    Customer - is there a timeout ? 
    Ben (support) - no that's not a time out concurrent connections are a little different then sessions and or connections. Lets say for an example you have 5 images on your site and 5 7 users come to your site this is not 7 concurrent connections but 35. They
    do close after awhile hence why the 503 error comes and goes. You can have these connections close sooner using code but this is something you have to research using your favorite search engine 
    Customer - thank you so much 
    Customer - I'm surprised that this just started a few weeks ago when we haven't changed anything for months 
    Customer - any changes from your side ? lowering of the value maybe ? 
    Customer - I'm trying to understand what I can report as a significant change 
    Ben (support) - We haven't touched that limit in years 
    Ben (support) - This could just be more users to your site than normal or even more images 
    Customer - I was thinking that could be it indeed 
    Customer - so I need to research how to quickly close connections when not needed 
    Ben (support) - Correctly 
    Ben (support) - correct 
    Customer - thanks !! 
    Ben (support) - Your welcome 
     Analysis : 
     The link provided tells us : All Plesk accounts are limited to 200 simultaneous visitors. 
     From what Ben (support) says and a little extra research, if those aren't visitors but connections then it's quite easy to max out, especially if the connections aren't closed when finished using. I'd suggest forwarding this to Kasem to see what he thinks. 
    Cheers, 
    Customer

    Hi Md,
    Thank you for posting in the MSDN forum.
    >>
    I want to writte C# code for 503 Service Unavailable error to web application page immediate close connection any page loaded.
    Since
    Visual Studio General Forum which discuss VS IDE issue, I am afraid that you post the issue in an incorrect forum.
    To help you find the correct forum, would you mind letting us know more information about this issue? Which kind of web app you develop using C# language? Is it an ASP.NET Web Application?
    If yes, I suggest you could post the issue directly on
    ASP.NET forum, it would better support your issue.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • How to use single connection

    Hello Gurus,
    I am new in adf and using jdev 11.1.2.3.
    I am developing application in which i am using dynamic shell UI. The structure of application is i have one main application modules with the UI shell. The other modules are developed in separate application and has its own data control and task flows and then i deployed them as adf library. Then i am consuming the task flow in the main application.
    As i mention each module has its own data control, so when i open a module it makes new connection with database. It means if i have opened ten modules then it is opening ten connections with database.
    Is is possible i can configure somewhere to use single connection for all modules and not to open the connection for each module.
    And one more thing if i undeploy the application the connection is still with database as v$session view shows it. How i can close connection if i close the tab in ui shell.
    Thanks,

    Hi, You can explore the option of nesting your AM.  Check below links to know more about them.
    Decompiling ADF Binaries: What you may need to know about Nested Application Module
    Nested application modules | ADF KickStart
    Good luck !

  • Media playback poblem...PLEAE HELP!

    Hi all,
    I am having poblems with my media playback component.
    I imported a video file and made a .flv file to play the
    video.
    I placed the swf in my flash website and when a button is
    pressed it is being called up using
    the loadmovie command. When i test the file locally the movie
    loads on the screen but it does
    nothing on the web. any ideas?

    Why don't we start over and go step by step from the
    beginning...
    #1 - Create a project folder somewhere on your hard drive.
    Name it. You will save your fla, swf, and mp3 files in this folder.
    #2 - create new flash document.
    #3 - save flash file to project folder.
    #4 - drag MediaPlayback component to the stage.
    #5 - open Component inspector. Click mp3 radio button. Place
    name of mp3 file in URL field.
    #6 - make sure mp3 is in project folder with fla file.
    #7 - test movie.
    That "should" work.

  • How to video via email using flash media playback setup?

    How I can send video via email?  I send every week an email that contain a link to WMV file on our website.  I am trying to send the same thing using flash media player. Here the html generated via flash media playback setup and will not display in an email.  Any advise
    <object width="400" height="400"> <param name="movie" value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf"></param><param name="flashvars" value="src=http%3A%2F%2Fwww.4GodIsLove.com%2F%2FTV%2FFlash%2FLydua_Fares_Elhaana.flv"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"  width="400" height="400" flashvars="src=http%3A%2F%2Fwww.4GodIsLove.com%2F%2FTV%2FFlash%2FLydua_Fares_Elhaana.flv"></embed></object>

    salma_salma wrote:
    Thanks Janaki but how can I add a new application? I tried to do it using Flash Media Administration Console but it doesn't work
    Hi Salma,
    To add an application to FMS follow the below steps
    1. Create a folder "my_app" under "$InstallRoot\applications" directory.
    2. For simple server side code... add "main.asc" file inside "$InstallRoot\applications\my_app" directory which has the content like
    application.onConnect = function(clientObj){
         trace('onConnect function");
         return true;
    3. To add streams to the application, creates 'streams' folder inside "$InstallRoot\applications\my_app" directory, within that create '_definst_' folder and then place your FMS supported streams within the directory. So your streams for the 'my_app' application will be at "$InstallRoot\applications\my_app\streams\_definst_\mystream.flv".
    You can connect to this application using the url "rtmp://your_server_name/my_app". To play the stream mystream.flv using video player, use the url "rtmp://your_server_name/my_app/mystream.flv".
    Regards,
    Janaki L

  • Online Code Walk-Through Wednesday on How To Build an OSMF Player Strobe Media Playback

    Wednesday November 17 at 12:00 noon PDT the OSMF User Group is hosting an online  code walk-through of the open source Strobe Media Playback video  player codebase.
    The code walk-through will be lead by Andrian Cucu who is  Adobe's Project Leader on the Flash and Strobe Media Playback video player  project.
    To join, just go to the following link at the meeting time to join the OSMF  User Group's Connect room:
    http://experts.na3.acrobat.com/osmf/
    For further details and to RSVP see the following link:
    http://osmf.groups.adobe.com/index.cfm?event=post.display&postid=30846
    ** ALL ARE WELCOME! **
    ** PLEASE FORWARD THIS MEETING NOTICE TO ALL WHO  YOU THINK MAY BE INTERESTED! **

    The player supports both standard and advanced delivery methods, including progressive download, RTMP streaming,
    RTMP dynamic streaming, HTTP streaming, HTTP dynamic streaming, and live streaming. Flash Media Playback
    1.5 and Strobe Media Playback 1.5 also provide support for RTMFP multicast content delivery.
    While RTMP(x) streaming are FMS content delivery technologies, the player can also be used with other FMS compatible streaming servers, such as Wowza or Red5.
    In the case you do not need the use of FMS streaming functionality, progressive download is always an alternative (what this means is that all you need is a video that can be served by a webserver like apache, nginx, lightypd, etc).
    As for how the player can be used, these links are allways a good place to start and get a better idea of what it is all about:
    http://www.osmf.org/strobe_mediaplayback.html
    http://blog.theflashblog.com/?p=2087
    Hope this helps.

  • How to correct close database connection after report generation

    Hello
    I have problem a with alive database connection after report creation and report  closing. How to properly to close connection to database?
    Best regards
    Edited by: punkers84 on Jun 17, 2011 10:38 AM

    that's what I am doing... after viewing the report, I call the close method on the window closing event of the container window. but the connection is still open. I had a lot of other issues with my jdbc driver but after downgrading to an older version those issues are resolved.Only this one is still there! Is there any other way to close the connection (like using dbcontroller or etc.)?

  • I am unable to get my bluetooth working message says "make sure car mutli media is in range" how do I get connected?

    I am unable to get my bluetooth working on my phone. the message says "make sure car mutli media is in range" how do I get connected and what does that mean?

    Have you tried a soft-reset ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider if it appears), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • How can I get a loading animation to play while fly playback component loads a file?

    Hi team,
    Two part question here..
    So I have a FLV playback component and a number of .flv files that it loads   ------>  using video1.source="film/whatever.flv";
    There is a slight delay while the file loads and so I would like to
    A) make this pause a bit longer (it would be so fast at the moment that any loading animation would be subliminal, but with nothing at all you get a second of blank which is not good either- so if I can get it to be a bit longer, like say 2 seconds..
    B) have an animation play while this happens..
    It does not need to show progress or anything, just like a spinning wheel or whatever.
    I have been playing around with bufferTime but not really getting anywhere..
    Can anyone help me out?
    Thanks
    sub

    Here is a test with one flv player (video1) and two buttons (butt and butt1)
    Ok so I have some code that kind of works using the countdown timer... but I obviosuly dont know why it works because if I change the seconds count down from 1 to 2 it only works once.
    I get "working"
             "working"  trace twice and it works
    After that I get the "working" trace but nothing happens    ...    I am close but would really like to understand a bit more what I am doing!
    Any help greatly appreciated.
    Cheers
    Sub
    import flash.events.MouseEvent;
    var fl_SecondsToCountDown:Number = 1;
    var fl_CountDownTimerInstance:Timer = new Timer(1000, fl_SecondsToCountDown);
    video1.visible=false;
    video1.load("film/film1.flv");
    video1.stop();
    butt.addEventListener(MouseEvent.CLICK, go);
    function go(e:MouseEvent){
              video1.visible=false;
              fl_SecondsToCountDown = 1;
    fl_CountDownTimerInstance.addEventListener(TimerEvent.TIMER, fl_CountDownTimerHandler);
    fl_CountDownTimerInstance.start();
        video1.load("film/film1.flv");
    butt1.addEventListener(MouseEvent.CLICK, go1);
    function go1(e:MouseEvent){
              video1.visible=false;
              fl_SecondsToCountDown = 1;
    fl_CountDownTimerInstance.addEventListener(TimerEvent.TIMER, fl_CountDownTimerHandler);
    fl_CountDownTimerInstance.start();
              video1.load("film/film2.flv");
    function fl_CountDownTimerHandler(event:TimerEvent):void
    {trace("working");
              fl_SecondsToCountDown--;
              if(fl_SecondsToCountDown==0){
                        trace("done");
                        playmovie();
                        fl_CountDownTimerInstance.removeEventListener(TimerEvent.TIMER, fl_CountDownTimerHandler);
    function playmovie(){
              video1.visible=true;
              video1.play();

  • I am using strobe media playback but i want to add new button for subtitle in control bar,Can anybody tell me how can i do it.

    I am using strobe media playback but i am not able to add new button for subtitle in control bar.
    I have imported assets.fla file in Flash professional but i do not understand how add new button in this fla and then link with action script method to show subtitle.If anybody know about it please tell me.

    Hi,
    Yes you can add video subtitle and I can give you the details how to do
    that. Can you please advise which type of files you have for video
    subtitile and how many language you want to add. i.e. text files or xml
    files.
    Best regards,
    Sunil Kumar
    On Thu, Jan 15, 2015 at 5:22 PM, Add Subtitles to OSMF and <

Maybe you are looking for