Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Error calling method on NPObject
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Davide Prati  
View profile  
 More options Jan 12 2012, 9:33 am
From: Davide Prati <lastex...@gmail.com>
Date: Thu, 12 Jan 2012 06:33:11 -0800 (PST)
Local: Thurs, Jan 12 2012 9:33 am
Subject: Error calling method on NPObject

   1. Hello, i'm tring to embed this example
   https://raw.github.com/gist/1217547/553ddf5bf0a4c842aa4a29837160c3b20...
    in local. If i use the url video url give in the example,
   http://vimeo.com/api/v2/vhx/videos.json, there is no problem, when i try
   to change it with another url that displays a json response, I have this
   error:
   2.
   3. Uncaught Error: Error calling method on NPObject.
      1. megaplaya_call
      2. (anonymous function)
      3. onclick

      Does anybody know a solution?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Davide Prati  
View profile   Translate to Translated (View Original)
 More options Jan 12 2012, 9:51 am
From: Davide Prati <lastex...@gmail.com>
Date: Thu, 12 Jan 2012 06:51:59 -0800 (PST)
Local: Thurs, Jan 12 2012 9:51 am
Subject: Re: Error calling method on NPObject

That was the error in chrome. in Firefox i've got this: "uncaught
exception: Error in Actionscript. Use a try/catch block to find error."


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Casey Pugh  
View profile   Translate to Translated (View Original)
 More options Jan 12 2012, 11:05 am
From: Casey Pugh <ca...@vhx.tv>
Date: Thu, 12 Jan 2012 11:05:03 -0500
Local: Thurs, Jan 12 2012 11:05 am
Subject: Re: [vhx-api] Re: Error calling method on NPObject

Hi Davide - What's the URL you are using that's causing it to break?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Davide Prati  
View profile   Translate to Translated (View Original)
 More options Jan 12 2012, 11:43 am
From: Davide Prati <lastex...@gmail.com>
Date: Thu, 12 Jan 2012 08:43:33 -0800 (PST)
Local: Thurs, Jan 12 2012 11:43 am
Subject: Re: [vhx-api] Re: Error calling method on NPObject

Hey Casey, thanks for your answer.
This is the url
http://bit.ly/A3sT7J


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Davide Prati  
View profile  
 More options Jan 12 2012, 11:45 am
From: Davide Prati <lastex...@gmail.com>
Date: Thu, 12 Jan 2012 08:45:41 -0800 (PST)
Local: Thurs, Jan 12 2012 11:45 am
Subject: Re: [vhx-api] Re: Error calling method on NPObject
 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Casey Pugh  
View profile   Translate to Translated (View Original)
 More options Jan 12 2012, 12:30 pm
From: Casey Pugh <ca...@vhx.tv>
Date: Thu, 12 Jan 2012 12:30:22 -0500
Local: Thurs, Jan 12 2012 12:30 pm
Subject: Re: [vhx-api] Re: Error calling method on NPObject

For me it seems to be a JSON parsing issue:

$.ajax({
      type: "GET",
      url: "http://www.iocose.org/apis/first.json",
      dataType: "jsonp",
      success: function(videos, status, ajax) {
        if (videos) {
          megaplaya.api_playQueue(videos);
        }
      },
      *error: function() {*
*        console.log(arguments);*
*      }*
     });

If you add an "error" callback to $.ajax, you'll see that jQuery fails to
parse the JSON response. Here's the output I received: http://sht.tl/OmrhT

I'd check to make sure your server isnt doing anything funky with it's JSON
response.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Davide Prati  
View profile  
 More options Jan 12 2012, 1:09 pm
From: Davide Prati <lastex...@gmail.com>
Date: Thu, 12 Jan 2012 10:09:42 -0800 (PST)
Local: Thurs, Jan 12 2012 1:09 pm
Subject: Re: Error calling method on NPObject

thanks, I'll check the json response.
Another question, can I use the same example with an xml files?
dataType: "xml"
and then read an external xml file?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Casey Pugh  
View profile  
 More options Jan 12 2012, 1:24 pm
From: Casey Pugh <ca...@vhx.tv>
Date: Thu, 12 Jan 2012 13:24:55 -0500
Local: Thurs, Jan 12 2012 1:24 pm
Subject: Re: [vhx-api] Re: Error calling method on NPObject

You can use any format you'd like as long as the end result is an array of
objects containing a "url" attribute that gets passed to the video player.

Here's a basic example:

megaplaya.api_playQueue([
  { url: 'http://www.youtube.com/watch?v=sgKUS9AFemc' },
  { url: 'http://vimeo.com/25584378' },
  { url: 'http://www.flashcomguru.com/flash/bbc_reel_m420pVP6_768K.flv' }
])


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jamie Wilkinson  
View profile  
 More options Jan 12 2012, 1:32 pm
From: Jamie Wilkinson <ja...@vhx.tv>
Date: Thu, 12 Jan 2012 10:32:31 -0800
Local: Thurs, Jan 12 2012 1:32 pm
Subject: Re: [vhx-api] Error calling method on NPObject

To clarify: that "dataType" param is part of jQuery's $.ajax function, which I believe handles xml, but might require some massaging.

I think your JSON issues might be caused because your JSON is not JSONP, which requires a ?callback=foobar parameter. jQuery is hiding some of this magic:

      url: "http://vimeo.com/api/v2/vhx/videos.json",
      dataType: "jsonp",

is functionally equivalent to:

        url: "http://vimeo.com/api/v2/vhx/videos.json?callback=some_callback_function"
        dataType: "json",

The "Error calling method on NPObject" was an exception from the VHX megaplaya, but like Casey pointed out it was caused by the malformed JSON. We'll add more informative debugging to the player.

-jamiew
http://vhx.tv

On Jan 12, 2012, at 10:24 AM, Casey Pugh wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Davide Prati  
View profile  
 More options Jan 12 2012, 2:35 pm
From: Davide Prati <lastex...@gmail.com>
Date: Thu, 12 Jan 2012 11:35:47 -0800 (PST)
Local: Thurs, Jan 12 2012 2:35 pm
Subject: Re: [vhx-api] Error calling method on NPObject

On Thursday, January 12, 2012 7:32:31 PM UTC+1, Jamie Wilkinson wrote:

> To clarify: that "dataType" param is part of jQuery's $.ajax function,
> which I believe handles xml, but might require some massaging.

Yes, probably some massaging. I've written a script that parse the youtube
api and generates a static file. Probably for this purpose an XML file it's
better than a JSON file.The generated file is something like this
http://www.iocose.org/files/videos.xml but it doesn't work.
I will work it out tomorrow,
thanks for your answer


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »