Closed (fixed)
Project:
Video Upload
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Sep 2008 at 08:05 UTC
Updated:
2 Oct 2008 at 15:43 UTC
1) I want to change default width/height when the node is published (for all uploaded videos) -since I am uploading Widescreen, and YT default is 4:3
from [width="425" height="344"]
to [width="530" height="323"]
2) I need to add a few characters at the end of the embed code - default-youtube-embed-URL++my_special_code
example: http://snipurl.com/youtubewidescreen
let me know which file i need to edit to make this happen? a crude hack is fine...
please help - thanks
Comments
Comment #1
jhedstromRegarding the width/height, that should be configurable via the field settings. For the custom url additions, no need for a crude hack, simply write an overriding theme function for the video display, eg:
function phptemplate_video_upload_video($yt_id, $width = '425', $height = '355', $field = array(), $params = array(), $attributes = array()) {
...
}
and set the url to whatever your app needs. Also, you can override the width height here, but this will override the configuration options from the field settings page.
Comment #2
jhedstrom