project warnings in eclipse

I am using exported appery project for first time in eclipse and I am seeing several warnings about type Plugin being deprecated related to childbrowser, barcode scanner, etc. Is this a problem?

On a related note, I am trying to get this working at least in eclipse:
https://github.com/remcob00/cordova-p...

Is it possible that something like this could be included in appery as plugin? It is only for android but the phonegape 2.4 InAppBrowser is not working well for youtube videos, and is really not a good user experience for in app video play.
1 person has
this question
+1
This topic is no longer open for comments or replies.
  • This reply was removed on 2013-04-23.
    see the change log
  • Hello!

    I am seeing several warnings about type Plugin being deprecated related to childbrowser, barcode scanner, etc. Is this a problem? --> No, it's not a problem

    You can add any PhoneGap plugin in Eclipse.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned

  • I wonder if there is something special I need to do for an external plugin to be seen by Appery's implementation of phonegap related to an exported eclipse project beyond normal plugin instructions provided but plugin developers.

    For example, I am attempting to include the YouTube player api plugin and I am getting the error:
    TypeError: Result of expression 'window.plugins.youtube' [undefined] is not an object
    From what I can tell phonegap does not see my added plugin. I have reviewed developer instructions and wonder if my problem has something related to the Appery exported project structure that I am missing. Since phonegap is already included in exported project and not something I am including explicitly, I wonder if I am missing something.

    The original plugin is info is here:
    https://github.com/remcob00/cordova-p...

    My attempt to get help on phonegap forum is here:
    https://groups.google.com/forum/?hl=e...

    Any clues would be greatly appreciated, as this is my first attempt at adding plugins outside of Appery and I know I will have to do more.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned

  • Hi Sean,

    Did you plug Youtube.js file provided with the plug-in?
    On what event do you call window.plugins.youtube.show(...) ?
    Try it on "deviceready" event.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned

  • I did put the call in device ready. In my videoPage.js I have:
    // device events
    j_336_deviceEvents = function() {

    document.addEventListener("deviceready", function() {

    //I added
    //window.plugins.youtube.show({ videoid: vid}, function() {}, function() {} );
    window.plugins.youtube.show({ videoid: "oHg5SJYRHA0"}, function() {}, function(e) {console.log(e)} );
    });
    }


    And in my videoPage.html I have:

    <script type="text/javascript" src="res/lib/cordova.js"></script>
    <script type="text/javascript" charset="utf-8" src="res/lib/youtube.js"></script>

    I tried putting the youtube.js in assets/www directly but I have been moving it around in case there was a problem with location. It is now in assets/www/res/lib for now.

    I also put this in res/xml/config.xml
    ...
    <plugin name="YouTube" value="com.remcob00.plugins.youtube.YouTube"/>
    </plugins>
    </cordova>
    .

    Here is my project explorer
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned

  • First, try in Eclipse project settings set Android version 2.3 or higher.
    Second, if in your app the expression window.plugins.youtube has a value="undefined" then youtube.js is not linked to the page.
    If function window.plugins.youtube.show is defined, but when calling nothing happens then error is somewhere in plug-in Java code.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned