You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2014/09/15 02:14:33 UTC

[jira] [Commented] (CB-7506) [Media][iOS 8] Playback doesn't work

    [ https://issues.apache.org/jira/browse/CB-7506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14133452#comment-14133452 ] 

Shazron Abdullah commented on CB-7506:
--------------------------------------

This is vague - any more info?

I tried the code below in my deviceready handler, it works:
{code}
        var mediaFile = 'http://cordova.apache.org/downloads/BlueZedEx.mp3';
        
        function playAudio(url) {
            // Play the audio file at url
            var my_media = new Media(url,
                                     // success callback
                                     function () {
                                     console.log("playAudio():Audio Success");
                                     },
                                     // error callback
                                     function (err) {
                                     console.log("playAudio():Audio Error: " + err);
                                     }
                                     );
            // Play audio
            my_media.play();
        }
        playAudio(mediaFile);

{code}

> [Media][iOS 8] Playback doesn't work
> ------------------------------------
>
>                 Key: CB-7506
>                 URL: https://issues.apache.org/jira/browse/CB-7506
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: Plugin Media
>    Affects Versions: 3.5.0
>         Environment: iOS 8
>            Reporter: Tom Krones
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)