How does Flash stream / progressively play sounds

Hello, I've been making an MP3 player using Flash (MX 2004).
The player is to stream/progressively play MP3 files on my file
host.
I have already overcome the security part, as it seems that
my file host has allowed cross-domain access.
In my script I set _soundbuftime to 10 seconds
The problem: When testing the player, I notice 2 different
kinds of behaviours at random occasions:
1. The player loads 10 seconds of the song and begins
playing. If the player reaches the end of the loaded data but has
not loaded enough for it to continue playing, it will wait until
the next 10 seconds are loaded before continuing playback.
2. The player does not buffer as much as stated by the
_soundbuftime parameter. It loads one second, plays it, stops,
loads another second, plays it etc.
What I would like to know:
1. Is behaviour 2 a known issue in Flash 7, or is it because
I am using Flash Player 9 to test it?
2. Does the player buffer as much as specified by
_soundbuftime each time it has run out of data to play, or does it
do so only for the initial buffer?
3. Do more recent versions of Flash (such as 8 or 9) and/or
Flash Player show behaviour 2?
Would appreciate if anyone could help me.

You should be using the Media Components for playing and
progressively downloading your .mp3 files, the buffertime in these
components will work correctly. You will also then have the ability
to seek, pause, play, stop and a bunch of other commands that you
just won't get when using the .loadSound() functions of flash 7. To
actually stream your .mp3 files you will need to use the Flash
Media Server, this will allow you to seek to all points of your
audio before it has been fully downloaded. In addition the problems
you are experiencing seem to be bandwidth issues, depending on your
host you may not see any improvements.

