I need to play an mp3 file using netStream.play

I have a "film actor" who plays flv files using the code below (videoToPlay is the name of the file to play and is just a string).  I want to use the same configuration for read an MP3 also.  I tried to use mySound = new Sound(); and then mySound.attachNetStream (ns); but it gives me this error: 1061: call to an attachNetStream method maybe not defined through a reference with static type flash.media:Sound.

I think that you can play MP3s with NetStream, unless you use FMS.

If you mean, by timestamp, position position of the read head, use the SoundChannel position property and read it periodically (timer or event ENTER_FRAME):

http://livedocs.Adobe.com/Flash/9.0/ActionScriptLangRefV3/Flash/Media/SoundChannel.html

Tags: Adobe Animate

Similar Questions

  • Need help importing music mp3 file to my windows movie maker

    I've added music files to my films on windows, Director of music from cd that I ripped to my Windows Media Player, never had any problems.

    Today, I bought several songs from Amazon mp3 in order to add to my Windows Movie maker, and they will not import the Windows Movie Maker program.  They play on my Windows Media Player, however, will not import Windows Movie Maker.  The files say they are mp3 files and Windows Movie Maker says he takes these files, however, I get aRED X and the message 'could not be imported'.  Help!  What can I do to get these files to import to my movie on Windows Movie Maker.

    Thank you...

    I put the questions about music and its forum.  I really need help importing MP3 files that I just bought today from Amazon for the sole purpose to add to my movies in Windows Movie maker.

    In the past I have imported music music files that I ripped to CDs.  Now, today, I tried to import music files MP3 to Windows Movie Maker and it will not import files.  I get a message says"could not be imported" and a RED X.  Window Movie Maker, says it accepts MP3 files, but it does not accept these MP3 files.  Help!

    Thank you...

    ======================================
    Movie Maker may have problems of compatibility with MP3
    files... may be worth a try to convert MP3 files
    to WMA before you import into Movie Maker.

    There are many programs that can do conversions...
    The following freeware is an example...:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory
    http://www.videohelp.com/tools/Format_Factory (the file you want to download is: > FFSetup260.zip
    (FWIW... installation..., you might want to
    Uncheck the box 'all' boxes on the last screen)

    First, you will need to decompress the file or just open the
    Drag FFSetup260.exe out of the folder
    and drop it on your desktop. To install left click.

    Next, after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your MP3 clips on the main screen...

    Select "while"WMA"/ OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Need to treat a .dat file using LabVIEW

    Hello

    I need to process a file using LabVIEW 8.6.1, dat I enclose the .dat for your help file. This file must be read and then view a chart using LabVIEW.

    If you can please help me with the format data in I need to change the code to be able to read this file.

    Thank you.


  • Impossible to search for .mp3 files using Windows search

    Original title: search search index indexing re-indexing re-index research research research service troubleshooting troubleshooting:

    I always write on the name of th2 search mp3 I want to get, but nothing is obtained, even to folders and files
    I have a game today and I want to search mp3 (music)
    using ssearch windows data

    and not manuallay
    Please helpp

    Hello

    Method 1: Open the troubleshooter for search and indexing

    http://Windows.Microsoft.com/en-us/Windows7/open-the-search-and-indexing-Troubleshooter

    Method 2: Manually add the folder that contains these .mp3 files to the search Index locations after the steps in the article below.

    http://Windows.Microsoft.com/en-us/Windows7/improve-Windows-searches-using-the-index-frequently-asked-questions

  • I need help you rename a file using regular expressions in Bridge.

    Hello

    I work at a University, and we are working through files for our theses and Dissertations. We were renamed to make them more coherent. I wonder if there is a regular expression that could help in this process?

    Examples come from current file names;

    • THESIS H343G 1981
    • Thesis of 1981 g996e
    • THESIS-1981-A543G

    I just need to change the actual file names. how they are formatted.

    Where appropriate on the thesis.

    Hyphens (-) in all white space.

    First letter, last letter is lower case on appeal no (H343g)

    If the list above should look like;

    • Thesis-1981-H343g
    • Thesis-1981-G996e
    • Thesis-1981-A543g

    I've seen people do some pretty cool things with regular expressions! Any help would be greatly appreciated. Thank you!

    You would be better to use a script to do this as an example because I don't think it would be possible in the new name of bridge.

    Using ExtendScript Toolkit or a text editor to copy the code in any event and save it to sub Filename.jsx

    This must be recorded in the appropriate folder. It is located by going to preferences in Bridge, select Startup Scripts, this will open the folder where the script should be saved.

    Once this is done close and restart Bridge.

    Usage: Goto the Tools Menu and select Rename PDF files

    Be sure to only test the code with some files copied to a separate first folder to make sure it's what you want.

    The script will make all PDF files in the selected folder.

    #target bridge
    if( BridgeTalk.appName == "bridge" ) {
    renamePDFs = MenuElement.create("command", "Rename PDFs", "at the end of Tools");
    }
    renamePDFs.onSelect = function () {
    app.document.deselectAll();
    var thumbs = app.document.getSelection("pdf");
    for( var z in thumbs){
    var Name = decodeURI(thumbs[z].spec.name);
    var parts = Name.toLowerCase().replace(/\s/g,'-').match(/(.*)(-)(.*)(-)(.*)(\.pdf)/);
    var NewName = parts[1].replace(/^[a-z]/, function(s){ return s.toUpperCase() });
    NewName += parts[2]+parts[3]+parts[4]+parts[5].toUpperCase().replace(/[A-Z]$/, function(s){ return s.toLowerCase() });
    NewName += parts[6];
    thumbs[z].spec.rename(NewName);
        }
    };
    
  • Do not hear mp3 files or audio in Firefox 26

    My system is automatically upgraded to the latest version of Firefox on Windows 7 26 and since it updated, I hear all audio files - mp3 or ogg. If I try to just open an mp3 file in Firefox, I see a player and watch the progress of the reading, but I don't hear anything.

    I think I've lived each article in support of Firefox on audio and video playback and what to do if you do not hear a mp3 in Firefox. None of this changed nothing.

    I found the Firefox options for MP3 that give me the choice of "Always Ask", "Use QuickTime Plugin 7.7.4' and "Use Windows Media Player (default)" and have tried both QuickTime Plugin choice and Windows Media Player choice and it has no affect.  I SEE the playback, but don't hear it.  I use the volume slider in the playback window, but it has no affect.  I can hear these mp3 files when I play them in IE or Chrome, so what is the matter?
    

    MP3 files used to play for me. But in the last days I think versions of Firefox and QuickTime have improved and now I can't make it work.

    Very frustrating.

    The current versions of Firefox allows you to play MP3 files and some video as formats H.264 the HTML5 media player built-in.

    Did you also check the volume control in the mixer Volume of Windows while Firefox play a sound through the built-in Media Player?

    It helps to turn off Windows Media Foundation in Firefox by assigning to the pref media.windows - media - foundation.enabled to false on the topic: config page?

  • I can't download to work - it does not copy the mp3 files to my location (as defined in tools/options) - it gives me a new window with a player - no dwnlo

    I am running windows xp sp2 and I put my site to dowload under (Tools/options), but when I select an MP3 file to download, firefox does NOT copy the file to my location of choice on my HD - instead, it opens a new window with a 'player' of fortune and starts to load the player with the MP3 file. The problem is that I have no idea where on my system, firefox has copied this file, so, I can't leave and come back later and read this MP3 file using winamp. I need to hear right then or lose - if I close this new window (with this puny little ' player'), then I lose the download, there where to put firefox on my PC (I have no idea where it is). It's all under firefox 25.0

    I also use FIrefox 12.0 on an older windows 2000 machine and that works perfectly - I can download any MP3 file, I want to, and downloads of firefox 12.0 (on win2k, sp4) to my location (on my HD), and it gives me the download window so I can watch its progress and have some control over break and resume , and, when it's done, the download window offers me the option 'open containing folder' so I can make sure that where I wanted. In other words, Firefox 12.0 on WIn2k, sp4 works better than firefox on winxp sp2 25.0! What gives? I went through and set up my options for XP just like I did with Win2k and everything looks good, but firefox 25.0 don't know just my chosen and always default place to give me fortune player and I am not able to actually copy the mp3 files on my hard drive - it's firerox almost unusable 25.0 since downloading mp3 files is a big part of my use firexfox - please help. I am not able to upgrade windows at this time, and since firefox 12.0 still works fine on win2k, I do not understand what has happened to firefox?

    Hello littleberry, you can click on the link that leads to an mp3 file or right click on the drive in firefox and choose to download the file like that...

  • Download or read audio data in MP3 files in Hotmail

    Cannot open MP3 files in Hotmail. Tried clicking on Audio and download and same problem if the file is transferred to the desktop.

    These files open in the past. Now says that Windows has encountered a problem with Windows Media Player. Do not open or play.

    any ideas out there? Thank you!

    You can play other audio (mp3) files using the media player.

    No doubt, you can download the latest version of media player (http://windows.microsoft.com/en-US/windows/downloads/windows-media-player)

    If you are able to play other audio files, probably the file you are trying to read is damaged or did not download properly.

  • No sound in windows media player (11.0.6002.18111) only trying to play mp3 files. No way of fixing/uninstallation or reinstallation. Need advice!

    I recently encountered a problem with Windows Media Player 11 (a specific version in the title of the topic) where no sound play atall when you try to play mp3 files. When trying to play a track of the progress indicator moves VERY slowly and jumps in a stuttering mode and no sound whatsoever is coming through the speakers. He is a recent problem.

    All audio files work on other audio programs like Real player, quick time e.t.c. and the sound comes from the computer normally. Only the sound that I have are with windows media player when you try to play mp3 files. Still fine read video files, wav files play fine. How boring is that he suddenly decided he likes are more mp3 files!

    More annoying, I stumbled upon the fact that I can't uninstall the reader as in Vista, it is part of the operating system literal, I can't download and install WMP install package from Microsoft because I tried and it tells me that I have a more recent version of Windows media player and therefore impossible to use the downloaded Setup program to install or repair windows media player. It is therefore impossible for me to get an installation package that is newer than the one on the computer, you would have thought that the downloadable installation on the microsoft Web site would be the more recent but no!

    I can't think of a way to solve this problem. For me it feels strongly a Codec issue to do with MP3 and WMP but I don't really know about Codecs enough to go on the setting of the specific Codec with the question, or even track down which codec it is perhaps whether she "is" a codec problem in the first place.

    I tried settings with the menu of options in WMP 11 troubleshooting unsuccessful (obviously), I also tried an audio tool / repair of breakdowns than microsfts audio troubleshooting prompted me to try, that of no problems with the actual audio devices on the system... I KNOW, his problem with WMP and mp3 files!

    So, to summarize, WMP doesn't read MP3 files, I can't run a repair tool that there is no 'installation' to WMP 11 package, it is not an uninstall utility is which means that I can't uninstall it to reinstall a new, I can't download the installation package and run it as apparently I have a more current version than is available on the microsoft Web site. Then what should I do?

    I need some advice on how to go about trying to solve this problem I've hit a bit of a brick wall...

    Any advice would be much appreciated!

    FIXED!

    randomly enough rate and bit depth format sample somehow has set high in the sound control panel, advanced driver.

    After hitting "restore defaults" it resets the depth of rate and little sample return at: 16 bit 44.1 khz

    The sound now plays perfectly.

    Weird it performs only mp3 files!

    Thanks for the help people, it seems that I ended up sorting out on my own though! Yay for me! haha

  • is there a simple guide on how to use Windows Media Player to play MP3 files on a Web site

    I'm designing a simple website to a friend. They are singers and want 3 or 4 songs sample of people to listen to on the site.

    What is the easiest way to do this (I m not technical, it should be easy to understand)

    Idea is that the user accesses the page and chooss a song they click and hear 30-45 seconds of a recorded sample (MP3 file)

    Strive to do that. I thought it would be easy but can't seem to find a simple way to do it.

    Can it be done using Windows media player (records are MP3 files in the Player Windows Media.

    Help appreciated

    Ian

    I'm designing a simple website to a friend. They are singers and want 3 or 4 songs sample of people to listen to on the site.

    What is the easiest way to do this (I m not technical, it should be easy to understand)

    Idea is that the user accesses the page and chooss a song they click and hear 30-45 seconds of a recorded sample (MP3 file)

    Strive to do that. I thought it would be easy but can't seem to find a simple way to do it.

    Can it be done using Windows media player (records are MP3 files in the Player Windows Media.

    Help appreciated

    Ian

    If you have a music video, your friends sing you could install a flash drive on the Web site. If it is just an audio file, you must download the file to a file free host then post a link to the file on the Web site.  If Windows Media Player comes into play depends on what media player the person clicking the link used as their default media player. Windows Media Player will play no role in the file on your website. The link below contains a list of free audio files, hosting sites. There are many others that you can find with a simple search on Google.

    http://www.audiohostings.com/

    See also http://www.tripwiremagazine.com/2010/08/20-free-online-audio-players-for-your-websites-or-blogs.html

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

  • Firefox will not play SermonConnect mp3 files that have been uploaded to Amazon S3 server using S3 Organizer after 2014 7. Already downloaded the files OK.

    Files uploaded to the Amazon S3 server are accessible via our Web site at littlecountrychurch.org. All multimedia files downloaded before January 7, 2014, be played properly on our media page. Files uploaded after January 7 refuses to play on the Firefox browser. To add to the confusion, other browsers Chrome, Safari, Internet Explorer on Windows and Mac-play these files correctly. In addition, an older version of Firefox on an XP laptop plays files correctly. We even ran a test by downloading a working of the S3 server, re-uploaded the file file and Firefox would not read the freshly downloaded file, but he continued to play the same file previously downloaded without problem.

    The problem is the content-type header sent to S3. The old MP3s are designated "audio/mpeg", which is perfect. Newcomers are designated "application/download", which does not work in Firefox native HTML5 audio player. (The inset on the screenshots is pasted from a screenshot of the Fiddler proxy).

    On a normal web server, all .mp3 files usually served in the same folder have the same content type. Something seems different about Amazon storage, perhaps based on a difference in their environment "backstage."

  • Media Player play the MP3 files but not others

    My OS is XP and I'm using Media Player 11.

    In my WM library, I downloaded several music files.  Most are MP3 files.  Some will play, but others do not.  When I look at those who don't in properties, I see the length of play is 0:00.  As far as I know, I have all codecs updated but cannot be sure 100% bee.

    Can someone please tell me in words of one syllable preference (I'm technophile worse of the world) if they know of a cure.

    Steve

    Looks like the files are corrupted. Do you know how they were created originally?

    You will probably need to re - download or re - extract the files. If this isn't an option, you can search the Web for MP3 repair tool, but there is no guarantee that the repair will work. Tim Baets
    http://www.BM-productions.TK

  • How can I force Firefox to download mp3 files and NOT play?

    Hi guys,.

    I couldn't change the settings of Firefox in this way, that it does not play mp3 files at all (in any kind of player), but allows to decide what with them for example to download the file.

    What I actually did:

    - changed at settings, that I want a dialog or download any file type and NOT use any other option (yes, all of them - not any kind of effect was seen there...)
    - changed especially all mp3-related options to download
    - deactivated ALL plugins and addons
    - about:config -> media.windows-media-foundation.enabled -> false
    - uninstalled ALL types of mediaplayers (Winamp, VLC etc.), but not WMP because it would be very complicated and would cause several bugs
    

    Many updates before (I think it's up to 20 FF or if) you could simply tell FF, I tried to download the file via the settings and now it isn't.

    Is it possible to left I can force Firefox to NOT READ mp3 files in any player and offer my the possibility to download?

    Please do NOT give answers like:

    - right click on the file and save it as ... I allready know that and do not want to use that solution. A few years before it was possible, so it should also be possible to directly click at the file and decide what to do with it. On all the sites I want to use it the possibilities are given and not blocked by the sites or implementations itself.
    

    I thank very you much for your help in advance. I'm desperately trying to find an answer to this question for months...

    Hello TurZ, please set media.windows - media - foundation.enabled back to its default value and turn media.play - stand alone false instead.

  • Play instead of download MP3 files or video

    When iam downloading videos or mp3 files that he started playing insread of download

    Thanks philipp. I just spent two hours trying to understand this point, check all my settings, uninstalling software from reading that I thought may be trying to take, etc. I even did a system restore trying to solve this problem. Would be really nice if a feature like this have been listed in the options settings, or if a person asked if they wanted this before he just took their settings. Maybe this suggestion can be passed along to the right people.

    A really strange thing is the same thing has happened to Google Chrome as well as the same remedy does not seem to apply. Well, I only use Chrome for purposes of test in any case.

    Thanks for providing the answer.

Maybe you are looking for