Apparently, when a user is not given permission to select any encoding profiles, or if they select none, instead of the default encoding method being used, the file just vanishes.
When accepting UGC, a site admin may want to be the one who selects how video is encoded, and not present the user with choices.
So I set up default encoding profiles, and removed permissions for regular users to be able to use them, since that seemed the only way (without writing a hook_form_alter) to remove presentation of choices. I assumed that the default options would be used instead.
But all that seems to happen is that the node on the Drupal side just says "Your video is still processing. Once it is complete it will be displayed here." forever, and nothing ever goes into the cdn2_videos table.
That's not too good.
A workaround, of course, would be for the admin to give the user permission to use those encoding profiles, and have a developer write a module to alter the form so that the options are hidden. But that's _really_ kind of kloodgy.
Wait. That _would_ be a workaround, except that the form-generating function doesn't seem to use Drupal's forms API - it's hard-coded.
So the workaround would be to hack the module itself, which is not good practice. That's provided, of course, that whatever's receiving the form on the CDN side will even accept hidden fields instead of checkboxes.
Comments
Comment #1
kylebrowning commentedIs this still an issue?
Comment #2
IncrediblyKenzi commentedNot an issue if users are given proper access.. Ideally if they don't have access to transcode to any format then they should also not have access to post a node of that type (I don't see a use case for having it any other way).