Unable to play audio stream in a swf file

Making a swf file that reacts like a button: it plays sound
when you pass over it. Or should play. When the button keyframes
sound options are set to "start" or "event", there is no problem,
it works well. But it doesn't work if I set to "stream". My
original file is an mp3. Is there something special avout it? Help
tutorials didn't help me so far...

With "stream" you have to make sure there are enough frames
in the movie to play the whole sound file. Try adding some frames
and see if it plays then.

Similar Messages

  • Embedded flash player is not working... Unable to play the streaming videos... Browser is hanging many times!!

    Hi,
    Pls help me to fix an issue with my playbook browser. The embedded flash player is not working... Unable to play the streaming videos... Browser is hanging many times. Restart done, cleared history etc.. Still doesn't work.
    Any help would be appreciated.
    Thanks.
    Solved!
    Go to Solution.

    Hello ak_kanan, 
    Welcome to the forums. 
    Try doing the following. In the browser swipe down from the top and choose Settings, now choose Content, here where it says Enable Flash change this to Off.  Now try going to the website that was not working (it will not work again this is fine) Once on the page swipe down from the top again and this time enable the Flash setting. Now reload the page and test to see if you have the same issue. 
    Let us know how you make out. 
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Need help with - playing back to back multiple .swf files

    I have four .swf files namely, 1.swf, 2.swf, 3.swf and 4.swf
    I have linked these files to buttons that can play these
    movies individually without any problem and the movieloads it
    automatically starts 1.swf movie and plays it completely.
    However, what I'd like to to do is have these movies
    onloading start playing automatically from 1.swf to 4.swf as a
    continous play and give the user the ability to click on a button
    to skip and play any of the four .swf files.
    The code I have for currently is as follows:
    loadMovie("1.swf","placeholder_mc");
    this.1_btn.onRelease = function () {
    loadMovie("1.swf","placeholder_mc");}
    this.2_btn.onRelease = function () {
    loadMovie("2.swf","placeholder_mc");}
    stop();
    this.3_btn.onRelease = function () {
    loadMovie("3.swf","placeholder_mc");}
    stop();
    this.4_btn.onRelease = function () {
    loadMovie("4.swf","placeholder_mc");}
    stop();
    From what I have read so far to accomplish the above I'll
    probably need some varialbles to be defined and have listner code.
    I could be wrong. Since I am very new at Actionscript, would
    greatly appreciate forum members assistance.
    I am using Flash8 professional. Thanks.

    you'll need to either use code in the loaded swfs or create a
    loop in your main swf that repeatedly checks the _currentframe of
    the loaded swf and when that equals the loaded swf's _totalframes,
    you'll load the next swf.

  • Unable to play audio video files in solaris express

    I am unable to play mp3 and avi files in my newly installed oracle solaris express. I have installed 'gnome-audio', 'gnome-media', 'gstreamer', 'gstramer/plugin/gnonlin' packages. I have even installed 'IPSFWmpeg' MPEG-1 liabrary from sunfreeware repository. All these softwares are shown as installed packages in my package manager. But still on playing any video in totem movie player or audio file in rhythmbox player, a dialog box with an error message is displayed "The playback of this movie requires a MPEG-1 Layer 3 (MP3) decoder plugin which is not installed".
    What should i do to play avi files in Totem movie player and mp3 files in Rhythmbox music player? Please don't suggest other media players because i want to use only above said totem and rhythmbox and i want to know what's wrong with my software installations?

    You can get a free MP3 codec from Fluendo (http://www.fluendo.com/shop/product/fluendo-mp3-decoder/). There are some instructions on setting it up here: http://blogs.sun.com/observatory/entry/playing_your_mp3s_with_songbird.

  • After updating to 8.1 unable to play audio via bluetooth devices!

    While ysing windows 8, i had no such problem. but after i updated it, i am unable to play music via bluetooth devices. sometimes it gives error message "DRIVER ERROR", while other time it gives no error message while it doesn't work. What should i do to check it??

    Hi karankishore007,
    Welcome to the HPCommunity, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I will be happy to help with your Bluetooth issue but I will need some additional information. What is the product number for your notebook? When you check under your Device Manager what do you have listed under Bluetooth or Network Adapters for Bluetooth?
    Thank you,
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • How do I play audio attachment in my PDF file?

    How do I play the audio attachment in my PDF files in android?

    Hey thanks, after an hour with Apple, the tech had me reset the phone and it worked perfectly.
    Sent from Windows Mail
    From: Apple Support Communities Updates
    Sent: Sunday, October 12, 2014 11:52 AM
    To: jamesfrombend
    You received a reply
    Ralph9430 has replied to your question. You can view the full discussion in Apple Support Communities.
    How do I play audio books in my car using USB cord?
    Does the sound system on your car have a usb input? If so connect your iPhone to the radio with your cable and play the audio book on your phone. Note that your vehicle needs to be able to accept audio input through thr USB port and not just provide a charging circuit. Check your vehicle's manual if you are not sure.
    Correct Answer  Helpful Answer 
    Use the buttons above to tell Ralph9430 and the rest of the community if this reply solved your question or helped you get closer to finding a solution.
    To reply to Ralph9430, go to the discussion in Apple Support Communities.
    You are receiving this email from Apple Support Communities. You can change your email preferences in your Apple Support Communities Profile.
    TM and copyright © 2014 Apple Inc. 1 Infinite Loop, MS 96-DM. Cupertino, CA 95014.
    All Rights Reserved | Privacy Policy | Terms of Use | Apple Support

  • Can i add play/pause button when playback swf file??

    Hi all
    i have a script to convert ms office docs to pdf then to swf files and display it in my web site, the problem is that the output files (swf file) contain each page of my documents in a separated frame and when i load the page there no possibilitie to control this file (play / stop) or (next/previous) buttons, the only way is to use the right click menu options.
    i am asking if there are any solution to embed my converted swf files and control it.
    thanks

    Hi,
    It sounds like you'll want to talk with the author of the script that builds the swf.  If that's you, then I'd recommend reposting this question over on the Flash Professional forums.
    Thanks,
    Chris

  • I cant play audio only mp4 or mp3 file with audio tag in firefox...how to tackle this?

    In my web application m trying to play audio only mpeg 4 or mp3 files.I m using HTML5 <audio> tag to accomplish this,it smoothly working in chrome but not in firefox.Why this basic support not avail in Firefox??
    Note: I read about some patent issues with mp4 and mp3 but i wonder why chrome browser can play those files.

    Some problems with Flash video playback can be resolved by disabling hardware acceleration in your Flash Player settings. (See [[Flash Plugin - Keep it up to date and troubleshoot problems|this article]] for more information on using the Flash plugin in Firefox).
    To disable hardware acceleration in Flash Player:
    #Go to this [http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_Solve_video_playback_issues Adobe Flash Player Help page].
    #Right-click on the Flash Player logo on that page.
    #Click on '''Settings''' in the context menu. The Adobe Flash Player Settings screen will open.
    # Click on the icon at the bottom-left of the Adobe Flash Player Settings window to open the Display panel. <br/> <br/>[[Image:fpSettings1.PNG]] <br/>
    # Remove the check mark from '''Enable hardware acceleration'''.
    # Click '''Close''' to close the Adobe Flash Player Settings Window.
    # Restart Firefox.
    This [http://www.macromedia.com/support/documentation/en/flashplayer/help/help01.html Flash Player Help - Display Settings page] has more information on Flash Player hardware acceleration, if you're interested.
    Does this solve the problem? Let us know.

  • Unable to get the same font in swf file

    Hi,
    I've created some swf files in which text was written using one particular font. When I run these swf files in other computers which don't have this font, The text gets displayed in different font.
    How to get the same font in other computers also without installing the font.
    I tried embedding font in fla file. But I commit mistake at somewhere. Could anyone help me to figure it out ?
    Thanks !

    Hi,
    Thanks for your assistance.
    I apologize for not explaining it properly. As you had suggested I just created one new file in which I kept only one text field. No actionscript or anything. The text will be displayed on the stage for 2 secs.
    As it is static I don't need to embed the text. So I didn't. Checked the swf file in different computers but no desired display. I then embedded the font. No desired display again in different computers. I then changed it from static to dynamic text, It is not necessary though. Still no desired display. I then tried with different font. But same thing happens.
    How did I embed the font ?
    Text --> Font Embedding --> Choosing correct font family and style --> Choosing character ranges as uppercase, lowercase, numbers, punctuation. Then clicked on + sign available at right top corner of the left area in which all embedded fonts are displayed. Click OK. Checked in Library and those fonts are available.
    I even didn't do anything with actionscript tab as I don't have any actionscript at all for this file.
    2 fonts I used:
    Font Family: Cooper Std
    Style: Black
    Font Family: DigifaceWide
    Style: Regular
    I don't really know Where I commit mistake. Please advice me.
    Awaiting your precious reply.
    Thanks.

  • Firefox Won't Play Audio Streaming

    I have researched this and tried: shutting off anti-virus, re-installing Firefox, checking all plug-ins, shutting off ABP, etc. Some websites will not play streaming audio in Firefox but do so in IE and Chrome. See the 2 examples below - any ideas??
    http://www.myfreenetradio.com/player/player.php?station=super70s&embed=true
    http://www.smoothjazzdetroit.com/
    Thank you!

    That is a Flash player.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can check for problems with current Flash plugin versions:
    *http://kb.mozillazine.org/Flash#Troubleshooting

  • Plays audio stream in flash 8, does not in HTML

    Website: www.tinmandownloads.com
    Stream:
    http://212.72.165.26:9386
    The player on the page has two buttons: T and N
    T plays a song stored as MP3 on another site, loads it as a
    stream. Works all the time
    N connects to the stream above.
    Works on "test movie", works on publish preview flash, does
    NOT work on publish preview htlm, does not work when published on
    site.
    What am I missing?
    Any help would be appreciated.

    This is a known issue with Flash Pro CC - GM build.
    this crash has been fixed in the update that was released recently. Please update to 13.0.1.808 version and it should fix this.
    Please reply if it still persists after the update.
    -Sujai

  • Play audio from file to speaker with Media Foundation

    I'm attempting to play the audio track from an mp4 file to my speaker. I know Media Foundation is able to decode the audio stream as I can play it with the TopoEdit tool.
    In the sample code below I'm not using a media session or topology. I'm attempting to manually connect the media source to the sink writer. The reason I want to do this is that I ultimately intend to be getting the source samples from the network rather than
    from a file.
    The error I get on the pSinkWriter->WriteSample line when running the sample below is MF_E_INVALIDREQUEST (0xC00D36B2). So I suspect there's something I haven't wired up correctly.
    #include <stdio.h>
    #include <tchar.h>
    #include <mfapi.h>
    #include <mfplay.h>
    #include <mfreadwrite.h>
    #pragma comment(lib, "mf.lib")
    #pragma comment(lib, "mfplat.lib")
    #pragma comment(lib, "mfplay.lib")
    #pragma comment(lib, "mfreadwrite.lib")
    #pragma comment(lib, "mfuuid.lib")
    #define CHECK_HR(hr, msg) if (hr != S_OK) { printf(msg); printf("Error: %.2X.\n", hr); goto done; }
    int _tmain(int argc, _TCHAR* argv[])
    CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE);
    MFStartup(MF_VERSION);
    IMFSourceResolver *pSourceResolver = NULL;
    IUnknown* uSource = NULL;
    IMFMediaSource *mediaFileSource = NULL;
    IMFSourceReader *pSourceReader = NULL;
    IMFMediaType *pAudioOutType = NULL;
    IMFMediaType *pFileAudioMediaType = NULL;
    MF_OBJECT_TYPE ObjectType = MF_OBJECT_INVALID;
    IMFMediaSink *pAudioSink = NULL;
    IMFStreamSink *pStreamSink = NULL;
    IMFMediaTypeHandler *pMediaTypeHandler = NULL;
    IMFMediaType *pMediaType = NULL;
    IMFMediaType *pSinkMediaType = NULL;
    IMFSinkWriter *pSinkWriter = NULL;
    // Set up the reader for the file.
    CHECK_HR(MFCreateSourceResolver(&pSourceResolver), "MFCreateSourceResolver failed.\n");
    CHECK_HR(pSourceResolver->CreateObjectFromURL(
    L"big_buck_bunny.mp4", // URL of the source.
    MF_RESOLUTION_MEDIASOURCE, // Create a source object.
    NULL, // Optional property store.
    &ObjectType, // Receives the created object type.
    &uSource // Receives a pointer to the media source.
    ), "Failed to create media source resolver for file.\n");
    CHECK_HR(uSource->QueryInterface(IID_PPV_ARGS(&mediaFileSource)), "Failed to create media file source.\n");
    CHECK_HR(MFCreateSourceReaderFromMediaSource(mediaFileSource, NULL, &pSourceReader), "Error creating media source reader.\n");
    CHECK_HR(pSourceReader->GetCurrentMediaType((DWORD)MF_SOURCE_READER_FIRST_AUDIO_STREAM, &pFileAudioMediaType), "Error retrieving current media type from first audio stream.\n");
    // printf("File Media Type:\n");
    // Dump pFileAudioMediaType.
    // Set the audio output type on the source reader.
    CHECK_HR(MFCreateMediaType(&pAudioOutType), "Failed to create audio output media type.\n");
    CHECK_HR(pAudioOutType->SetGUID(MF_MT_MAJOR_TYPE, MFMediaType_Audio), "Failed to set audio output media major type.\n");
    CHECK_HR(pAudioOutType->SetGUID(MF_MT_SUBTYPE, MFAudioFormat_Float), "Failed to set audio output audio sub type (Float).\n");
    CHECK_HR(pSourceReader->SetCurrentMediaType((DWORD)MF_SOURCE_READER_FIRST_AUDIO_STREAM, NULL, pAudioOutType), "Error setting reader audio output type.\n");
    // printf("Source Reader Output Type:");
    // Dump pAudioOutType.
    CHECK_HR(MFCreateAudioRenderer(NULL, &pAudioSink), "Failed to create audio sink.\n");
    CHECK_HR(pAudioSink->GetStreamSinkByIndex(0, &pStreamSink), "Failed to get audio renderer stream by index.\n");
    CHECK_HR(pStreamSink->GetMediaTypeHandler(&pMediaTypeHandler), "Failed to get media type handler.\n");
    // My speaker has 3 audio types of which I got the furthesr with the third one.
    CHECK_HR(pMediaTypeHandler->GetMediaTypeByIndex(2, &pSinkMediaType), "Failed to get sink media type.\n");
    CHECK_HR(pMediaTypeHandler->SetCurrentMediaType(pSinkMediaType), "Failed to set current media type.\n");
    // printf("Sink Media Type:\n");
    // Dump pSinkMediaType.
    CHECK_HR(MFCreateSinkWriterFromMediaSink(pAudioSink, NULL, &pSinkWriter), "Failed to create sink writer from audio sink.\n");
    printf("Read audio samples from file and write to speaker.\n");
    IMFSample *audioSample = NULL;
    DWORD streamIndex, flags;
    LONGLONG llAudioTimeStamp;
    for (int index = 0; index < 10; index++)
    //while (true)
    // Initial read results in a null pSample??
    CHECK_HR(pSourceReader->ReadSample(
    MF_SOURCE_READER_FIRST_AUDIO_STREAM,
    0, // Flags.
    &streamIndex, // Receives the actual stream index.
    &flags, // Receives status flags.
    &llAudioTimeStamp, // Receives the time stamp.
    &audioSample // Receives the sample or NULL.
    ), "Error reading audio sample.");
    if (flags & MF_SOURCE_READERF_ENDOFSTREAM)
    printf("End of stream.\n");
    break;
    if (flags & MF_SOURCE_READERF_STREAMTICK)
    printf("Stream tick.\n");
    pSinkWriter->SendStreamTick(0, llAudioTimeStamp);
    if (!audioSample)
    printf("Null audio sample.\n");
    else
    CHECK_HR(audioSample->SetSampleTime(llAudioTimeStamp), "Error setting the audio sample time.\n");
    CHECK_HR(pSinkWriter->WriteSample(0, audioSample), "The stream sink writer was not happy with the sample.\n");
    done:
    printf("finished.\n");
    getchar();
    return 0;
    I've omitted the code that dumps the media types for brevity but their output is shown below. It could well be that I haven't got the
    media types connected properly.
    File Media Type:
    Audio: MAJOR_TYPE=Audio, PREFER_WAVEFORMATEX=1, {BFBABE79-7434-4D1C-94F0-72A3B9E17188}=0, {7632F0E6-9538-4D61-ACDA-EA29C8C14456}=0, SUBTYPE={00001610-0000-0010-8000-00AA00389B71}, NUM_CHANNELS=2, SAMPLES_PER_SECOND=22050, BLOCK_ALIGNMENT=1, AVG_BYTES_PER_SECOND=8000,
    BITS_PER_SAMPLE=16, USER_DATA=<BLOB>, {73D1072D-1870-4174-A063-29FF4FF6C11E}={05589F81-C356-11CE-BF01-00AA0055595A}, ALL_SAMPLES_INDEPENDENT=1, FIXED_SIZE_SAMPLES=1, SAMPLE_SIZE=1, MPEG4_SAMPLE_DESCRIPTION=<BLOB>, MPEG4_CURRENT_SAMPLE_ENTRY=0,
    AVG_BITRATE=64000, 
    Source Reader Output Type:
    Audio: MAJOR_TYPE=Audio, SUBTYPE=Float, 
    Sink Media Type:
    Audio: MAJOR_TYPE=Audio, SUBTYPE=Float, NUM_CHANNELS=2, SAMPLES_PER_SECOND=48000, BLOCK_ALIGNMENT=8, AVG_BYTES_PER_SECOND=384000, BITS_PER_SAMPLE=32, ALL_SAMPLES_INDEPENDENT=1, CHANNEL_MASK=3, 
    Any hints as to where I could look next would be appreciated.

    Needed:
    pSinkWriter->BeginWriting()

  • How to play swf file in flex builder3?

    Hi!!!!!! I have made a video player in Flex project ......In source of video display I have added the path of my swf file which is as follows:
    <mx:VideoDisplay id="player" source="C:\Documents and Settings\sachin\Desktop\absolute-values.swf"
    maintainAspectRatio="true"
    width="450" height="300" autoPlay="false"
    playheadUpdate="videoDisplay_playheadUpdate(event)  ;"/>
    But when I am clicking on Play button ,I am getting following error:
    Error: 1000: Unable to make connection to server or to find FLV on server.
    at mx.controls.videoClasses::VideoPlayer/play()[C:\autobuild\3.2.0\frameworks\projects\frame work\s rc\mx\controls\videoClasses\VideoPlayer.as:1327]
    at mx.controls::VideoDisplay/play()[C:\autobuild\3.2.0\frameworks\projects\framework\s  rc\mx\controls\VideoDisplay.as:1464]
    at basicvideoplayer/___basicvideoplayer_Button1_click()[C:\Documents and Settings\sachin\video player\src\basicvideoplayer.mxml:44]
    Can anyone help me in removing this error?Kindly give me a  code  to Play,Pause and stop my swf file.

    GRag and Mesh are correct. You cannot use Flex to access a file on a user's hard drive, which is where your path is pointing.
    Instead, create a folder within your Flex project, under the "src" folder (example: src/assets/videos), and put the SWF there. Change the path in your code to point to the new location, like "assets/videos/myVideoFile.swf". Note that you don't refer to the src folder; it is the "root" of your application, and when you deploy all your files to your web server, you will be copying the folders you created to the root folder of your web server. So, all the paths will remain consistent. Flex will attempt to find "assets/videos/myVideoFile.swf", starting from the "root", or location, of the application itself.

  • MPEG Audio Stream

    Why is it impossible to pause an MPEG audio stream file without having it restart when you want to play it again? And also, why is it impossible to skip ahead in the MPEG audio stream file while it is playing?

    Hi, welcome to Apple's user-to-user discussion forums.
    An audio stream is not a file on your disk or on a cd, it is literally a digital stream that is playing as it is downloading. When you click on "Pause", you are stopping the stream. When you click "Play" again, you are restarting the stream, but there is now download manager for streams, so the stream starts from the beginning of the file on the server side or else from the beginning of the playlist, or, if it is a live radio stream, you will pick the stream up at the current live position.
    While some of the stream is cached on your computer, iTunes has no control over the cache, and the stream is not cached as a file, so the cache may only hold the most recent portion of the stream.
    I have seen some movie streams that you could pause, backtrack, or move forward (once enough of the stream was downloaded) using Quicktime, but I have seen nothing similar for audio streams short of recording the stream and then playing the resultant file.

  • Record multiple audio streams

    Hello
    I'd like to make a voice chat software that can record all
    audio streams in one flv file. Is it possible with FMS 2?
    Thank you for the answers:
    Peter

    Hello Peter,
    Using the server NetStream object, create a new server stream
    and give it a name, e.g. master:
    ns = Stream.get("master");
    Then start it recording with the instruction to append all
    the new recordings:
    ns.record("append");
    Then call the play method of the NetStream with each new
    publishing stream and a second parm of -1 to indicate live
    recording:
    ns.play("pubstream1",-1);
    ns.play("pubstream2",-1);
    When you want to stop recording call:
    ns.play(false);
    These are the basics. Post back if you need more.
    Bill

Maybe you are looking for