Commit 192daad6 authored by purplecabbage's avatar purplecabbage
Browse files
parents 3b7c923d 4ba6b139
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -62,9 +62,16 @@ module.exports = {
        var id = args[0];
        //var src = args[1];
        //var options = args[2];

        var thisM = Media.get(id);
        // if Media was released, then node will be null and we need to create it again
        if (!thisM.node) {
            module.exports.create(win, lose, args);
        }

        Media.onStatus(id, Media.MEDIA_STATE, Media.MEDIA_RUNNING);

        (Media.get(id)).node.play();
        thisM.node.play();
    },

    // Stops the playing audio