I am using plupload to bulk upload multiple videos to one node. It's working great. The problem is, I would like to use rules to create a product for each video uploaded. Unfortunately, it seems that I cannot access this field in rules. I did bring the content type into scope. It would be very helpful to be able to reference the original, converted and thumbnail files. Thanks.

Comments

Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

I don't have much experience with rules. In 7.x-2.x-dev I changed the way the video data is loaded, so now all transcoded videos are available in the data array associated with a field.

Let's say there is a node with a field called video and it has one entry, the array would now look like:

field_video
 -> und
   -> 0
     -> fid = 123
     -> filename = original.mp4
     -> ... other file related properties
     -> playablefiles : array of all converted files
     -> thumbnail: fid of thumbnail
     -> thumbnailfile: object of thumbnail

I don't know how rules works internally, you may already be able to access these properties without further modifications to the video module. Unfortunately, I do not have time to expand the rules support of the video module.

keansmith’s picture

Thanks, I will research this and attempt to make what I need to have happen in code. Will update if I make any progress with rules.

Jorrit’s picture

Has you been able to get it to work?

keansmith’s picture

Thanks for following up. I haven't gotten it to work in rules, but do see all the properties in the $node.

The goal is to use plupload to create numerous videos at once, then use code, feed or rules to create each video as it's own separate node.

Will update this week with my solution.

keansmith’s picture

Not sure how to progress with this one.

Jorrit’s picture

Category: support » feature