How to add a field to content type for video files
navs - December 21, 2008 - 18:36
I want to be able to create a content type that is video content. I want to know if there is a way to add a field to allow user to upload a swf file
Please help
Thanks
Navs

First, the easy way. You
First, the easy way.
You can embed video from many sources (youtube, blip, etc) with a combination of CCK & Embedded Media Field modules.
http://drupal.org/project/cck
http://drupal.org/project/emfield
If instead you need to upload your own videos there are a lot of ways to do this. I've used FlashVideo (http://drupal.org/project/flashvideo) in the past but I like where MediaMover is headed. (http://drupal.org/project/media_mover)
My current choice for this
My current choice for this are the http://drupal.org/project/swftools and http://drupal.org/project/flashnode modules. As a bonus, they also handle mp3s.
Another option is to use filefield or upload to upload the file then just theme the node.tpl.php file to embed something like the flowplayer.org gpl player upon node view.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
I'd like to be able to allow
I'd like to be able to allow users to submit videos, in any video format, for instance in avi, mpeg etc and the administrator will take that and convert it into a youtube like video playback using a web video software and publish it after that. This way users can view videos, and comment and rate them.
To begin with I used the emfield but nothing is showing up when I embed the code in file "textfield"
I uploaded the swf file to sites/default/files folder and added the following code in the file textfield:
<embed src="sites/default/files/mwplayer.swf"width="400"
height="250" align="middle" quality="high" name="player"
allowScriptAccess="sameDomain" allowFullScreen="true"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
What should I do?
In that case take a look at
In that case take a look at the http://drupal.org/project/flashvideo, http://drupal.org/project/op_video, and http://drupal.org/project/media_mover modules.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz