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

Similar Messages

  • Cure for "501 Method Not Implemented" error at site in Firefox but not Chrome or IE?

    I am receiving a "501 Method Not Implemented" error message at a site in Firefox but not in Chrome or IE. How can this be cured?

    Do you get that error if you access the site or if you click a link to got to another page?
    You can reload the page and bypass the cache with:
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    See [[Keyboard shortcuts]] and [[Mouse shortcuts]]
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Error when sending message: Method not implemented

    Hi, All:
    We have newly setup system and when we test sending test message from RWB, (RWB-Component Monitoring-Integration Engine-Test Tab), we got following error:
    "Error when sending message: Method not implemented", I know this is related to post configuration issue, I just know someone has come cross the situation and how it was resolved.
    Thanks
    Liang

    HI Liang
    Yes it looks like post installation problem. I have not come across this but i think you should check with the RFC created for IE while installation. To connect IE & AE and even the exchange profile if something is missing
    Thanks
    Gaurav

  • Hot code replace failed - Delete method not implemented

    I debug my Java application with Eclipse (3.1). When I change my code during debugging, I get the following error message:
    ...MyApp at localhost:4540 (may be out of synch) was unable to replace the running code with the code in the workspace.
    Reason:
    Hot code replace failed - Delete method not implemented
    What does that mean and how can I fix this?

    This means you changed a class while it was debugging an application and it could not update the class for the application while it was running.
    The error suggests you may be running an older JVM, i.e. pre-1.4.2 but this error can occur with any JVM if the change is incompatible with the previous version of the class.
    The hot replace often does not work for non trivial changes to code.

  • I try to go to a certain website and get "Method not implemented"

    I try and bring up Bluelight.ru and get a Method not implemented instead.I tried deleting cookies and it worked for a few days.I tried deleting cookies again but it didn't help.I called comcast and they said it was Mozilla.

    It might have something to do with Proxies. Have a look in System Preferences>Network, click on your network - either ethernet or wifi - and click on the Proxies tab. Anything selected in there. If so deselect and then try.
    Have you tried using another brrowser, maybe Chrome or Firefox?

  • 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

  • Startworkflow : method not implemented error

    Hi,
    I am using the following code to run a stored procedure. But every time the stored procedure is called, I get a message that the Startworkflow method is not implemented. But still the procedure is called and everything works fine. Can you please provide
    a solution to solve the error
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.MasterDataServices.WorkflowTypeExtender;
    using System.Data.SqlClient;
    using System.IO;
    using System.Xml;
    namespace MDSWorkflowExtender
        public class MDSWorkflowExtender : IWorkflowTypeExtender
            public void StartWorkflow(string workflowType, System.Xml.XmlElement dataElement)
                // Open a connection on the workflow database.
                SqlConnection workflowConn = new SqlConnection(@"Data Source=.; Database=DWH; Integrated Security=True");
                // Create a command to call the stored procedure that adds a new user to the workflow database.
                SqlCommand executeCommand = new SqlCommand("dbo.xxxxx", workflowConn);
                // Execute the command.
                workflowConn.Open();
                executeCommand.ExecuteNonQuery();
                workflowConn.Close();
                throw new NotImplementedException();
                

    workflowConn.Close();
    // throw new NotImplementedException();
    Remove the "throw new NotImplementedException();" statement in your code as I have shown by commenting
    it out above.  That statement probably is a left-over from the template.

  • JDBC 2.0 method not implemented error using bea jDriver for MS-SQLServer 2000

    I'm trying to reconfigure WebLogic Portal 7.0 (Platform 7.0 SP2) to run on MS SQLServer
    2000. According to the supported platform docs, the MS JDBC driver is not supported
    by Portal, hence I'm using the BEA jDriver for SQLServer.
    I'm now getting the following error when starting up Weblogic Portal which requires
    a re-sync with the EBCC before the applications will work.
    <28-Aug-03 09:28:30 BST> <Error> <Data Synchronization> <000000> <Application:
    portalApp; Corrupted data encountered in the persistent store; PLEASE RE-SYNCHRONIZE
    YOUR APPLICATION DATA WITH MODE "refresh-from-client" BEFORE CONTINUING! Failure
    to do so may result in incomplete or otherwise corrupted server state.
    Exception[com.bea.p13n.management.data.repository.PersistenceException: Failed
    to refresh JDBC Persistence Manager.] - with embedded exception: [java.sql.SQLException:
    java.sql.SQLException: This JDBC 2.0 method is not implemented] at com.bea.p13n.management.data.repository.persistence.JdbcDataSource.refresh(JdbcDataSource.java:506)
    Has anyone else come across this problem and know how to resolve it. I have tried
    using the MS JDBC Driver on the off chance that it would work, but this also produced
    SQL Exceptions with the persistance store and would not work at all even after
    syncing with the EBCC

    Jim,
    Thanks, I'm awaiting for my account to be enabled with customer contract support.
    When this is done I will raise a case and send files as requested.
    In the mean time it's worth noting that these settings have been made. Connection
    to the DB is fine, the createDB, loadads, loaddocs and sync etc all worked fine.
    The problem only exists when restarting the server and the portal persistance
    store is trying to be refereshed. Once EBCC is re-synced all the DB access works
    fine.
    Steve
    Jim Litton <reply@newsgroup> wrote:
    Please open a support case and send in your set-environment.bat,
    db_settings.properties, and config.xml from your domain directory after
    trying the following.
    Given that your operating system is Windows for performing all database
    operations like create_db, loaddocs, sync. (because you should not
    bother trying to run them on with UNIX).
    Restore your set-environment.bat to it's original state. It does not
    need to be touched.
    Uncomment the MSSQL section in db_settings.properties.
    database=MSSQL
    db_version=2000
    jdbcdriver=weblogic.jdbc.mssqlserver4.Driver
    server=@MSSQL_SERVER@
    port=@MSSQL_PORT@
    dblogin=@MSSQL_USER@
    dbpassword=@MSSQL_PASSWORD@
    connection=jdbc:weblogic:mssqlserver4:@MSSQL_SERVER@:@MSSQL_PORT@
    The dataSyncPool entry in config.xml should appear as:
    <JDBCConnectionPool
    Name="dataSyncPool"
    DriverName="weblogic.jdbc.mssqlserver4.Driver"
    URL="jdbc:weblogic:mssqlserver4:@MSSQL_SERVER@:@MSSQL_PORT@"
    Properties="user=@MSSQL_USER@;password=@MSSQL_PASSWORD@"
    Password="@MSSQL_PASSWORD@"
    InitialCapacity="1"
    MaxCapacity="5"
    CapacityIncrement="1"
    RefreshMinutes="99999"
    ShrinkingEnabled="false"
    Targets="sampleportalServer"
    TestConnectionsOnReserve="false"
    TestTableName="WEBLOGIC_IS_ALIVE"
    />
    -- Jim

  • Interface method  not implemented by class :(

    I'm getting an error for interface method
    Interface method handleLogout in namespace  views.interfaces:IWiseMediator not implemented by class  views.mediators:RatingViewMediator.    RatingViewMediator.as 
    package views.interfaces
        import flash.events.Event;
        public interface IWiseMediator
            function handleLogout(event:Event):void;
    but I done this in RatingViewMediator
    private function handleLogout(event:Event):void
                viewObject.clearFields();

    interfaces are used to enforce a public 'interface' to the class. as a private method can only be accessed by the class itself, it doesn't make sense to include private methods in an interface.

  • Error When Trying to POST: Method not implemented in data provider class

    Hi Experts,
    I have created an Odata Service using Netweaver Gateway Service builder. I am using Advanced Rest Client to test the service. I can successfully GET my data, but I run into issues when I try and POST new data.
    When trying to POST, I used the GET method to get the x-csrf-token, and added it to my header. I also updated the body XML with the data that I would like to POST. However, after sending the POST request, I am getting a "500 Internal Service Error" with the xml message "Method '<OdataServiceName>'_CREATE_ENTITY" not implemented in data provider class".
    Any help on this would be greatly appreciated. Thanks!

    Hi Kelly,
    Can you share screenshots of the error? Maybe something wrong with payload :can you share the same also? Did you try to debug it by putting a breakpoint in the CREATE_ENTITY method in the backend? Any luck?
    Regards,
    JK

  • IE-11 HTML5 Audio tags not working

    I have add mime type in web config as below
    <system.webServer>
        <staticContent>
            <mimeMap fileExtension=".mp3" mimeType="audio/mpeg" />
            <mimeMap fileExtension=".ogg" mimeType="audio/ogg" />
            <mimeMap fileExtension=".oga" mimeType="audio/ogg" />
        </staticContent>
    </system.webServer>
    All others browser is working well, but except IE-11
    The DOM display error INVALID SOURCE
    PLEASE ADVISE.
    Best Regards
    Dev - Nick

    I found 2 formats,supported by IE11: .m4a and .3ga
    <audio src="http://az3749.narod.ru/anna/soundE.3ga" type="audio/m4a" controls/>
    <audio src="http://az3749.narod.ru/anna/soundE.m4a" type="audio/m4a" controls/>
    also it is possible to rename .3ga to .m4a - it worked.

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

  • When I type in the web address I get Method Not Implemented

    then it says GET to/not supported
    Apache Server @www.thequiltingschool.com Port 80

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode

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

Maybe you are looking for