Audio tag html5 webstageview android local

OS android
the html5 audio tag works perfect in webstageview  if the webpage is online, but if the html5 page is local it doesn't work.
I copy all the files in File.applicationStorageDirectory;
Have you any fix or information?

I figured out the problem.  Safari seems to require the mp3 file to be listed first.
this doesn't work in Safari. 
<audio width="300" height="32" controls="controls"><source src="filename.ogg" type="audio/ogg" /><source src="filename.mp3" type="audio/mpeg" /></audio>
But this works fine.
<audio width="300" height="32" controls="controls"><source src="filename.mp3" type="audio/mpeg" /><source src="filename.ogg" type="audio/ogg" /></audio>

Similar Messages

  • Play() method not implemented HTML5 audio  tag?

    Hello,
    I am trying to play a sound using the HTML5 audio-tag and Adobe Air SDK 2.5.
    This is part of the HTML5 code:
        <audio preload="auto" id="myTone">
            <source src="test.mp3">
            <source src="test.ogg">
        </audio>
    And from javascript I do:
        a = document.getElementById("myTone");
        a.play();
    Unfortunately, that doesn't work. I get this error message in the console window:
        TypeError: Result of expression 'a.play' [undefined] is not a function.
    However, when I run this code directly in Firefox 3.6.11 on my Windows XP machine, it works.
    Dito in Safari 3.2.1 on my Mac OS 10.5.6 computer.
    So apparantly, not all methods and events of the audio-tag are implemented in the Adobe AIR environment.
    Is this by design? Or is it a bug?
    I know there is another way to play sounds (I read Jeff Swartz' article - http://www.adobe.com/devnet/air/ajax/quickstart/articles/sound_in_html.html). But I think a pure HTML5 solution would be cleaner.
    Who can provide more info about this issue?
    Many thanks.
    Jay

    Hi there,
    same issue here.
    A workaround, far from perfect, is to request the base64 encoded data using an Ajax call
    and set the src attribute of the audio element to 'data:audio/mpeg;base64,' + base64encodedaudio.
    Regards

  • How do I get my HTML5 audio tag to work in Firefox 7.0.1, currently it doesn't even display the alternate text when the player cannot play.

    This is my implementation of the audio tag.
    <pre><nowiki><div class="music_player" oncontextmenu="return false;">
    <audio autoplay="autoplay" controls="controls" preload="auto">
    <source src="sample.ogg" />
    <source src="sample.mp3" />
    <span id="audio_error">This website has an audio sample, but cannot play using this browser.
    </span>
    </audio>
    </div></nowiki></pre>

    Make sure that the server sends the ogg file with a supported MIME type.
    * https://developer.mozilla.org/En/Media_formats_supported_by_the_audio_and_video_elements
    * https://developer.mozilla.org/en/Configuring_servers_for_Ogg_media

  • Why do I still get giant gray 'X's instead of an audio player, even with the correct MIME type for my Ogg Vorbis file, whether coded in the audio tag or as a source?

    I uploaded Saturnalia.ogg to my site and used the audio tag to try to display it on my test page. I'd love to ditch the ultra-slow Flash players I currently use, but I don't want to leave most of my site's users wondering what the files sound like, where they are, and why are there giant gray Xs ruining my layout. The audio files work fine in Safari and Opera, and IE uses the correct fallback text. I've tried both coding the file into the audio tag and into source tags. I've set controls="controls" and tried both type="audio/ogg" and type="audio/vorbis". I've tried with and without autoplay.
    According to Mozilla, audio tags are supported, but I'm not seeing any of that support on my site.

    Where are you seeing that?
    Earlier:
    <audio src="dsh.ogg" controls="controls" type="audio/ogg">Your browser does not support the HTML5 audio tag.</audio>
    Now:
    [<object type="application/x-java-applet" width="580" height="15px" controls="controls">
    <param name="archive" value="cortado.jar" />
    <param name="code" value="com.fluendo.player.Cortado.class" />
    <param name="url" value="http://desolosubhumus.webs.com/dsh.ogg" />
    You need to install Java to play this file.
    </object>]<br />
    <audio src="dsh.ogg" type="audio/ogg">
    You need to install Java to play this file.
    </audio>
    *p tags removed for readability
    I know the audio tag should open before the object tag opens and close after the object tag closes, and that I shouldn't need duplicate fallback text, but it wouldn't show up that way. The way I have it set up now finally works on Firefox, IE (plays, not fallback text), Opera, Safari, and Chrome. I'm still trying to tweak the code to make it more standard (audio tags in the proper places), to clean it up so it's not such a huge chunk, and to see if I can get the applet to stay visible (which may not be possible, as the only way I've made it work is as a Cortado VIDEO instead of a purely audio file), and to make it stop autoplaying instead of playing when the user chooses play. Perhaps a Kate stream for track labels and a play button image set directly behind the applet when the play button actually is.

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

  • HTML 5 audio tag not working in FF

    I am developing a website in asp.net and html 5 and trying to add some audio to the site.
    My site is:
    http://www.kevinroseworld.com/music.aspx/
    It is, currently, a very simple set up, just the one song. It works fine in Chrome and Safari, IE does not support the Audio tag and the message appears where it is supposed to, however, Firefox does not display the error message or play the audio file.
    I started using FF 3.6.10 and have now upgraded to FF 4 Beta 6 and neither version works.
    Any advice as to how to fix this?
    I also had a look on other forums and found others with the same problem: http://www.manifestmusicproductions.com/soundsNonflash.php for example, works in Chrome/Safari but not in FF.

    well for anyone else.
    my html was fine. in fact the server nginx was returning the wrong content-type and so i had to add the MIME types into my nginx config file.

  • Audio tag problem in latest stable version of firefox (3.6.7 & 3.6.8)

    navigate to this html game using audio tags. With sound on (default you will hear background music) click on logo, on next screen click on a number and a (found) sound will play. click on a non number and a (wrong) sound should play. The wrong sound never plays in firefox v3.6.7 or v3.6.8. Note it is working correctly in firefox 4 beta 1.
    http://homepage.ntlworld.com/infinnerty/attic/index.html
    == URL of affected sites ==
    http://homepage.ntlworld.com/infinnerty/attic/index.html

    I've reverted back to 3.6.6 until they fix the problem. I'm guessing its something to do with the webm stuff as that is in both 3.6.7 and 3.6.8.
    Maybe v4 will solve everything...

  • Audio Tags in PDF do not play when in remote access

    Have Acrobat Reader latest version installed on a Windows 8.1. When using remote access to play audio's all is fine but audio tags embedded in pdf's do not play? Any thoughts on issue here?

    Hi,
    Is there any update for your case?
    Thanks.
    Dharmesh Solanki

  • Xcode: loading HTML5 questions from local storage

    Version: Captivate 6
    Output type: HTML5 loaded as local files within an Xcode iOS project.
    Not sure at this point if the problem is with Xcode or the Captivate files.
    The requirement is to load 'offline' local Captivate quizzes within an iOS application. The HTML5 output from Captivate loads absolutely fine when stored on a web server and viewed through the browser (Safari) on the iPhone. The puzzling bit is when I load the files into an Xcode project and view them through a UIWebView locally the Captivate content does load properly, although it does load a grey placeholder style box in a HTML page - the content does not initiate. See screen grab.
    I am conscious the Captivate HTML5 output contains a lot of javascript files and have made sure these are included in the Copy Bundle Resources rather than the Compile Sources.
    I made a simple local HTML page and the content in this renders absolutely fine in application, using the UIWebView also to view the content on a webserver within the app works fine.
    Any suggestions?

    I'd suggest using Safari and set the UserAgent to be an iphone and see if there is anything in the error console. That might give you a clue.
    Fergal

  • Html 5 audio tag not working

    Hi, I am trying to create a web page that links to an audio file. I have added the <audio> tag which works in my Safari browser on my Mac but does not work on the i-phone. If I save the page by bookmarking and adding to my Home Screen I have more success. This is not a desirable option.
    Does anyone have any ideas?
    Glenn

    well for anyone else.
    my html was fine. in fact the server nginx was returning the wrong content-type and so i had to add the MIME types into my nginx config file.

  • Audio tag not support some .wav files

    i use <audio> tag to play .wav files.
    it is working right in Chrome and old Firefox,
    in firefox 16.0.1, some of these .wav files can not play. error message is: 媒体资源.....无法被解码

    It is possible that the .wav files are encoded in an unsupported format: Media resources ..... can not be decoded.
    Maybe try to recode the files if you use some kind of compression format.

  • Could take the same JNDI-names for both tags: jndi-name and local-jndi-name

    Hello!
    I try to design the weblogic-ejb-jar.xml descriptor and I ask myself, if I could
    take the same JNDI-names for both tags:
    <jndi-name> and <local-jndi-name> ?
    Could you give me and advice if this is ok?
    Thanks

    if you have two separate interfaces, you cant bind them to the same jndi
    name. you will have a local home that extends EJBLocalHome and a remote
    home called EJBHome. also you need to know which one you are looking up
    so you can cast it properly, and use it property (remote interfaces need
    PortableRemoteObject, remote parameters are passed by value, ...)
    joern kirch wrote:
    Hello!
    I try to design the weblogic-ejb-jar.xml descriptor and I ask myself, if I could
    take the same JNDI-names for both tags:
    <jndi-name> and <local-jndi-name> ?
    Could you give me and advice if this is ok?
    Thanks

  • Gnome-music and Rhythmbox display wrong audio tags

    Hi,
    I've seen that both these two audio players (and maybe others, I don't know) show wrong audio tags. The "album year" tag is set correctly for all my .m4a songs (it can be seen from nautilus or from any tagging software) but Rhythmbox and Gnome-music always show the wrong year, without any apparent reason.
    Did anyone encounter the same problem? How to fix?
    Thanks in advance

    Lello wrote:
    Hi,
    I've seen that both these two audio players (and maybe others, I don't know) show wrong audio tags. The "album year" tag is set correctly for all my .m4a songs (it can be seen from nautilus or from any tagging software) but Rhythmbox and Gnome-music always show the wrong year, without any apparent reason.
    Did anyone encounter the same problem? How to fix?
    Thanks in advance
    Yeah I found that I had inconsistencies with Rhythmbox and tags as well. This is how I fixed my problems.
    1) Install Easytag.
    2) Open Rhythmbox, right click on the song (or select all the tracks and then right click) and hit properties.
    3) Change the incorrect tag to what it should be.
    4) Open Easytag, locate the tarcks that you just edited in Rhythmbox. You should find that they are highlighted in bold. Select the tracks and then click the "Save changes to selected files" button in the Easytag toolbar. If you've selected multiple tracks then you'll need to tick the box saying you want to apply the action to all files.
    The tags should be consistent across all your music programs now. Hope this helps!

  • No volume control for audio tag in Firefox 5

    So this is the problem - after I installed Firefox 5, '''volume control''' for '''audio''' tag stopped showing when I move mouse pointer over the mute control. I have all other controls visible - pause/play and mute, but not the volume control.
    This occurs only when I use audio tag. If I open pure .ogg or .oga file in FF5, everything is fine, but that's not usable for me since I need to have audio embedded in my web page.
    Video tag is working well.
    Is there anything I can do to fix this (without having to code volume control in JavaScript)?

    K? No it's not perfectly normal. The software volume control should be done by the Window/Creative sound drivers BEFORE it is sent to the DDL/DTS encoder driver.
    Today I found that I do now have limited volume control. However the Master/Device/Speakers volume still does not work, nor does the mute. However the individual applications in the win7 volume mixer work fine to control volume, but having to adjust these gets tidious.
    I have no idea if this just suddlenly started working, I just missed it before, or if the webcam with its audio mic driver I just installed did something to it. But at least I do have some way to control volume now within windows. Now if only I can get the master slider to work. Anyone have any ideas? I found one other post on here where someone else was complaining about this very same problem with DDL.

  • HTML5 audio tag problem iOS 3.2.2

    Hi everyone,
    We've been developing web based applications for the iPad in HTML5 and we have come across a problem in that mp3 files play on an endless loop, when we only want them to play once. We've tested audio file playback with m4a files and have had success with audio only playing once, but we want to be able to do this with mp3 files.
    Any help would be greatly appreciated.
    Cheers,
    Ben

    You might want to try a developers forum. You posted in a users forum.
    http://developer.apple.com/devforums/

Maybe you are looking for

  • G4 and Tiger

    Can a G4 800MHz Power PC w/ 256MB RAM, currently running 10.2 upgrade to Tiger without any problems? thanks

  • Customizing Search for Tablet or Mobile only devices

    Hi BC Community, Quick question - I am building a website using an adaptive layout design and I want to be able to have a Search box in the Tablet device and the Mobile Device.  Is there a way of setting up the search functionality so that when you a

  • Counter1 and divide_by_2 in DDK

    Hi, I am trying to get a divide by 2 working in a gp Counter.  Code is based on the PulseTrainConfigure function posted several years ago by Tom W in thread http://forums.ni.com/t5/Driver-Development-Kit-DDK/Pulses-generator-on-pci-6259-with-QNX6/m-p

  • My new iphone 5S will not sync with my MacBook Pro

    I am connected to the laptop with my USB cable, enter the code indicated and the phone and laptop will not sync.

  • Newbie - Creating a data connection

    I imported a Adobe Acrobat pdf into Live Cycle Designer and created a data connection. I connected the fields in my XML sample document to the fields on the pdf but the data does not show in PDF Preview. Have I missed a step? I have used Acrobat 6.0