Hi

Just uploaded to cvs my first drupal module.
Is a module to embed video into drupal.

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/video/

Currently it supports only quicktime videos.

Hope you like it.

Fabio

Comments

seaneffel’s picture

I'm not sure if this is a QuickTime issue or a problem with your code, but I seem to have problems witht the playback and download of files.

Take a look at http://www.cctvcambridge.org/drupal/?q=node/87.

I have linked to the right file, and entered in the proper information, and yet when I attempt to play the linked video I get an erro (the blue Q with a question mark.)

Linking directly to the movie file works in browsers.

Additionally, it would be nice to embed a poster frame of the movie as a link in the block. Just a suggestion (and a feature I would love to have).

Sean
Cambridge Community Television
http://www.cctvcambridge.org
http://www.cctvcambridge.org/drupal (beta site)

seaneffel’s picture

Actually, I think it might be the way this module is handling the links/paths. I noticed when attempting to download the quicktime file I was sent to this address when the file actually exists ">here

I'll look at the code and see what I can see, but I am not a native PHP speaker.

Sean
Cambridge Community Television
http://www.cctvcambridge.org
http://www.cctvcambridge.org/drupal (beta site)

fax8’s picture

Hi guys!

Thank you to report this problem.

There was a problem with the generation of the video URL
wich made usable only video saved into drupal folder.

This should work now.

This is were to get the bugfree video.module file:
click here

seaneffel’s picture

Thanks very much for making such a great module. That update did a great job.

Can I make some suggestions for improving this module?

1. Adding an option to insert an image file as a sample movie frame would be excellent. Users would have to specify the image file and the movie file. Also make the displayed image a link to play the movie. Maybe also limit the height and width of the image, see number 2.

2. Adding a few administration options to limit the size of the movie or image file. Also blocking users from linking certain types of files (maybe I don't want .pict images on the page, but .jpg and .gif is ok.)

3. Of course, like you mentioned, someday adding other movie types such as Windows Media or Real or Divx.

Thanks so much, and please use me as a test site if you wish.

Sean
Cambridge Community Television
http://www.cctvcambridge.org
http://www.cctvcambridge.org/drupal (beta site)

seaneffel’s picture

I also see a problem with the Latest Video's block. It seems to be displaying each entry twice. Please look here for an example. http://www.cctvcambridge.org/drupal/

I'm pointing these things out not to harass you, but rather because I think you did some great work so far and I hope you continue to improve it!

Thanks.

Sean
Cambridge Community Television
http://www.cctvcambridge.org
http://www.cctvcambridge.org/drupal (beta site)

fax8’s picture

Ok..

thanks to David Norman this should be ok now.
Here is the corrected version.

I'm pointing these things out not to harass you, but rather because I think you did some great work so far and I hope you continue to improve it!

Don't worry...
Only with users feedback we can improve this module!

Thank you to let me show this bug!

fax8’s picture

Lot of news for video.module!

We added Real, Windows Media and Flash support!
And solved some bug/strange things.

Check it out on cvs!

fax8’s picture

Lot of news for video.module!

We added Real, Windows Media and Flash support!
And solved some bug/strange things.

Check it out on cvs!

fax8’s picture

Lot of news for video.module!

We added Real, Windows Media and Flash support!
And solved some bug/strange things.

Check it out on cvs!

seaneffel’s picture

Can you please post the Flash file that is being called here in your module? I cannot find "FLVPlayer_ProgressiveLoader.swf". Is that a standard module from somwhere?

Thanks!

Sean
Cambridge Community Television
http://www.cctvcambridge.org

fax8’s picture

You can get Flash Files from here.

In few days this files will be useless becouse flash video support
will be rewritten to use flowplayer as player.

garm’s picture

a nice choice there (Flow) will make things easier to implement and customize for most people, even tho i´ll personaly use a completely custom made flv player for this module.

Nice work so far with this module

jivyb’s picture

Am I missing something? I didn't see them in the list of files on the cvs--http://cvs.drupal.org/viewcvs/drupal/contributions/modules/video/Attic/

fax8’s picture

The flash files reported some comments above where only needed
long time ago. Now flowplayer is used for flv playing.
Have a look at FILE_TYPES.txt for details.

------------
www.varesano.net - Fabio Varesano Personal Homepage

seaneffel’s picture

I have two requests which would make this a really excellent module!

1. Please add a field to enter a screenshot image, so that there is a picture on the page even before you click play. Maybe it could be possible to include that image as part of the "Latest" or "Top Video" headlines. That would be hot.

2. A gallery to see all movies.

If those two features were added, this would be my dream module.

Thanks so much for your work so far!

Sean
Cambridge Community Television
http://www.cctvcambridge.org

fax8’s picture

Screenshot image will not be included into this module.
I want to create something like "screenshot.module" which
can add small images to the left (or right) of node body.

I want to do this couse this could be
useful for other modules too (e.g. ecommerce, book review, recipes..)

A centralized location to see all video nodes is available on cvs.
You can reach it on "?q=video"

Bye.

s.ample’s picture

how can i add categories (taxonomy) to the video module like the image.module?

thanks for your module. works great for me
marc

http://www.audionewstalk.com

fax8’s picture

for the moment video.module doesn't offer
an integrated taxonomy browsing function (like image.module).

The only way you could do this is using generic taxonomy
browsing modules such as article.module or directory.module (cvs).

s.ample’s picture

thanks for your answer a for the FLV Player Hint some Posts above :-)

