cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-7506) [Media][iOS 8] Playback doesn't work
Date Mon, 15 Sep 2014 00:14:33 GMT

    [ 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)

Mime
View raw message