I have a use case where I have multiple videos that can be uploaded to one field, so using the embed code by nid isn't ideal.
I'm trying to work out a solution, if I find one I'll post it here.
I have a use case where I have multiple videos that can be uploaded to one field, so using the embed code by nid isn't ideal.
I'm trying to work out a solution, if I find one I'll post it here.
Comments
Comment #1
dlumberg commentedNot really the drupal way but it was the quickest way to what I needed to accomplish.
Comment #2
brycefisherfleig commentedThanks for your contribution, dlumberg! Could you provide a more detailed explanation of how to reproduce this issue? How many videos are you uploading to video field? What embed code are you using?
I'd be willing to look at this or accept a patch once I have more information about this issue.
Comment #3
dlumberg commentedWe have fields that include up to 3 different videos that are shown in a slideshow that pops up a colorbox. Due to issues with IE8 we had to use an Iframe to display the videos inside the colorbox. We also had a use case where we needed to display the videos on another site.
The native method of embedding videos through the video module is to call the embed code using /video/embed/[EntityID]/[EntityTYPE]/[Field_Name]/[Width]/[Height]
As you can see there's no argument for the Delta on the field, this creates the problem where you can only embed the first video in a field: field_video['und'][0] and not field_video['und'][1] etc...
Comment #4
brycefisherfleig commentedAwesome! Thanks, dlumberg. Looks like I should add a delta parameter to video_file_embed with a default value of 0. That should give themers and developers a bit more flexibility without introducing a lot more complexity.
Clever solution, by the way!
Comment #5
hypertext200