http://www.audionewstalk.com
"...when the mothership comes, only those who have mastered NI-Reaktor will be invited back to the home world"

fax8’s picture

Thanks to LukeLast
we added a lot of new features to video.module.

New changes are availble on cvs.
Please help with testing and bug reports.

Note: Current cvs version is for drupal cvs (next 4.7).

Fabio

----
My websites: adrenalinteam.it

seaneffel’s picture

What are the possibilities that video.module can be made to produce RSS feeds that would work for publishing DTV formed feeds?

http://participatoryculture.org/download.php

and

http://participatoryculture.org/feeds.php

fax8’s picture

I didn't know the DTV formed feeds before.
If I understood It's an RSS based feed designed to
be used with video streams.

So I can add the DVT to my player and then get what it is
playing.
Right?

We don't have plans to support it for the moment but
using drupal well designed rss apis implementing this
should not be hard.

Do you have more informations about this format?

----
My websites: adrenalinteam.it - windsmpeg.tk

seaneffel’s picture

I think my question was confusing, sorry. My real question is this: Can video.module publish nodes that can send RSS to DTV? I want to use video.module to create DTV channels that other people can see using the DTV viewer. There is a good description of the requirements for creating DTV RSS, they involve RSS 2.0 and some Yahoo extentions. That full description is here:

http://participatoryculture.org/feeds.php

I think this is an excellent opportunity to edit your video.module so that websites can publish videos directly to DTV "out of the box". If I had any php skills then I would surely offer to help, but maybe there is some other way I can help too.

Thanks!

seaneffel’s picture

fax8’s picture

I readed more about DTV.
If I'm right DTV works like this:
(Let's image to do all by hands, without using broadcast machine)

a web admin put a video on a web server
to an address (e.g. http://www.host.com/video/myvid.mov)

then a RSS feed for the video have to be created
at the address http://www.host.com/video/feed.xml
maybe something like this:


<rss version="2.0">
<channel>
<title>My Movie Site</title>
<link>http://www.host.com</link>
<description>This is my video site.</description>
....
<item>
<title>MyMovie</title>
<link>http://www.foo.com/item1.htm</link>
....
<media:content url="http://www.host.com/video/myvid.mov" fileSize="12216320" type="video/quicktime" expression="sample"/>
<creativeCommons:license>http://www.creativecommons.org/licenses/by-nc/1.0</creativeCommons:license>
<media:adult>false</media:adult>
</item>
</channel>
</rss>

Then the admin go to the publishing page and add his channel (http://www.host.com/video/feed.xml) to the list.

So the only thing that video.module doesn't have is the automatic
creation of a xml file wich contains info on video nodes.

But I think that this feature should't be harder to implement.

----
My websites: adrenalinteam.it - windsmpeg.tk

fax8’s picture

thanks to Uwe Hermann a patch for DTV support has been created for video.module on cvs.
Please test this and report your feedback.

----
My websites adrenalinteam.it - windsmpeg.tk - falcoarredamenti.it

seaneffel’s picture

Hi guys,

I've had this problem before, I don't have a reliable method for patching files (Mac user, haha). Can you post a patched version of video.module for Drupal 4.6 and down?

Sean
Cambridge Community Television
http://www.cctvcambridge.org

fax8’s picture

I think that should be a way to use patch on mac...

However you can ask for support on the patch page
or ask Uwe for a 4.6 DTV patched video.module file.

Fabio

----
My websites adrenalinteam.it - windsmpeg.tk - falcoarredamenti.it

seaneffel’s picture

I've sorted out my list update issues, thanks to Uwe for posting the full patched version for 4.6. I've got it up and running and looks pretty good.

Now, and excuse my ignorance, what should the RSS syndication be? I've tried http://www.cctvcambridge.org/video and /video/feed and lots of other links but I can't find the proper RSS link to announce. Can anyone shed some light for me?

Also, on the thread about improvements for the 4.7 piece, I made some suggestions for building in RSS for iTunes VOD, DTV of course, and FireAnt.

Thanks!

Sean - http://www.cctvcambridge.org

fax8’s picture

Thank you sean for rewrite this here...

DTV RSS syntax has been merged with drupal standard feeds.
Then every feed enabled on your site should be ready for DTV.

I suggest creating a taxonomy term for video nodes and then
using the taxonomy feed.

Hope this helps you :-)
Good Work!

Fabio

seaneffel’s picture

I'm sorry to be a pest, but I just don't understand how taxonomy works. I think I get the princible, but I don't know how to make taxonomy work with video.module to create a DTV appropriate feed. Are there some clear instructions published on how to create taxonomy terms in a way that makes sense?

fax8’s picture

You can start reading from
http://drupal.org/handbook/modules/taxonomy

then for the dtv support you should be interested in:
http://drupal.org/node/22273

this lines are important for you:

In addition to displaying Drupal nodes by category on site, Drupal has category specific RSS feeds for other sites to access your site content. See how the URL format for the RSS feed is very similar to the Taxonomy URL:

taxonomy/term/1+2/0/feed

paul o brien’s picture

No joy with the original module. Installed as in INSTALL.txt

Now using the latest module from CVS, but when I click on admin/settings/video I get a blank page. Is there more to using the updated module. Permssions set to 777.

In Create content - video is in the list on the block, but video is missing from the created content page itself.

Paul

kerrizor’s picture

My understanding is that the latest version in CVS is built to work with Drupal-CVS, and does NOT work with 4.6.

I can "confirm" that only by saying I've got drupal-CVS installed and 1.14 of video.module and all seems well.

LukeLast’s picture

That's correct, version 1.9+ of video.module only work with drupal CVS, AKA 4.7.

ica’s picture

Slightly off topic but have you seen the New Yahoo! Player on the News Video section?
Looking to the code ..its on javascript - not sure it can be hacked :)
nice UI and nav..looking good

http://news.yahoo.com/video

http://cosmos.bcst.yahoo.com/scp_v2/viewer/index.php?pid=16012&rn=49750&...

heather’s picture

you probably know about this... but just in case: you can submit your video feeds to http://mefeedia.com/add.php

it's rather like a flickr for video.

adrianamonica’s picture

I uploaded video folder with newest video.module and extras into modules directory and enabled the module.

When I go to create content and click on video I see the same page one sees when you first click on create content except at the top instead of it saying "create content" it now says "video" but I only see the same options from create content:

PAGE
POLL
STORY

Is there a step I'm missing?

fax8’s picture

current video.module cvs version will work only with
drupal cvs (pre 4.7).
So, if you will need drupal cvs to use the newest video.module .

Please note that video.module cvs version is a "Work in progress"
so yuo should use it only for testing and development.
Using on a production environment is not good idea.

Fabio

seaneffel’s picture

I just wanted to share this link with you, I am using Drupal and Video.module to handle our electronic coverage of the city elections. There are two races here in Cambridge, one for City Council and one for School Committee. Our television coverage of these elections is pretty good but with the recent upgrade to drupal and this great module we manage to serve our community that much better. Thanks a lot!

http://www.cctvcambridge.org/candidates

Sean
Cambridge Community Television

fax8’s picture

Thank you Sean!

I hope to be able to improve this module more and more and that
user will be happy to use it.

Good work!

seaneffel’s picture

I'm experiencing some problems lately with video.module - or I think its this module anyway.

Some visitors have emailed to tell me that their browsers crash when viewing the video files, I have had it happen to me a few times too. I'm using quicktime as a video codec and playback, it seems to crash in Safari and IE (mac and pc), though viewing movies not posted with video.module does not cause problems.

Any idea what might be causing this?

Linkage: http://www.cctvcambridge.org/candidates

LukeLast’s picture

The videos on your site play fine for me in Firefox 1.5 and IE 6sp2 with quicktime 7.0.3. I've had some quicktime videos crash my browser before but I didn't give it much thought because it wasn't a drupal site and quicktime has it's problems. If you can find a system that this continuously happens on then post a bug report in the video.module issues and we'll try to figure it out.

Nack’s picture

Hi,
I also posted in another thread, but I think posting here maybe more direct.

I tried to install video.module cvs with drupal cvs. I gave me an error
Fatal error: Call to undefined function: form_textfield() in /home/up4fun/public_html/modules/video.module on line 258

It might be something easy, but I couldn't figure out at all.

Please help!
Thank you,

LukeLast’s picture

The video module isn't updated to the new forms api yet. I'm working on it now so give it another day or so, the next version should work.

Nack’s picture

Oh thanks LukeLast. I was waiting for someone to answer for like ever. You made me feel better.

The thing is it's not just video module. Modules like filemanager and form_mail gave the same error message.

Thanks again and I'm waiting for the update :)

~nack

LukeLast’s picture

Module is now updated with the new forms api to work with CVS HEAD. http://drupal.org/node/35914

And the checkbox bug has been fixed. http://drupal.org/node/35816

Nack’s picture

Thank you LukeLast...

I've been waiting for it :)

twentyfive8’s picture

How do we copy this video module folder here on this site, to the /modules directory? As you can tell, I'm a novice! Please, step by step?

I know it's simple -- I just don't know how to do it! Thanks!

LukeLast’s picture

For a question like this it would be better if you could email me via my contact form.

http://drupal.org/user/30151/contact

Thanks.

jwilde’s picture

This look interesting. http://www.videoegg.com I snagged some info from the front of the site.

"Video Publishing Over Easy

It means internet video publishing as simple as it ought to be–like posting a photo or frying an egg.

VideoEgg, Inc. is an innovative, venture-backed company committed to making online video posting truly easy. All across the web we see everyday internet users struggling with a complex mix of video formats, editing software, and players when they try to put video online. We're working to change all that.

Our solution, the VideoEgg Publisher, will revolutionize the way videos are captured, edited, and published - removing technical complexity and empowering communities across the web with easy video publishing tools. "

It looks like a plug in.

TypePad (MT) and VideoEgg

VideoEgg and Six Apart have partnered to make it truly simple to post video to your TypePad blog. Login and try it out!

mudanoman’s picture

Interesting. Did you end up using Videoegg? Anyone have experience with the integrated publisher solution?

ByteDreams’s picture

I searched this site for videoegg as well. they offer an integration kit and I'm wondering if I may have missed a more recent posting about videoegg, and possibly about integrating into a drupal powered site...

ByteDreams

seaneffel’s picture

Hi folks,

Thanks fax8 for the help earlier, that taxonomy help was great.

I've nearly got this DTV feed lined up. I have made it so far as to actually have a channel published and available in the DTV aggregator.

My problem is that now when I post a new video I get an error in drupal that says video type not supported. These are .mov Quicktime files. I do not have problems with the previously created video nodes, only with new ones. If you want to play with it, please email me and I'll give you a special account so you can see for yourself.

You can see this issue right here: http://www.cctvcambridge.org/node/206

If you want to try the DTV viewer, download from http://www.dtvmac.com and enter this new channel (its a little ugly link right now): http://www.cctvcambridge.org/taxonomy/term/17/0/feed

fax8’s picture

please check video path you submit...
Seems that you didn't use right path....

You can copy the path used on your videos that works...

If you still have problem feel free to mail me with my
contact form and I'll try...

Fabio

fax8’s picture

I want to try the DTV player but I don't have any MAC machine
and I still not able to use DTV on my Linux/Win pc ...

kerrizor’s picture

Funny, I'm downloading DTV as I type; my project this weekend is to get broadbandsports.com's rss feed set up for DTV...

fax8’s picture

You can see current video.module cvs implementation.
We have DTV feed working.

Fabio

seaneffel’s picture

AND the feed works for iTunes and other meda RSS aggregators.

Sean
Cambridge Community Television
http://www.cctvcambridge.org

seaneffel’s picture

I've tested very well and it seems to me that video.module has some error when creating new nodes. I'm trying to create a node referencing this .mov file:

http://www.cctvcambridge.org/media/video/chyme/qt/liat.mov

at

http://www.cctvcambridge.org/node/205

And after I enter the information properly in the create content window and click submit, I am not able to play the video. The message appears like this:

"Video type not supported"

When I go back into the node to edit the link I find that the video path field is blank and so is the x and y size, play time, etc. The description is still there.

This is only happening with new videos since I updated to the DTV enabled version of video.module. Video nodes I have created in the past are ok, I can even edit them to stick the DTV taxonomy tag on them, and they play back just great. For example:

http://www.cctvcambridge.org/number1

fax8, I've created an account for you to experiment and see this problem yourself. I'll email the details through your contact page. Also, I have an old iMac with the newest OS here in my basement in Boston that I am willing to donate to a good cause, so if you want it we can work out shipping details (I have a funny feeling that you are in Italy though and it might be expensive). Just a thought. Thanks!

Sean

PS. I should also note that video.module does not let me reference the same video more than once so it is hard to duplicate a working node for testing purposes.

fax8’s picture

I'm really happy for your offer in contribute a mac for the development
of this module. You really understood how open-source should work.

Yes it will be really useful having a mac for the development tests.
But I want to discuss here who will be the people which will get
the mac you are offering.

Actually I'm not the only developer of the video module and I don't
think to be more important than Luke Last who is contributing a lot with
the development of this module.

So please Luke comment on this...

About your issues...
The account you sent is "normal" I can't modify or submit any
contents... so not able to help you.

Moreover I thinked about your problems and finally there should
be a problem in the upgrade from 4.6 version to the cvs backport.
Did you follow the instructions contained in the uwe sandbox?
http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/uwe/

There is a README.txt were you can find information on the upgrade.

Thank you again

Fabio

seaneffel’s picture

I fixed the user account on cctvcambridge.org so you can test the module. I can make you a full admin if you want to look at everything but my boss might not be comfortable with that! Sorry about the mix up, I need to pay more attention to details from now on. Also, I did follow the directions in the Uwe sandbox, exactly, and I don't think I ran into errors or anything - I thought it was going smoothly until this recent problem.

Let me also state that this is not a new iMac computer. It is a 1999-2000 iMac with a damaged CD drive. It is running a new operating system, OSX 10.3.9, and would be a nice platform for testing mac web applications. Lots of mac users are default browsing in Safari which I have known to cause occasional compatibility problems with drupal stuff. Obviously you guys would know how to get around the damaged CD drive with a peripheral drive or by networking.

I'm happy to box it up and send it as a contribution, I can't afford the shipping myself so maybe the recipient would cover that cost. Fabio is in Italy, I think, and I don't know where Luke is, but you guys and anyone else involved can discuss and I'll do my part.

Sean
Cambridge Community Television
http://www.cctvcambridge.org

fax8’s picture

there's something strange appening into the submit process..

I tryed the procedure of upgrading from 4.6 version to cvs as
explained into readme.txt from uwe and all went fine.

I think that there is something strange appening on your site..
maybe a conflict with other modules or a specific configuration...

I will need a dump of your db and a copy of your site folder to troubleshoot this issue...
(I will not be able to read any user passwords - there are hashed)

fax8’s picture

Finally I found a solution...
the video table schema in the db dump you sent me was not
correct.. Maybe you make some errors in the upgrading process.

Here running this sql instructions fixed the problem:

ALTER TABLE `video` CHANGE `clicks` `download_counter` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `video` CHANGE `audio_channels` `audio_channels` ENUM( '', '5.1', 'stereo', 'mono' ) NULL DEFAULT NULL;
ALTER TABLE video ADD play_counter int(10) unsigned NOT NULL default '0';
ALTER TABLE video ADD download_folder varchar(255) NULL default NULL;
ALTER TABLE video ADD disable_multidownload tinyint(1) unsigned NOT NULL default '0';
ALTER TABLE video ADD use_play_folder tinyint(1) unsigned NOT NULL default '0';
ALTER TABLE video ADD custom_field_1 varchar(255) NULL default NULL;
ALTER TABLE video ADD custom_field_2 varchar(255) NULL default NULL;
ALTER TABLE video ADD custom_field_3 varchar(255) NULL default NULL;
ALTER TABLE video ADD custom_field_4 varchar(255) NULL default NULL;
ALTER TABLE video ADD custom_field_5 text NULL default NULL;
ALTER TABLE video ADD custom_field_6 text NULL default NULL;

Please remember to BACKUP YOUR DATABASE everytime you
do changes on it's schema.

Moreover the drupal log reported this error with the INSERT instruction
and it was marked as a critical error. So for the next time please
watch your drupal log for help us in throubleshooting...

Hope that this will fix you problem.

Fabio

fax8’s picture

you can see your logs on the administer page while logged as
administrator.

Fabio

seaneffel’s picture

You fixed it, thanks very much Fabio! The error I was experiencing with submitting new videos has been repaired. Take a look at our new article and see how we are putting video.module to use now that it works so well with RSS. We are publishing to media RSS sources like DTV, iTunes, iPodderX, etc.

I have some suggestions for module improvements in the future release, but I have lost the link to the thread where I can post them.

Thanks again for your great work.

Sean
Cambridge Community Television
http://www.cctvcambridge.org

fax8’s picture

perfect sean.

The link to that post is
http://drupal.org/node/38313

seaneffel’s picture

Drupal 4.7 has a fix for its RSS issues in some aggregators. You can read more here: http://drupal.org/node/41097

Sean
Cambridge Community Television
http://www.cctvcambridge.org

seaneffel’s picture

I've just added some barbaric code to the video.module that will enable MPEG4 and .m4v (itunes/ipod video codec) playback using QuickTime. Now we are posting media nodes for download and viewing on your new video ipod. I would like to see the specs for the Sony PSP and see if they match too.

I basically added .mp4 and .m4v to the file lists, I have tested them with the appropriate files. I have file for Fabio or anyone else to look at and experiment with and approve if you like it. Someone should give it a good inspection since I'm not really a programmer.

Test file: http://www.cctvcambridge.org/videomodule.zip

insomoz’s picture

nice idea, but with version of mysql will your edited version that allows ipod movies work with.

seaneffel’s picture

I might be the wrong person to ask, but the changes I made only effect which third party application handles the new media types, and quicktime support is already built in to this video.module. So I believe that whatever mysql version that video.module is compatible with should be the same for my changes.

However, I still don't know whether the authors on this file like the code that I made. Maybe we should wait until we hear from them.

Sean
Cambridge Community Television
http://www.cctvcambridge.org

fax8’s picture

Seems that the only function you changed is video_play .
You added lines for mv4 and mp4 . This looks reasonable to me.

But you can check the latest cvs implementation on
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/video/
and see how we implemented it (it's not really different from your).

In particular:

      case 'mov':
      case 'mp4':
      case '3gp':
        print theme('video_play_quicktime', $node);
        break;

If you need also support for mv4 just add a line "case 'mv4':" just after "case 'mv4':" .
You might need to read http://it.php.net/manual/en/control-structures.switch.php

Hope this helps.

Fabio

dtmatthes’s picture

Are you using the video.mysql for the 4.6 video.module?

seaneffel’s picture

Hi guys,

The owner of this thread has an interesting question:

http://drupal.org/node/49631

He would like the video.module to skip a step in the current viewing process so that one click from a front page will take visitors directly to the node/play page, not the full node with text, etc.

Can this be something incorporated into the custom settings of the module so users could decide how they want video.module to handle actions like this?

Sean
Cambridge Community Television
http://www.cctvcambridge.org

thejerk’s picture

Module looks good just learning how to get it to look the way I want.

1. I prefer not to have all those options above the video. Is there a way to get rid of them and just have it play normally like most other video sites? A simple version of this page for example: http://www.dumpalink.com/c/Movies

I would like to know how to remove those drupal style menu buttons from above the video. Is there a way to omit them and just use the video content load and start playing after a person hits the link? Or even just getting rid of the menu items above the player and instead the user can just use the play, stop and other controls from the player that opens in the browser?

2. How can I put a thumbnail link on the frontpage that links to the video, instead of a blog style post?

Thank you!

thejerk’s picture

Module looks good just learning how to get it to look the way I want.

1. I prefer not to have all those options above the video. Is there a way to get rid of them and just have it play normally like most other video sites? A simple version of this page for example: http://www.dumpalink.com/c/Movies

I would like to know how to remove those drupal style menu buttons from above the video. Is there a way to omit them and just use the video content load and start playing after a person hits the link? Or even just getting rid of the menu items above the player and instead the user can just use the play, stop and other controls from the player that opens in the browser?

2. How can I put a thumbnail link on the frontpage that links to the video, instead of a blog style post?

Thank you!

fax8’s picture

I used to do this in 4.6 by using a sort of hack...

select php input, then use this as body:


insert here content of teaser

header('Location: ' . url('node/' . arg(1) . '/play'));

Calling header() will let you redirect to node/X/play
everytime node is fully displayed.

But seems that in 4.7 there are some problems:
http://drupal.org/node/49926

and make this unusable.

Try this other solution:
change this lines:

if ($teaser == FALSE) {
    if ($node->serial_data['image_view'] and variable_get('video_image', 0)) {
      $node->body = theme('video_image_body', $node) . $node->body;
    }

to:

if ($teaser == FALSE) {
    header('Location: ' . url('node/' . arg(1) . '/play'));
    if ($node->serial_data['image_view'] and variable_get('video_image', 0)) {
      $node->body = theme('video_image_body', $node) . $node->body;
    }

Quick and dirty... but a solution.

Fabio

------------
www.varesano.net - Fabio Varesano Personal Homepage

kerrizor’s picture

...just grab the code that is executed in the play tab and put it into the default page display code.

thejerk’s picture

How do I do this? Within the module itself? What code should I copy, and where should I paste it?

Sorry I'm going thru a rough learning curve here.

TinTrout’s picture

I've already created a the node-video.tpl.php and styled the overall node as I would like. However I would like to take it a step further and style specific elements within the generated $content.

Ideally, what I would like to do is contain the image thumbnail and accompanying text each in their own divs. It easy to do for this the teaser since it was already outputted as a 1 row, 2 column table in video.module. However, I'm at a lost how to do this for the View page since is the format is outputed differently.

Make any sense?

Any pointers would be greatly appreciated.

Thanks!

fax8’s picture

Sorry TinTrout... your comment is not really clear to me...
Can you please explain how what your video nodes look like?
Maybe with some css magics I can help you.

Fabio

------------
www.varesano.net - Fabio Varesano Personal Homepage

TinTrout’s picture

No problem, let me see if I can offer a better explanation.

I've discovered within the video.module code where the teaser node is outputted.

<?php
function theme_video_image_teaser($node) {
  $output = '<table border="0" cellpadding="6"><tr><td>';
  $output .= l(theme('image', $node->serial_data['image_teaser'], $node->title, $node->title, NULL, FALSE), "node/$node->nid", array(), NULL, NULL, FALSE, TRUE); //Create a link with an image in it.
  $output .= '</td><td valign="top">' . $node->teaser . '</td></tr></table>';
  return $output;
?>

Since within this code the thumbnail image and the body text are separated I can apply CSS styling to each. (In my case I also plan to drop the table and enclose each in their own div.)

I would like to apply similar styling to the full node display. Ideally I would like to enclose the full node thumbnail and the full node body text each in their own div so I can position and style them independently of each other.

Is this possible?

If you want to take a peek at what I'm trying to do:
http://www.fishfever.tv

The site is in heavy development and I still have a lot of theme work to do but it should give you a good idea of the direction I'm going.

Thanks!!
-David

fax8’s picture

I don't know what kind of styling you need... but I can't imagine some
that can't be done in the curret implementation.

But... let's try to do what you asked...
If I understood what you want change this line:

$node->body = theme('video_image_body', $node) . $node->body;

to:

$node->body = '<div class="video_image">' . theme('video_image_body', $node) . '</div><div class="video_body">' . $node->body . '</div>';

But a more clean solution should be create a node-video.tpl.php
file, override the default theme functions to output nothing, then
stile writing your html on node-video.tpl.php accessing directly to $node fields. for example $node->serial_data['image_view'] contains path to the view image.

------------
www.varesano.net - Fabio Varesano Personal Homepage

TinTrout’s picture

A big thank you, that is exactly what I needed to know. I really appreciate you taking the time to point me in the right direction.

Also, know that your time and dedication to the video module is greatly appreciated and your work has become invaluable to many.

Thank you!
-David

bikerjake’s picture

fishfever.tv is just the layout im looking for! Is that a theme?
Man the thumbnails with description looks very nice. How is that done?

seaneffel’s picture

Hi Fabio,

There is another developer out there working up a new module for podcasting but I am not sure if he has seen video.module, or maybe your module doesn't do exactly what he needs. I thought I would try to connect you two since you seem to have the same intentions.

http://drupal.org/node/40559

Sean
Cambridge Community Television
http://www.cctvcambridge.org

dtmatthes’s picture

seanjuan: I used your modified mp4-including version of the video.module, along with the cvs version of video.mysql. I was able to successfully upload an .mp4 to the site, and submit the taxonomy feed to to iTunes, but when I try to create another video node, I get the following error message:

user error: Duplicate entry '0' for key 1
query: INSERT INTO video (nid, vidfile, size, videox, videoy, video_bitrate, audio_bitrate, audio_sampling_rate, audio_channels, playtime_seconds, disable_multidownload, download_folder, use_play_folder, custom_field_1, custom_field_2, custom_field_3, custom_field_4, custom_field_5, custom_field_6) VALUES ('144', 'files/lights.mp4', '6110794', '320', '240', '0', '0', '0', '', '182', '0', '', '0', '', '', '', '', '', '') in /home/unirunne/public_html/includes/database.mysql.inc on line 66.

warning: Cannot modify header information - headers already sent by (output started at /home/unirunne/public_html/includes/common.inc:384) in /home/unirunne/public_html/includes/common.inc on line 192.

Any ideas? Thanks!

dtmatthes
http://www.unirunner.com

dtmatthes’s picture

I found fax8's response to this issue at:

http://drupal.org/node/46463

kungfoo’s picture

It seems only the administrator (user 1) can edit video posts. The "access control" settings for video.module don't have a setting for "edit own videos" and the "administer video" function does nothing as far as I can tell. Am I doing something wrong? Please help! Using v1.37 from CVS with Drupal 4.7.2.

StevenSokulski’s picture

This has been added. Check out the CVS here:

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/video/

varr’s picture

It seems to me like the only way to download this module is to click through the entire View CVS folder structure and do a 'save link as' for each file.

Is there a faster way? Is there a zipped version I can grab somewhere?

Thanks.

varr’s picture

Ok, so I found the actual video module page at http://drupal.org/node/25274 which has a compressed version of the entire module.