Needs work
Project:
Flexinode
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2004 at 20:57 UTC
Updated:
13 Dec 2006 at 22:06 UTC
Jump to comment: Most recent file
Just as mp3 it could use the getid3 to fetch movie dimensions and meta-data. I will play around with the mp3 field and try to understand how it works. Maybe I can code this feature myself.
| Comment | File | Size | Author |
|---|---|---|---|
| #21 | field_mov.inc_1.txt | 10.73 KB | heckp |
| #15 | field_mov.inc_0.txt | 10.71 KB | 9802008 |
| #14 | field_mov.inc.txt | 11.7 KB | 9802008 |
| #11 | field_mov.inc.diff | 3.51 KB | Dan Check@drupal.org |
| #10 | field_mov_0.inc | 7.68 KB | Dan Check@drupal.org |
Comments
Comment #1
(not verified) commentedComment #2
Uwe Hermann commentedReopening, I think this was closed erroneously, because the default status for new issues is "fixed" (which it shouldn't).
Comment #3
Uwe Hermann commentedComment #4
harald.walker commentedI have been working on the Quicktime movie implemenation this weekend and it is working in most parts (adding and displaying works!). My biggest problem is now to update properties. The existing extensions (mp3, images) only use the upload form field but no editable fields (like tag, alt-text,...). If you know more about flexnode and module development, please have a look at the attachment.
Comment #5
harald.walker commentednotes:
the getid3 library is currently required. Is is used to retrieve the dimensions and tags from the Quicktime movie. But there is a size limit in php, so don't try to import your 20MB music video!
to-do:
- check for getid3
- do not use getid3 if the file is larger than X
- add common tag fields and dimensions in the form for manual data entry
- enable user to update field data of an existing node
I attached a small sample QT movie for those who would like to experiment with this.
Comment #6
(not verified) commentedany updates on this? I tried it but it was problematic...
Comment #7
(not verified) commentedi add this .inc to the modules/flexinode dir and whenever i load my site, i get this error:
Parse error: parse error, unexpected ')' in /path/to/site/modules/flexinode/field_mov.inc on line 44
Comment #8
(not verified) commentedi adjusted the parse errors to work.
then, i noticed images in posts (image nodes) could not appear... and when i updated an image node, i got this error:
| |
warning: Cannot modify header information - headers already sent by (output started at /path/to/site/modules/flexinode/field_mov.inc:1) in /path/to/site/includes/common.inc on line 155.
Comment #9
harald.walker commentedI will start working on this again soon and make it compatible with the 4.5.1. release.
Anonymous: please don't stay 'anonymous'. It is much nicer to talk to real people.
Comment #10
Dan Check@drupal.org commentedHi,
I've cleaned up the module a little bit so that the controller / loop / autoplay sections now function properly, and are editable. The form also remembers current values. There's an outstanding issue in that the controller / loop / autoplay checkboxes cannot be edited unless you upload a new file.
Also, the width and height were reversed on the movie (width = x; height = y), and the height is now adjusted to be 15 pixels taller if the controller is enabled.
Hope this helps.
Dan
Comment #11
Dan Check@drupal.org commented...and here's the diff
Comment #12
seaneffel commentedI'm looking all over the place for a way to embed video in a node. I tried Flexinode and attemped to add this QuickTime include.
Running that unmodified Flexinode module works great. However, when I add this field_mov.inc to the flexinode folder then the site fails to load (blank screen of death, very scary).
I have not attemped to patch/diff/etc anything, this is vocabulary that I do not understand. I'll just make a plea for the author to please repost a current modded .inc file for us to try out. Maybe there are changes needed since 4.6?
Comment #13
ica commentedfield_mov.inc plugin does not work with versin 4.7 of flexinode mode
i get this message
Fatal error: Call to undefined function: form_file() in /home/dp/modules/flexinode/contrib/field_mov.inc on line 18
and that is
-18
$output .= form_file(t($field->label), $fieldname, 40, ($node->$fieldname ? t('"%filename" has been uploaded. If you upload another file, the current file will be replaced.', array('%filename' => $node->$fieldname->filename)) : '') .' '. t($field->description), $field->required);
resaon?
any update on the field_mov.inc on the sight?
Comment #14
9802008 commentedHi Guys
Thanks to everyone who has worked on this script - very handy to have. Thanks also for some of the code from the video module. I have started upgrading the script to 4.7.0 . It only supports mpg and quick time at the moment. Also the size and state of the player are fixed. Redundant code is still in the script.
Please note that the script has not been tested properly. I know of two bugs:
1. Only one MOV field can be added per flexinode.
2. Script only works on some servers (? no idea why). The video is uploaded to the tmp folder correctly, however it is never moved to 'files'.
Comment #15
9802008 commentedFound the bug with the video not uploading correctly on some servers.
file_save_uploadin _validate function should befile_check_uploadAlso added support for some more video types.
Comment #16
maastrix commentedGreat work guys! Looking forward to see more of this patch.. Can someone please tell me how I can add the video code in my node-flexinode template?
Hope this is possible...
Comment #17
maastrix commentedBTW, You missed a DIV closing tag in the following function:
I added the last line so my page didn't get messed up.
Comment #18
maastrix commentedWhat is the code to show the video? I would like to make a template for my video pages.
Comment #19
ahoeben commentedComment #20
maastrix commentedComment #21
heckp commentedthe file with the little change mentioned above
Comment #22
schwa commentedUsing the version from #27 on a fresh install of 4.7.4, I'm getting infinite loops where the video is not being uploaded - submit or preview returns to a screen with the video file upload field empty again and the red 'field is required' text since I've designated that field required for the node type. So, video simply isn't writing/loading. Version from #27 does include the file_check_upload change mentioned above.
Note: no 'upload' button appears, simply the browse button. Normal behavior?
Using Mac Firefox and a new vanilla install with pushbutton theme in a standard LAMP environment. Creating content as user=1 (admin). No other media modules enabled. Files directory has 777 chmod.
Help?
Comment #23
schwa commentedMake that "using the version from comment #21", thanks.