This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » Developer » Embedding the latest YouTube videos...
expandshrink

Embedding the latest YouTube videos from my channel

Embedding the latest YouTube videos from my channel

Monday 23 January 2012 3:54:56 pm - 3 replies

Hi there, that's the question. 

I have a place in my home page where I want to embed the latest video uploaded on my channel (or the featured video of the channel... it's the same).

I need to know if there's ad automatic way to do that, or if I have to create an element, let's call it 'YTvideo', to be fetched and showed in my page, and to be modified every time I upload a new video.

In add.. is there a way to get some information (visits, descriptio, upload date) from the video?

Thank you very much

[EDIT]

Hi again. 

Googling for Youtube API I found that YT can provide an XML output for all uploaded videos. This is my XML https://gdata.youtube.com/feeds/api/users/provinciadisienaTV/uploads

This is not a normal Rss 2.0 feed and I did not find any extension to parse it correctly.

I would not be so happy to create my own extension for that... also because I'm not sure to be able to do that! Any suggestions?

Modified on Tuesday 24 January 2012 5:24:19 pm by Simone Conti

Tuesday 24 January 2012 11:35:13 pm

Hi Simone,

From what I can gather you will need to run your own module that will interact with the You Tube API and return the current results.

You could try loading the info using JS but I tend to not like relying on JS to complete these tasks.

Personally I'm only new to building custom modules, it's a little confusing to start with but once you get your head around it you will find that it's a really great skill to have when developing in EZ (since learning how to make modules i think I've made a custom one for 75% of sites since ;-P)

Here's some info I've used to work all this out. I would think that a custom fetch that interacts with the youtube api to get your video's is probably the solution. Have a look at these articles.

http://share.ez.no/forums/developer/tutorial_how_to_make_module/%28from%29/ez.no/

http://ezpedia.org/ez/module

http://ezpedia.org/ez/custom_fetch

https://auth.ez.no/ezpublish/documentation/development/extensions/building_an_ez_publish_module

If you follow the guides you should be able to get something working without too much hassle happy.gif Emoticon

Hope this helps.

Wednesday 25 January 2012 4:28:23 pm

Hi,

I'm going to check all you links out. Meanwhile I solved my problem creating a custom template operator that get a feed from YouTube, then parse it and pass me the information I need. Not so elegant... but it works fine! happy.gif Emoticon

Thursday 26 January 2012 11:18:23 pm

Nice work! I've used template operators to complete the task as well. In one of the articles there it discusses the use of template operators vs custom fetches and the like. Hope they make some things a little clearer for you. happy.gif Emoticon

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from