Not quite sure how best to accomplish the following without losing most of uTube's benefits:
I have a Video Gallery doctype which has multiple Videos as its children, each of which has a uTube URL property.
What I need to do when a user visits the Video Gallery node is render a list of video thumbnails / captions taken from the child Video nodes, each of which, when clicked, would play the video either in a modal popup or on the child page itself. The thumbnail and caption should come from the Youtube API if possible.
How can I use the uTube system to generate this list?
You could do this pretty easily with an XSLT macro to list out the video nodes - I did the same in a recent project.
I guess your question is more about how to get the video thumbnail & description from the YouTube API? I also had to do this recently, and I couldn't figure out how to do it straight from XSLT - so I wrote a quick XSLT extension that works with uTube and returns the video's thumbnail. I'll paste it below.
Perhaps if you find it useful I can look at adding it to the uTube package, or maybe finding out how to do it with the existing uTube XSLT Extensions (I couldn't figure it out the first time, but it's probably possible - probably missed something with the extra namespaces).
How to use uTube for a video gallery?
Not quite sure how best to accomplish the following without losing most of uTube's benefits:
I have a Video Gallery doctype which has multiple Videos as its children, each of which has a uTube URL property.
What I need to do when a user visits the Video Gallery node is render a list of video thumbnails / captions taken from the child Video nodes, each of which, when clicked, would play the video either in a modal popup or on the child page itself. The thumbnail and caption should come from the Youtube API if possible.
How can I use the uTube system to generate this list?
No ideas?
Hi Tom,
You could do this pretty easily with an XSLT macro to list out the video nodes - I did the same in a recent project.
I guess your question is more about how to get the video thumbnail & description from the YouTube API? I also had to do this recently, and I couldn't figure out how to do it straight from XSLT - so I wrote a quick XSLT extension that works with uTube and returns the video's thumbnail. I'll paste it below.
Perhaps if you find it useful I can look at adding it to the uTube package, or maybe finding out how to do it with the existing uTube XSLT Extensions (I couldn't figure it out the first time, but it's probably possible - probably missed something with the extra namespaces).
Then in your XSLT once you've setup the XSLT extension, you can just do:
Hope this helps,
-Tom
Rather then C# code you can use Razor for getting all item from Vedio Gallery Node then display accordingly
is working on a reply...