Im creating a document type to hold video content. Now I'm considering how this document type should be used. Should i hold it underneath a content node and use a macro to pull it through or should i include some fields of the content document type and use it as a seperate page?
The way I usually do it is to store videos in the media library, then use a macro to allow the author to insert them on a page from within the wysiwyg. Using flowplayer (http://flowplayer.org/) this is made pretty easy and the result looks good.
Heres some xslt that will allow the user to pick (one) video from the media library and write it out using flowplayer (*the flowplayer and jquery js would need to be included in your template)
videoHeight videoWidth (these allow the user to adjust for the video) videoName - (using mediacurrent)
If you wanted instead to build up pages with many movies, you could simply set a sensible default for width and height and use a multiple media picker on a page to build up a gallery.
If you are using multiple videos on one page then you will have to be careful in regards to the id="player" as if you have the id referenced more that once then obviously it will fail the XHTML validator and flowplayer will go into one and not work correctly.
You would have to use classes and create dynamic id's so the correct video is played.
Thanks for the detailed answer, however i have forgot to mention that i am using the video embed package. Sorry to waste your time. I must admit i'm very tempted to give this a try!
Best Practices - Video Content
Hey All,
Im creating a document type to hold video content. Now I'm considering how this document type should be used. Should i hold it underneath a content node and use a macro to pull it through or should i include some fields of the content document type and use it as a seperate page?
Cheers
Alec
The way I usually do it is to store videos in the media library, then use a macro to allow the author to insert them on a page from within the wysiwyg. Using flowplayer (http://flowplayer.org/) this is made pretty easy and the result looks good.
Heres some xslt that will allow the user to pick (one) video from the media library and write it out using flowplayer (*the flowplayer and jquery js would need to be included in your template)
This goes in to a macro with three params
videoHeight
videoWidth (these allow the user to adjust for the video)
videoName - (using mediacurrent)
If you wanted instead to build up pages with many movies, you could simply set a sensible default for width and height and use a multiple media picker on a page to build up a gallery.
Dan
If you are using multiple videos on one page then you will have to be careful in regards to the id="player" as if you have the id referenced more that once then obviously it will fail the XHTML validator and flowplayer will go into one and not work correctly.
You would have to use classes and create dynamic id's so the correct video is played.
Tom
Thanks for the detailed answer, however i have forgot to mention that i am using the video embed package. Sorry to waste your time. I must admit i'm very tempted to give this a try!
thanks
Alec
is working on a reply...