You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ripple.apache.org by "Frédéric Camblor (JIRA)" <ji...@apache.org> on 2014/08/26 16:13:58 UTC

[jira] [Comment Edited] (RIPPLE-59) Media plugin: cordova object not defined

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

Frédéric Camblor edited comment on RIPPLE-59 at 8/26/14 2:13 PM:
-----------------------------------------------------------------

Same issue here with 0.9.23

Tried to replace
{code}
    a.addEventListener("durationchange", function () {
        //HACK: I don't like this but best way for us to update the duration
        cordova.require("cordova/plugin/Media").onStatus(id, 2, this.duration);
    });
{code}
by
{code}
    a.addEventListener("durationchange", function () {
        //HACK: I don't like this but best way for us to update the duration
        ripple('emulatorBridge').window().cordova.require("cordova/plugin/Media").onStatus(id, 2, this.duration);
    });
{code}

but had an error later saying
{code}
module cordova/plugin/Media not found
{code}


was (Author: fcamblor):
Same issue here.

Tried to replace
{code}
    a.addEventListener("durationchange", function () {
        //HACK: I don't like this but best way for us to update the duration
        cordova.require("cordova/plugin/Media").onStatus(id, 2, this.duration);
    });
{code}
by
{code}
    a.addEventListener("durationchange", function () {
        //HACK: I don't like this but best way for us to update the duration
        ripple('emulatorBridge').window().cordova.require("cordova/plugin/Media").onStatus(id, 2, this.duration);
    });
{code}

but had an error later saying
{code}
module cordova/plugin/Media not found
{code}

> Media plugin: cordova object not defined
> ----------------------------------------
>
>                 Key: RIPPLE-59
>                 URL: https://issues.apache.org/jira/browse/RIPPLE-59
>             Project: Apache Ripple
>          Issue Type: Bug
>         Environment: Ripple 0.9.22, Phonegap 3.4.0-0.19.18, Chrome 34.0.1847.131, OSX 10.8.5
>            Reporter: Benjamin Warshaw
>              Labels: cordova-plugin-media, media, phonegap
>
> When instantiating a new Media object, using the Media plugin, I'm consistently getting the following error:
> {{Uncaught ReferenceError: cordova is not defined     ripple.js:33988}}
> Have tested this with a brand new Phonegap application created with the CLI.  The error occurs in the {{createAudio}} function.



--
This message was sent by Atlassian JIRA
(v6.2#6252)