Similar Messages

  • How does Flash Player determine if TLS is available?

    In ActionScript, there is a setting called "flash.system.Capabilities.hasTLS" that determines whether or not the Flash Player can make native SSL/TLS-based connections.  The definition of this property says " Specifies whether the system supports native SSL sockets through NetConnection (true) or does not (false)." 
    How does Flash determine whether this property is true or false?  Is the value passed to the Flash player by the browser?  Does Flash figure it out from the environment?  If so, how?

    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager05.htm l

  • How does Flash use the microphone?

    I'm a long-time Windows driver developer.  I'm trying to get Flash to use my virtual webcam/microphone as the current webcam on Windows XP or Windows 7 (identical results).  I started out with a DirectShow source filter with two pins (video and audio), but Flash did not see an audio source at all, even though Amcap worked just fine.  I then tried making two separate source filters (one with an audio pin, one with a video pin).  Again, Amcap is happy but Flash does not see an audio source.
    After some debugging, I noticed that it was enumerating the waveIn devices.  So, I wrote an old-style waveIn driver for the audio.  Flash now negotiates an audio format, but it never initiates streaming.  If I bring up the "Options" dialog and go to the microphone tab, then Flash DOES start streaming, presuambly to get information for the VU meter, but as soon as I dismiss the dialog, the streaming stops.
    How can I find out what exactly Flash wants?   The whole process is frustratingly opaque.
    Tim Roberts, [email address removed]
    Providenza & Boekelheide, Inc.

    Moved to Using Flash Player.

  • I've tried everything, but I still can't get firefox (flash apps) to play sound!

    If anyone can help me, it'd be most appreciated!
    I'm running Mozilla Firefox on Windows 7.
    I've searched in many question for a solution, but my Firefox still does not play sound. I uninstalled and reinstalled every plugin, I've checked my regedit for the wavemapper file, I've tried to tinker with the volume in Windows itself and several other options, to no avail!

    I would take it in to an Apple store. Make an appointment.
    Barry

  • How many ALSA applications can play sound at once?

    I ran into a strange issue where I had Counter-Strike:GO running (sound working fine in the game itself) but when I alt-tabbed, no other application could play sound.  VLC would complain my device was busy and Chromium didn't show an error but sound didn't work either (tested with a YouTube video.)  I was able to solve this by changing the audio setting in CS:GO from 5.1 surround to 2 speaker (I use headphones so no need for surround) so now I can alt-tab and still have sound in other applications.
    What I want to know now is why that is?  Is there a limit to the number of simultaneous channels or what?  I just tested and with CS:GO set to 2 channel I can play sound from CS:GO, Chromium, VLC, and Banshee all at the same time but with 5.1 CS:GO hogs the sound card all to itself.
    I'm also curious about where PulseAudio fits into this.  Right now I'm just using pure ALSA.  If I were to get a surround setup one day would PulseAudio overcome this limitation and allow me to play music while I game?

    See list of gotchas.
    The main issue you probably have is that Dmix doesn't work with more than stereo - *unless* you use something like my sample config.
    ALSA is flexible, which means it will allow naughty apps to block the soundcard for other apps. So, configure your apps also.
    ALSA works fine, no need for pulseaudio.

  • How does Flash send outgoing HTTP request to server?

    Hello everyone,
    I would like to know how Flash sends outgoing HTTP requests.
    I would like to know when from the inside of a Flash SWF file
    request for another SWF or FLV file is made; how the Flash sends
    this request to server.
    Thank you very much and have a great day,
    Khoramdin

    Hello everyone,
    I would like to know how Flash sends outgoing HTTP requests.
    I would like to know when from the inside of a Flash SWF file
    request for another SWF or FLV file is made; how the Flash sends
    this request to server.
    Thank you very much and have a great day,
    Khoramdin

  • Stream only playing sound (no video) in latest Mac browsers?

    I built an app using SMP 1.6.274 inside Flex Hero targeting Flash 10.1.102.64.
    The  app ran fine in an OSX 10.6.7 running Firefox 3.4, but not Safari 5.05  or Chrome 11.0.696.65 on a Mac: the stream plays only sound and shows no  video.
    I installed the latest version of Flash Player  10.2, on the chance that there was a conflict with the older Flash  Player and the newer Chrome and Safari browsers, but that didn't solve  the issue. I then downloaded Firefox 4.0, and it also plays only the  sound.
    So I tried to install Flex 4.5.20967, the latest  build and target Flash Player 10.2, but ran into a number of problems  (mainly losing the connection to the spark.components.Application), so  rebuilt the application back around Flex Hero, but still have no video  on all three Mac browsers.
    I verified that everything is working fine from the FMS server by running older players.
    I am not sure what else to do at this point and am wondering if someone can point me in the right direction.
    Thanks.

    With Flash Player 10.2 the new StageVideo API became available. Using this new API enables hardware accelerated video rendering, boosting video performance and reducing CPU usage.
    In the latest OSMF builds (starting with the OSMF 1.6 Sprint 1 build) support for the StageVideo is enabled by default.
    What you've experienced it's a known limitation of using OSMF or SMP in a Flex application, where the video is shown behind all the Flex components.
    To make your video visible, you have to set backgroundAlpha=”0″ for your mx:Application or other flex containers of your video.
    Alternatively, if you don't want the performance boost you get from using StageVideo, you can disable it and your app should work as expected.
    Here's how you do that: OSMFSettings.enableStageVideo = false;
    As for your latest post, Chrome has it own version of Flash Player bundled with the browser and it manages the updates by itself.
    I suspect you still have 10.2 installed in chrome. Use Chrome to visit this link to learn what version of Flash Player it's using: http://www.adobe.com/software/flash/about/
    I hope this helps!

  • How do I stream Netflix with sound to my tv

    I have iPad 16gb and Netflix but I can't seem to stream to my tv with sound. I have ios 5.0.1. Plus aple component av cable which has red, blue and green plus left and right audio. No sound. Please help

    You'd think the HDMI connector would connect both video and sound. It does not.
    You need to run a seperate cable from your iPad's headphone jack (or just listen to the iPad speakers).
    Sorry

  • How does Photo Stream in iCloud get updated on Apple tv?

    When I open Apple TV and go to iCloud pictures and want to play a slideshow, the last updated pictures are a month or so old.  How do I get those updated to show current?

    Put the photos that you wish to use for your presentation or screensaver into a photo stream shared album and then choose that album as your screensaver in your screensaver settings.

  • How does Photo Streaming works?

    Hello, I know what does the Photo Streaming funcionality does basically, but I wanted to know what is behind taking a picture and then seeing it in my mac afterwards.
    Also some concrete questions I had were:
    How long does it take for a picture to get into the iCloud server? and how long does it take to get into iPhoto?
    If I had a picture in my iPhone and I mistakenly delete it, would it be in my Photo Stream? Any exceptions?
    Is it completely automatic? Do ALL my devices with my account get this photos?
    and Finally, Do they need storage when synchronized?
    Thanks!!

    iCloud: Photo Stream FAQ
    How do I delete photos from my Photo Stream in iCloud?
    Individual photos cannot be deleted from your Photo Stream. You can, however, delete all the photos in your Photo Stream by clicking the Reset Photo Stream button in your account at icloud.com. The Reset Photo Stream button will instantly delete all Photo Stream photos stored in iCloud, but it will not remove any Photo Stream photos that have already been pushed to your devices."

  • How does Flash Player projector/standalone connect to the Internet

    I know that when a web service call is made from a flash player in the browser that the underlying browser is used to handle the traffic.  I also know that this isn't the case with flash projector because the security docs say that the projector files can't take advantage of SSL because they aren't run in the context of the browser.  So what mechanism does a standalone or projector application use to connect to the Internet?  I'm trying to analyze a possible application for someone from a security point of view, but I'm not sure what mechanism is in place.
    Thanks to anyone who knows or even knows of some decent references.  I can't find much on projectors....

    As far as I know, the standalone player does not connect to the Internet - it just plays local Flash content.
    Or can you actually give it an Internet (http) location to play?  (I do not currently have Projector installed, so I cannot try it.)

  • How to prevent Mail to play sound

    Hi,
    I have a rule which identifies junk emails and deletes them immediately. If the rule applies Mail still notifies on incoming mail. That is annoying.
    How can modify the rule, that Mail avoids playing a sound in these cases?
    Thanks
    Graefe

    On OS X, You are able to hide the preview window on the right in normal mode, or on the lower side in classic mode, by simply putting your cursor on the thin bar which is in between, and then make it as small as possible, so it goes away.
    Then your messages won't be automatically read when clicked once, but only if you click them twice and a new window with the message opens.
    Also, you are able to mark them as unread again, which is a silly workaround, but possible.
    You can do that by right clicking and select 'Mark as...' -> unread.
    On iOS, I'm not sure..

  • How does flash output vector input?

    I'm somewhat of a noob here, so please forgive my ignorance.  I tried to google the answer to my questions, but probably not using the right terms.
    So my questions are these:
    - Is there any advantage to using vector elements in flash projects, or do they just get rasterized in the swf creation process?
    - If you use vector instead of raster art, can you scale your swf infinitely large (theoretically) without degradation?
    - Will vector art result in a smaller swf size?  Will it take less processing power to play?
    Thanks!

    1. Vector graphics are generally the best option you have in a flash movie and keep your swf very low in file size thus faster loading in browser. They do not get rasterized when published into a swf file.
    2. Yes, vector graphics can be scaled infinitely without degradation as they are not resolution dependent.
    3. Generally file sizes of swf are low when using simple vector graphics but it really depends on the complexity of the vector graphics. Flash uses mathematical equations of lines and curves to reconstruct the graphic as it is rescaled. So size and processing speed would largely depend on how complex your vector graphics are made. If you have graphics with alot of curves, corners, lines, etc, your file size will increase as you need more bytes for functions ( f(x) ) to reconstruct the graphic, consequently, more processing time/power is required. There are times raster (bitmap) graphics are a better alternative over vector graphics and there are times when you it is better to convert your bitmap graphic to vector (Modify -> Trace Bitmap) when it only uses a few colors and curves/corners. You will need to experiment and find which works better for you.

  • How to setup IIS to play sound ? How to created .raw? Where Doccument?

    I programming with IPPhone for 3 ys, but so surprised, there is less more less about how to setup the IIS to test RTP (or something like streaming). Please anyone can help to provide information about this. My customer want to Broadcast a wav file to announce some thing, how can I do it? I search all cisco doc but no any infomr

    There are 3rd party software out there which can do a much better job at broadcasting wave file, send live page, text notification, weather alerts, etc.
    If you want to develop yourself, you need to use RTPTx, RTPRx and CiscoIPPhoneExecute objects from SDK. To broadcast audio to a multicast, there is also sample code available. The problem is managing the phone list and groups and providing an intuitive interface for users and sys admins. I do have some sample code that we used in PhoneTop Messenger product, but it is all in Java and needs a Windows box to host it.

  • How does one silence start up sound with Mountain Lion?

    I recently upgraded to ML and now that sound is back....Ugh!
    Can't seem to turn it off. Help please?

    How disable startup sound mountain lion?: Apple Support Communities

Maybe you are looking for

  • Exchange 2013 schemaprep failing

    Trying to setup Exchange 2013 on a test domain with no prior Exchange. All prereq's done, tried doing the schemaprep from one of the CAS servers, and it failed, also tried from one of the DC's. DC's are 2008R2. Domain and forest are at 2003 level. Ru

  • Built in iSight and iChat used for home monitoring?

    Can I set up my iMac to monitor my dog in my apartment while I'm at work? Would I connect with iChat, or would I somehow set it up as a webcam?

  • Opening backup files

    I cannot open the backup ipd files. Solved! Go to Solution.

  • ** Corda PopCharts Not Working **

    I've installed and been working with the new release (10.1.3.2) of Oracle BI Enterprise Edition (OBIEE) for about two weeks... The Corda Popcharts in the Interactive Dashboards are no longer working stating the evaluation period has expired and the s

  • Wife's iPhone4 Unable to Send Pics to Mine

    My wife and I upgraded a couple of weeks ago to the iPhone 4. However, whenever she sends me pics (via MMS) I never get them -- yet others who DON'T have iPhones do. This was not a problem with our 3Gs models. I might add that she's able to get pictu