Stop Streaming MP3 Playback

Is there an action script to stop the streaming mp3 playback
in a proceeding frame navigated to?

SM6601,
> Is there an action script to stop the streaming mp3
playback
> in a proceeding frame navigated to?
If that sound is initiated by ActionScript (e.g. an instance
of the
Sound class), the Sound.stop() method will do it. If not, you
can always
try the stopAllSounds() function.
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design."

Similar Messages

  • Stop/Start Streaming Mp3 Sound- Button Script

    I'm looking for a button script to stop a streaming mp3 sound
    playback on the first click, then start it again on the second
    click and so on.

    You need brackets after the function call...
    playMusicFunc();

  • Streamed MP3 music files losing first few seconds

    My Apple TV seems to drop the first few seconds of MP3 music files when they are streamed from iTunes, but not when they are synced to the Apple TV.
    The number of seconds that are dropped varies from none at all for some songs to 20, or much more than that ... but seemingly never more than a minute.
    When I select one certain song in a particular playlist -- "Song for the Mira" by the Garrison Bros. -- the time shown is 5:19. When I press play on the Apple TV remote the time changes to 5:00, very briefly ... just before the Apple TV starts to play the song with its first 19 seconds missing, as if it were really a 5:00 song.
    From that time on (unless I reload the iTunes library) every time I select the same song from any playlist, or from under Songs, or Albums, or whatever, the time is always shown right away as 5:00. So Apple TV is "remembering" the time of the song.
    If I cause Apple TV to reload that iTunes library, the time goes back to 5:19 until I actually play the song again, at which time it becomes 5:00 again.
    The amount of time that is sliced off from the beginning of a song is always consistent for that song. So if the amount is 12 seconds one time for a particular song, it is always 12 seconds.
    I have not altered the start or end points of affected songs in iTunes.
    As far as I can tell, this never happens with Protected AACs.
    It never happens with synced copies of the MP3s, only with streamed playback.
    I have the latest versions of iTunes (7.3.2) and of the Apple TV software (1.1).
    Restoring the Apple TV to factory settings, re-downloading the software, etc., have no effect on the problem. Nor does restarting my iMac, which is running OS X 10.4.10. Nor does restarting the various base stations on my wireless network, all of which have the latest firmware.
    Anyone else have a problem with the beginnings of streamed MP3s being truncated? Anyone know what to do about it? Thanks.

    Since my last post to this thread I have discovered:
    (1) I was wrong in thinking there is no pattern to the number of seconds lopped off at the beginning of various MP3s when streamed to my Apple TV. Actually, I have found that the same number of seconds is dropped from every song in a particular album or compilation!
    So my "Sounds of Nova Scotia, Vol. 1" compilation -- which contains the "Song for the Mira" that is reduced from 5:19 to 5:00 at the start of Apple TV's streamed playback -- has 19 seconds removed at the start of every track when its tracks are streamed to Apple TV. (It does not appear to be significant that this particular track seems to be rounded to the nearest minute. Cutting the first 19 seconds off the other tracks in the compilation does not bring them to an even minute.)
    My Beatles' "Abbey Road" album has not 19 but 30 seconds dropped at the start of every streamed track!
    (2) I was also wrong in reporting that the time change from, say, 5:19 to 5:00 is "remembered" by Apple TV the next time I select the affected track from a list on the TV screen. Actually, the next time I select the track, it shows up as 5:19 again. But if I press Play, that changes to 5:00 in the split second just before the track actually starts to play ... and then the progress bar that appears at that point, when the actual song is being played, reflects a 5:00 total time, not 5:19.
    To recap what I said before, this happens only when I stream (even from the syncing iTunes), not when I play a synced copy. AACs are unaffected. Not all MP3s seem to be affected, though all in an affected album or compilation are affected the same way, by having an identical number of seconds lopped off. I have the latest software/firmware in all my devices. Restarts/resets do not help. The problem persists in copies of copies of the affected MP3 tracks streamed from iTunes _on my other Mac_, a MacBook Pro. The problem does not occur when I play the tracks right in iTunes on either machine. I am not using manually set start and stop times on the affected tracks in iTunes. I do not have *Part of a Gapless Album* or *Remember Playback Position* set in Info in iTunes Preferences, though I have tried setting *Part of a Gapless Album*, with no effect on the problem.
    Anyone have any more ideas as to what might be causing this? Thanks.

  • AirTunes stops streaming after each song but iTunes shows it playing

    I've read through a lot of posts and either people are having the same issue just describing them differently or I'm seeing an entirely different issue.
    My setup is Windows Vista running iTunes 8, Airport Express and an iPod Touch running the Remote app. I just bought it all yesterday and did all the firmware and software updates it asked me to when setting it all up.
    I had it setup wirelessly and working -- the remote controlled iTunes which send audio to my AE and it worked beautifully. Then I realized the music stopped, I went to check and iTunes still showed the music playing, but no sound was coming out of the remote speakers. If I change the speaker output to computer then back to the remote speakers it starts playing again.
    I've disabled wireless on the AE and put a long wire across to rule out wirless interference or problems. I've disabled the Windows Vista firewall as well.
    I've tested both from the remote and from using iTunes directly. So I've ruled out the Remote App from the equation (I think). I say that, because first thing this morning I ran using just iTunes and it worked for 15 straight songs. I used the remote to change albums and start another and after the first song played it went silent. I noticed in iTunes a playlist called "Remote" comes up so I was thinking the Remote was causing it. I switched over to my library local on iTunes again removing the remote and it keeps happening anyway. So I'm not sure if by using the remote I put it in this "state" or if it's really not the Remotes problem.
    OK, so once it happens, it stops streaming after very single song however iTunes still shows it's playing fine. To fix, turn the speaker off then on again or switch to computer then back to remote again. It works doing this via the Remote App or on iTunes directly.
    This is FRUSTRATING! I spent a lot of money on the iPod, AE and getting a cheap stereo receiver/amp to feed my in-house speakers and now it's pretty much not even useful.
    Suggestions? Help? Anything?
    Message was edited by: TimLindner

    I wanted to post a follow-up. I solved my own issue after starting to rule out every possible cause.
    I have a Western Digital networked hard drive (NAS) which houses all of my MP3's. I knew accessing this drive was pretty slow but I've had my MP3's on it and iTunes' library is all coming off this drive. It has worked fine on my computer for years. However, it appears that the lag doesn't play nice with AirTunes.
    I moved my entire iTunes library (about 80 GB) to my local machine's hard drive, rebuilt my library and now it plays flawlessly!
    Just so people know, I've updated firmware on the AirportExpress and the iPod Touch, I have the new version of Remote on the touch and am running iTunes 8 on Windows Vista with its library on the local harddrive. No glitches, pauses, or problems. I ran it for 6 hours during a party over the weekend without flaw.
    -Tim

  • Streaming mp3 data

    Hi and thanks in advance to anyone willing to help out :)
    I was disappointed by the general lack of quality in every single J2ME app out there for listening to internet radio (and I'm not going to pay for something so simple), so I decided to have a go at it myself. I found out I could just use Manager.createPlayer() and pass the URL of the stream to it, and it would (I assume) play the stream without any problems.
    Now, the problem is that I want to parse and display metadata. In ShoutCast radio, a simple metadata block is inserted into the mp3 data at a certain interval specified by the server. This makes it fairly simple to read the metadata, however it means that passing the stream straight to the mp3 decoder will cause a glitch in the sound every second or so, so if I want metadata, I have to modify the stream before playing it.
    I thought this should be simple to do but it seems it isn't. I have been unable to locate a way to send data directly from a buffer in my application to the mp3 decoder for playback. The closest I think I got was creating a Player from an InputStream; this way after jumping through some hoops it seems to be possible to play audio from a buffer created by the app itself, but once it's finished playing I would have to destroy and re-create the Player in order to play the next chunk of sound. This would be extremely impractical and I doubt it would allow seamless playback of the stream, since it would have to interrupt playback everytime a block of metadata is received (which happens all the time, not just at song changes).
    So basically, my question is: is there a way (and if yes, what is it) to continously play audio, from my own data buffer?
    Thank you very much for your help! :)
    - dm from Hungary

    The Harman-Kardon manual for the DPR1005 has this to say about sending raw MP3 data to the unit:
    The MP 3 DSP mode found in the new DPR
    requires an MP3 SPDIF stream. Presently, only a
    few units provide this but in the coming generations
    of motherboards and operating system
    updates this will follow, since SPDIF is the standard
    for audio & video hardware.
    All the information I have found regarding this topic leads me to believe that that the iMac can not send raw data via the SPDIF output.
    However, Squeezebox can - http://www.slimdevices.com/pi_specs.html#outputs
    That is the only device I have successfully located that will stream MP3 data via optical, not just standard pcm.

  • Save streamed MP3 file?

    Our app includes a music player which streams MP3s from a server. We would like to be able to stream the MP3, and save it to a cache on disk once it has fully downloaded.
    I am using the load() method of the Sound class to stream the MP3 so that playback can begin before the file is fully downloaded. I can listen for the Event.COMPLETE event to indicate that the MP3 has finished downloading, but the Sound class offers no way to access the original file and save it to disk (the extract() method returns uncompressed sound data which is much too large to write to the disk).
    Is there any method to download an MP3 file that will allow us to stream the MP3 file as it is downloading, and save it to disk when the download is complete, without downloading it twice?

    Unless you can find an MP3 encoding library that could take the extract() data and convert it back with minimal effort, I think your only option is to save the mp3 using the File and FileStream classes. One thing you could try is to use a File object to download the file, and while it is downloading, you have the sound object play the data contents of the File object downloading the mp3. I just tried a quick test locally and it worked on my desktop. You will have to try it from an actual server to know how well it can work in that environment, but it is at least worth a shot.
    import flash.filesystem.File;
    import flash.filesystem.FileMode;
    import flash.filesystem.FileStream;
    import flash.events.ProgressEvent;
    import flash.events.Event;
    import flash.media.Sound;
    import flash.net.URLRequest;
    var file:File = File.applicationDirectory.resolvePath("gravity.mp3");
    file.addEventListener(ProgressEvent.PROGRESS, onProgressEvent);
    file.addEventListener(Event.COMPLETE, onFileLoadComplete);
    file.load();
    var sound:Sound;
    function onProgressEvent(e:ProgressEvent):void {
      if (sound == null) {
      file.removeEventListener(ProgressEvent.PROGRESS, onProgressEvent);
      sound = new Sound(new URLRequest(file.url))
      sound.play();
    function onFileLoadComplete(e:Event):void {
      file.removeEventListener(Event.COMPLETE, onFileLoadComplete);
      var saveFile:File = File.desktopDirectory.resolvePath("gravity2.mp3");
      var fs:FileStream = new FileStream();
      fs.open(saveFile, FileMode.WRITE);
      fs.writeBytes(file.data, 0, file.data.length);
      fs.close();
    What this code is doing is creating a File object with, in this case, a path to an MP3 in the same folder as the test FLA I created. This would be a path to your server stored MP3. Then you setup the event listeners for progress and complete. I used progress to know that the file had actually started to be downloaded to then trigger the initialization of my Sound object. Depending on someones network connection and the size of the MP3, it could be a good idea to use progress to know that the file has gotten X percentage done before trying to play the file.
    For testing purposes in my progress event, I just checked to see if the Sound object had been initialized yet, and if it hadn't then set sound equal to a new Sound object with the File.url property for the URLRequest() and then told it to play.
    Once the File object dispatched the complete event to indicate that the download finished, I created a new File object for the purpose of saving it to the filesystem using the FileStream class. Using FileStream to save the file allows for no user interaction to save the MP3.
    There may be better ways to handle my method, but I can't think of any at the moment. As far as I know, the second File object, which I named "saveFile", is required in order to actually save the downloaded MP3 object because Im not too familiar with File manipulation. The only downside I can think of is that you have a copy of the MP3 is memory and would need to null out the File object that loaded the MP3 to free up memory.

  • Stream mp3 without FMS?

    is it possible to stream mp3 without using FMS? how would I
    do it? All the examples I could find and the examples in the book I
    bought show streaming done via rtmp and a flash server. My website
    is located on a shared webserver, so I'm not sure I can install
    FMS.
    I'm trying to write an embedded mp3 player that can play a
    song. when a link is clicked the link should pass the song name so
    the player will play the correct song. for example: when
    http://mysite.com/player.php?value=songname.mp3
    is clicked, the player will play songname.mp3
    thanks.

    I'm surprised that no one has answered this. Is this question
    too simple or something?
    Anyway, I've been trying to load an mp3 at runtime but I'm
    getting some errors:
    Error: Could not resolve <mx:Sound> to a component
    implementation.
    <mx:Sound id="bgm" source="01.mp3"/>
    how can i implement loading the sound file?
    here's what i've currently put together... I know there's a
    lot of mistakes, but that's why it's not compiling right? :-) hope
    someone can give me a hand with this.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Style>
    Button {
    color: blue;
    .play {
    color: black;
    upSkin: Embed("playup.png");
    overSkin: Embed("playover.png");
    downSkin: Embed("playdown.png");
    .stop {
    color: red;
    upSkin: Embed("stopup.png");
    overSkin: Embed("stopover.png");
    downSkin: Embed("stopdown.png");
    </mx:Style>
    <mx:Panel id="panel" width="450" height="64">
    <mx:Button styleName="play" label="Play"
    click="bgm.play()"/>
    <mx:Button styleName="pause" label="Pause"
    click="bgm.pause()"/>
    <mx:Button styleName="stop" label="Stop"
    click="bgm.stop()"/>
    </mx:Panel>
    </mx:Application>

  • Stream mp3s in safari

    I was able to stream mp3s from safari and navigate away from the safari app with the mp3 still playing in the background. Now for some reason I am unable to do that. It stops playing when I hit the home button or if my phone locks. How do I fix this? Again, it was working earlier today.

    Hi Dan
    http://www.rubicode.com/Software/RCDefaultApp/ claims to allow a user to modify the launchservices database in a nice easy way.
    Using defaults read com.apple.launchservices ( take great care using Terminal !! ) may give some clues too.

  • How to stream mp3's in gmail?

    In the past, I used to be able to just click on mp3's in gmail to have them stream. A few years ago, this stopped working in firefox. The streaming window pops up, but it never plays (see image).
    Is there any way to stream mp3's in gmail with just one click? I have projects where I will need to stream 100's of mp3s. This may end my long run with firefox if it can't be fixed.

    Okay, I reopened the test message that worked for me in November 2013 and as you say, it is not working now. I sent a new test message to my Gmail account, and same problem.
    There seem to be two issues:
    * Firefox sometimes does not get a redirect to the media. Closing the black screen and clicking again may bypass this. (First screen shot.)
    * The audio is not auto-starting in Firefox when the media loads successfully, which makes the control bar useless. If you use a script command to trigger the media to play, the control bar starts working normally. (Second screen shot.)
    This is annoying. Because Google's scripts are normally very complex, I don't think I'll be able to figure out why the media isn't autostarting.
    If no solution is discovered, as a workaround, you could manually trigger the player using a bookmarklet, or possibly autostart it using a Greasemonkey userscript (probably a new script, unless someone has already posted one).
    The bookmarklet would be as follows:
    (1) Select and copy the following line of script:
    javascript:void(document.querySelector("audio").play());
    (2) Right-click a convenient location on your Bookmarks Toolbar or Bookmarks Menu and choose New Bookmark.
    (3) Paste the script into the Location field. Then in the name field, you can type Gmail Play or any name you like.
    (4) Click the Add button
    You would try clicking the bookmarklet after the player appears.

  • HT201077 I have windows 8.1 and ios7.  contacts and calendar stopped streaming to my laptop but was ok on ipad and iphone. That problem fixed but now photos stopped streaming to laptop.  Any suggestions

    I have windows 8.1 & ios7.  Contacts & calender stopped streaming to laptop. ok to ipad & iphone.  This was fixed but now photos stopped streaming to laptop again ipad/iphone talk.  All settings seem ok.  Any suggestions?

    Hey pat121,
    I would run through the recommended troubleshooting steps in the following article to see if that alleviates the issue:
    iCloud: My Photo Stream troubleshooting
    http://support.apple.com/kb/TS3989
    Welcome to Apple Support Communities!
    Regards,
    Delgadoh

  • Why does my apple tv constantly stop streaming and become unable to connect to itunes?

    I have a 2nd gen Apple TV, which I bought in Dec'10. Lately, as in the last month, it just stops streaming. It will be streaming content, then all of a sudden, it stops, and bar comes up on the bottom of the screen, showing the length of the video, with a spinning icon on the left, where the play/RW/FF icon usually appear. It never recovers. I'll stop the video, and try playing again, but it will say that "netflix" or "iTunes" etc. is currently not available. It's as if it's getting knocked offline. I check my setting, and the ip address is fine, it is not assigning itself an ip address. My internet is working with no issues at all. I'll try doing a network test but it sits there trying to connect to itunes, then it says it's unable to do so.
    It's becoming more and more frequent. The only thing that works is resetting it, and sometimes even that doesn't work. So, I have to restore it. I've had to restore a couple times in the past month, and I'm resetting almost daily.
    Also, sometimes it just reboots itself for no reason at all. This, too is occuring more and more on a regular basis.
    I have the apple tv plugged right into my Time Capsule via ethernet. The hdmi out is going to an input on my surround sound receiver. I've also bypassed the receiver, just to rule it out. I typically get anywhere from 30-40 mbps when I do a speedtest from my macbook on speedtest.net or speakeasy. I'm mentioning this because my connection is more than sufficient to stream the 720p content the apple tv is limited to. My interenet has gone out in the past, but it's rare. It's not the culprit, since someone is always on line when this happens, so we'd know right away if it was the internet going out. It's always the first thing I check when this happens, even though I'm pretty sure my connection is not the issue. Also, I don't start freaking out, the second it happens. I usually don't look into it until a minute or so after the video has frozen. At that point I usually hit MENU, to escape the current screen, then try playing the content again. That's when it can't do anything, and I'm often forced to reset or reboot.
    I have tried searching for others with this issue, but haven't come across anything. The closest I've seen are situations where people can't stream at all, due to a network issue. Also, it's been getting worse, which makes me wonder if it's a hardware issue. Again, the apple tv is on a wired connection to my Time Capsule, and the ip address is not self assigned, it starts with DHCP, not 169... And, my internet connection is not the issue.
    Any help would be appreciated, and sorry if I repeated myself, I just wanted to make sure I didn't leave anything out.

    I had problems with streaming until I changed the WiFi channel that I was using.  The original one conflicted with my neighbor.  After that, MOST of my streaming problems vanished.  Occasionally, a movie would pause for more buffering and I eventually ran an ethernet cable from the Apple TV to my Apple Extreme (to eliminate the Wifi).  I have not had a single problem since then (except to repair the drywall after running the ethernet from one floor to another).  :-)

  • Streaming MP3 with RTP

    Hello,
    I am trying to implement a RTP server and a RTP client, for that purpose I am using JMF, it seems to work good until I tried to transmit MP3 files. When I trasmit MP3, I get the next error message:
    Unable to handle format: mpeglayer3, Unknown Sample Rate
    Failed to realize: com.sun.media.PlaybackEngine@1700391
    Error: Unable to realize com.sun.media.PlaybackEngine@1700391
    Error in ControllerErrorEvent: javax.media.ResourceUnavailableEvent[source=com.sun.media.content.unknown.Handler@fa39d7,message=Failed to realize: input media not supported: mpeglayer3 audio]
    I have installed the mp3 pluging and I have used the AVTrasmint2 and AVReceive2 class with some modifications to try to solve the problem, but I can not solve it.
    I tried to use JMFStudio in both sides (server and client side) and I got the same error.
    -->failed to handle a data format change!
    I would like to add that I have used two differents computers (one for the server and one for the client) to make all the test.
    Could you give me some advise, help or solution for that problem? If someone has a solution(code) to transmit streaming MP3 using RTP and kown that it is running ok, could you show me?
    I am doubting if MP3/RTP is supported in JMF, If someone knows another alternative to implement a streaming MP3 audio server and client, could you say me what solution is it?
    Thank you very much, I expect that someone could help me.
    PD: Sorry for my english, I think that it is not so good.

    Hi I had the same problem but i manage to solve it.
    First of all you have to install the mp3 plug-in and as u mentioned that u already did that.Make sure the mp3plugin.jar file is inside the lib/ext of the jre you are using for your project and one imp thing is first register the plug-in by issuing the command
    java com.sun.media.codec.audio.mp3.JavaDecoder
    It will modify the jmf.properties binary file.Once your done with this put this updated jmf.properties file in your project folder.After this your code should run perfectally.In case of any problem.Post it.
    cheers

  • Apple tv stop streaming when screensaver starts

    When I am listening to Spotify from My iPad through appletv the appletv stop streaming the music when screensaver turn in. It worked before the last update of appletv.

    Try to restart your wireless router.... Do you have issues with connectivity when using netflix or crackle apps on the ATV?

  • IPod Touch 2.2.1 Stopped Streaming Quicktime Clips

    Hello,
    I searched and couldn't find any info on why my iPod Touch 2G stopped streaming quicktime clips from the site drummerworld.com.
    This has not been an issue until recently, and now I just get a strange icon rather than a clip playing. Any info would be great as I visit this site quite often for tips and such.

    [quote]Since it is tied to the OS you are running, you really don't have any control over which version of Quicktime you are running. [/quote]
    Ok, I'm running v 7.6 which is the same as the site.
    Perhaps the site has changed something ? This is strange because it worked for the first few weeks.

  • Problems streaming mp3's

    Hi,
    I'm having some trouble with streaming mp3's and clicking
    links at the same time. It seems that while the mp3 file is
    downloading it's impossible to click on links, it freezes until the
    song is fully downloaded. To view the mp3 player i've built with a
    friend please feel free to visit
    http://www.musicplayer.fm/ -
    if you sign in with username: "test" password: "password" and feel
    free to play any song, and you'll see what i mean. I'm stuck
    getting around this problem.
    I've tried embedding the player using the SWFobject method in
    javascript, cross domain streaming... and nothing seems to work.
    The player is streaming the mp3 using loadSound(location, true);
    and the location is fed using an xml file.
    Thanks for any advice in advance.
    Matt

    No surprise at all - these are two different technologies for two entirely different purposes.
    A podcast is meant for files to be downloaded to a user's computer so that they can be listened to at any time or transfered to an iPod. A streamed file is more like a radio broadcast - it can only be listened to while the streaming server is "broadcasting" the file to the client computer.
    If you want to take advantage of both options you'll need to upload your file to two different locations.

Maybe you are looking for

  • SAP Business One 8.81 PL08 Mobile APP CRM Standalone User Access issue

    Dear All Is any facing the problem of Mobile application user with CRM Standalone license ,this user always has a permission denied problem (he is assigned all the licenses required .and authorization on the SAP is full .  SSL certificate is installe

  • Response from Verizon about lack of Lumia device support

    I am wanting to know what the exact problem is with issuing Lumia updates from this carrier. As of today in the United States the only carrier that has to issue an update to Cyan for Lumia devices is Verizon. We have the Denim update coming to Lumia

  • How to create an image marquee for Dreamweaver

    Hello, I would like to know the best image tool to use for a Dreamweaver homepage site to create a simple three images marquee? Should I use Photoshop, Flash or fireworks?  Which application is the simplist way to do this?  I am a beginner using Drea

  • F.05 PRINT

    Hello Gurus! When we try to print report generated by the foreign currency revaluation program (F.05), for gl account at the end of page 2 does not appear and the report display the subtotal correctly on screen, but does not print out, the subtotal i

  • HTTP Submit Problem

    I created a simple form to submit three text fields to a web page that then inserts them into a new record in a MySQL database. This all works fine when I do it from the Preview PDF Tab in Adobe LiveCycle Designer 8. My problem is that when I distrib