reblogvision for wordpress?

59 views
Skip to first unread message

Romain

unread,
Sep 27, 2011, 7:30:56 PM9/27/11
to VHX API Developers
Hello VHX Developers :)

I saw reblogvision, I think it's a really interesting idea, but I was
wondering if it would be possible in my case to load the videos posted
in a wordpress blog (For example.. I posted videos from youtube, vimeo
etc. on my wordpress blog and now, I would like to load all the
videos from my blog into the VHX Player?)

function load_videos(){
$.ajax({
type: "GET",
url: "http://api.tumblr.com/v2/blog/"+blogname+"/posts/video?
api_key=PyezS3Q4Smivb24d9SzZGYSuhMNPQUhMsVetMC9ksuGPkK1BTt&jsonp=load_videos_callback",
dataType: "jsonp"

I saw that you are using the tumblr API but, can it be modified to
load the videos from a wordpress blog?

Thank you : )
And sorry for my english : o

Romain

Jamie Wilkinson

unread,
Sep 27, 2011, 7:59:53 PM9/27/11
to vhx...@googlegroups.com
Hi Romain, glad you're enjoying my (incomplete) hack... it's at http://github.com/jamiew/reblogvision // <http://reblogvision.com> for anyone else interested

Like you mentioned it's just using JSON + javascript callback (JSONp) with Tumblr's API to load videos into the VHX megaplaya and display some metadata.

If WordPress provides a JSONp version of a blog it should be no problem to create something similar -- this plugin seems like a great start:

But as far as I know wordpress.com does not unfortunately provide something equivalent, in which case you'd need to do server-side work in parsing RSS etc.

-jamiew

Romain

unread,
Sep 28, 2011, 8:41:05 AM9/28/11
to VHX API Developers
Ok Thank you !! (I just LOVE VHX so much :)
Another question,
I saw musicvideogenome.com and I was wondering if it's possible with
the API to integrate a form to suggest a replacement video (or just a
form to suggest a new video... not necesarily a replacement video),
like you did with musicvideogenome ? If it's possible, when you send a
new url, this new url that you added with the form is automaticaly
adding it to the current playlist, or ....?

I'm really sorry for my english,
Thank you again!

Romain

On 28 sep, 01:59, Jamie Wilkinson <ja...@jamiedubs.com> wrote:
> Hi Romain, glad you're enjoying my (incomplete) hack... it's athttp://github.com/jamiew/reblogvision// <http://reblogvision.com> for
> anyone else interested
>
> Like you mentioned it's just using JSON + javascript callback (JSONp) with
> Tumblr's API to load videos into the VHX megaplaya and display some
> metadata.
>
> If WordPress provides a JSONp version of a blog it should be no problem to
> create something similar -- this plugin seems like a great start:http://wordpress.org/extend/plugins/json-api/
>
> But as far as I know wordpress.com does not unfortunately provide something
> equivalent, in which case you'd need to do server-side work in parsing RSS
> etc.
>
> -jamiewhttp://vhx.tv
>
>
>
>
>
>
>
> On Tue, Sep 27, 2011 at 4:30 PM, Romain <yanquiwann...@gmail.com> wrote:
> > Hello VHX Developers :)
>
> > I saw reblogvision, I think it's a really interesting idea, but I was
> > wondering if it would be possible in my case to load the videos posted
> > in a wordpress blog (For example.. I posted videos from youtube, vimeo
> > etc. on my wordpress blog and now, I would like  to load all the
> > videos from my blog into the VHX Player?)
>
> > function load_videos(){
> >    $.ajax({
> >      type: "GET",
> >      url: "http://api.tumblr.com/v2/blog/"+blogname+"/posts/video?
>
> > api_key=PyezS3Q4Smivb24d9SzZGYSuhMNPQUhMsVetMC9ksuGPkK1BTt&jsonp=load_video s_callback",

Casey Pugh

unread,
Sep 28, 2011, 7:43:25 PM9/28/11
to vhx...@googlegroups.com
Hi Romain,

Yes, this is very possible and pretty simple to do. You can control the megaplaya's current playlist by using api_updateQueue(). See the example below:

myvideos = [{ url: http://video1.com }, { url: http:// video2.com }];

// load some videos in
megaplaya.api_playQueue(myvideos); // Megaplaya is now playing the first video in the list (index 0)

// add a new video to the playlist
myvideos.push({ url: http://video3.com/xxxx });

// Load in a new set of videos. Note that if megaplaya is playing a video already, this call will not interrupt playback.
megaplaya.api_updateQueue(mynewvideos);

// Just make sure when you update the queue, you update the position of the current playing video
// so megaplaya knows where it should be playing in the queue
megaplaya.api_setQueueAt(index);

Hope that helps. Let me know if you have more questions.

Casey

Romain

unread,
Oct 27, 2011, 7:09:48 AM10/27/11
to VHX API Developers
Hi Casey!

Ok, I tried, it's working perfectly ! But since 3 or 4 days I have a
little problem with the reblogvision' script. I thought first that the
problem was due to my modifications, but I tried the original version
(the one you made, from github) but the youtube videos don't work at
all, I can't watch them, its not even loading. However, i don't have
any problem with the videos from vimeo...
Do you have any idea why? : )

Jamie Wilkinson

unread,
Oct 27, 2011, 12:29:15 PM10/27/11
to vhx...@googlegroups.com
Romain, I think this might be a glitch in the Tumblr parsing code I wrote for Reblogvision, as http://reblogvision.com is also not working with YouTube, but the VHX player is having no problems.

I'll ask the Tumblr guys since it sounds like something changed. It used to parse nice URLs like http://youtube.com/v/hlxvzt7rKU4 -- but now they're coming out like:

Romain

unread,
Oct 27, 2011, 12:44:35 PM10/27/11
to VHX API Developers
Ok : ) Thank you! I'm going to try something else then.

(Does it still possible to join the beta???! I really would like to
try the new playlist feature!!! =))

Romain


On Oct 27, 6:29 pm, Jamie Wilkinson <ja...@jamiedubs.com> wrote:
> Romain, I think this might be a glitch in the Tumblr parsing code I wrote
> for Reblogvision, ashttp://reblogvision.comis also not working with
> YouTube, but the VHX player is having no problems.
>
> I'll ask the Tumblr guys since it sounds like something changed. It used to
> parse nice URLs likehttp://youtube.com/v/hlxvzt7rKU4-- but now they're
> coming out like:
>
> http://www.youtube.com/v/hlxvzt7rKU4&rel=0&egm=0&showinfo...

Jamie Wilkinson

unread,
Oct 27, 2011, 1:00:09 PM10/27/11
to vhx...@googlegroups.com
Sure, what is your username? (pls email me offlist)

@all -- if you are not rocking playlists yet either, email me as well and I'll add you. All feedback/bugs/ideas very welcome

Romain

unread,
Oct 29, 2011, 11:06:23 AM10/29/11
to VHX API Developers
I tried the playlist feature, it's working perfectly! I love it !
Is it possible to use the Advanced embed demo (http://dev.vhx.tv/
advanced-embed.html) with a playlist URL ? I tried an URL like
http://api.vhx.tv/:user_id/:id.json but it's not working.. Can you
help me? (I know it's a stupid question, but I really can't find how
to do it... ahha)



On Oct 27, 7:00 pm, Jamie Wilkinson <ja...@jamiedubs.com> wrote:
> Sure, what is your username? (pls email me offlist)
>
> @all -- if you are not rocking playlists yet either, email me as well and
> I'll add you. All feedback/bugs/ideas very welcome
>
> http://blog.vhx.tv/tagged/playlists
>
>
>
>
>
>
>
> On Thu, Oct 27, 2011 at 9:44 AM, Romain <yanquiwann...@gmail.com> wrote:
> > Ok : ) Thank you! I'm going to try something else then.
>
> > (Does it still possible to join the beta???!  I really would like to
> > try the new playlist feature!!! =))
>
> > Romain
>
> > On Oct 27, 6:29 pm, Jamie Wilkinson <ja...@jamiedubs.com> wrote:
> > > Romain, I think this might be a glitch in the Tumblr parsing code I wrote
> > > for Reblogvision, ashttp://reblogvision.comisalso not working with
> > > YouTube, but the VHX player is having no problems.
>
> > > I'll ask the Tumblr guys since it sounds like something changed. It used
> > to
> > > parse nice URLs likehttp://youtube.com/v/hlxvzt7rKU4--but now they're

Jamie Wilkinson

unread,
Oct 29, 2011, 8:09:36 PM10/29/11
to vhx...@googlegroups.com
Yep playlists are supported, but you need to use a URL without the api subdomain or the .json suffix, like:


We'll add support for API URLs in the future as well.

-jamiew

Romain

unread,
Jan 21, 2012, 1:42:31 PM1/21/12
to vhx...@googlegroups.com
Hey Jamie,

It doesn't work anymore.. If I use an url like http://vhx.tv/jamiew/turntablism the advanced player doesn't load anything, did you change something? 

Thank you

Romain

Casey Pugh

unread,
Jan 21, 2012, 1:53:54 PM1/21/12
to vhx...@googlegroups.com
Romain, do you have a working example you could show us? Seems to be working fine for us.

Romain Sourdiaux

unread,
Jan 21, 2012, 3:05:07 PM1/21/12
to vhx...@googlegroups.com
I don't have one right now, but if I'm right, I just need to modify this part?? 

 function load_videos()
  {
    $.ajax({
      type: "GET",
      url: " ",
      dataType: "",
      success: function(videos, status, ajax) {
        if (videos) {
          megaplaya.api_playQueue(videos);

Jamie Wilkinson

unread,
Jan 25, 2012, 11:09:12 AM1/25/12
to vhx...@googlegroups.com
Hi Romain -- I believe whatever URL you point this at requires JSONP support (e.g. accepts a ?callback parameter). 

I would advise adding an "alert(videos);" inside the success function to see what kind of data is being returned. I'm guessing the data is empty or doesn't contain data that works automatically with megaplaya, which wants an Array with each element having a field called "url". Otherwise you need to parse the response and send it to the player manually.

-jamiew
Reply all
Reply to author
Forward
0 new messages