Download & Extend

Porting video module for Drupal 6.x

Project:Video
Version:master
Component:Code
Category:task
Priority:normal
Assigned:heshan.lk
Status:closed (fixed)

Issue Summary

Hi,

I was wondering if there is a video module available for 6.2 yet?

Is there another module that does the same thing for 6.2?

Thanks,

Sarah

Comments

#1

Also looking forward to a D6 port.

#2

I don't see a lot of progress on this great module.
It would be really nice to see a 6.0 version soon and when is there a final 5 version?
(I'm still using a beta 5 version on a production site, and it works fine) :-)

#3

VERY interested in seeing video supported in Drupal 6.x

#4

Hi!

I'm also using this module, and longing for a D6 port too.

Sarah, there is the flashvideo module that is very similar to this one, and I think it already has a dev version to D6...

Regards,
Carlos.

#5

me too :)

#6

Is there any upgrading to Drupal 6 in progress?
This is a requirement for me to go to update my site. :-(

#7

I'm working on migrating from the video module to filefield (plus jQuery Media, based on this screencast) so that I can have an upgrade path to Drupal 6. I need help completing the video-to-filefield migration script as my coding skills are rather weak. If you want to tune in and help out I am confident this is a decent replacement for the video module:

http://drupal.org/node/298835

#8

as my coding skills are rather weak

I fear that mine is weaker. I would help but don't know how.

decent replacement for the video module

I'm looking for a long term solution. I would like to minimize the number of modules I use as it is always a lot of work to check every modules when going from a Drupal release to the next one. I started with 4.7. Going to 5 was long. Going to 6 is longer. Is Filefield will be a long term module as CCk seems to be? That is the modules I use, 27 with 15 compulsory (sic):

contenu-referencement
*********************
- Excerpt (http://drupal.org/project/excerpt)
Filebrowser (http://drupal.org/project/filebrowser)
GMap Module (http://drupal.org/project/gmap)
Google Analytics (http://drupal.org/project/google_analytics)
Internationalization (http://drupal.org/project/i18n)
Image (http://drupal.org/project/image)
Meta tags (http://drupal.org/project/nodewords)
Printer-friendly Pages (http://drupal.org/project/print)
Taxonomy Menu (http://drupal.org/project/taxonomy_menu)
Token (pour Video) (http://drupal.org/project/token)
User Protect (http://drupal.org/project/userprotect)
- Video (http://drupal.org/project/video)
Web File Manager (pas encore utilisé) (http://drupal.org/project/video)
Webform (http://drupal.org/project/webform)
? Weight (remplacé par Views?) (http://drupal.org/project/weight)
XML Sitemap (http://drupal.org/project/xmlsitemap)

admin
*****
Drupal Administration Menu
Node Clone (creation traduction videos)
- Auto locale import (inclus dans 6.x)
DB Maintenance
Database Administration (http://drupal.org/project/admin_menu)
- Image Publishing (http://drupal.org/project/image_pub)
Image Assist (http://drupal.org/project/img_assist)
Translation template extractor
TinyMCE WYSIWYG Editor (http://drupal.org/project/tinymce)
- Update Status (inclus dans 6.x)
Views (pour l'instant)

#9

We should move this discussion to filefield but here are my quick thoughts.

One of the troubles with the video module is that it does so many things that its actually very difficult to maintain and port upwards. A good trend to follow is making smaller modules that do more narrow tasks and using combinations of narrow modules to get jobs done. Even though there are more modules installed on your site they are each fantastically simpler to upgrade.

Filefield has a narrow scope, it just handles files, but it does it really really well. Once you get file management secure, you can choose your playback module of choice. The author of filefield is also a propellant factor in getting the file hook into Drupal core, so I think this one is around to stay.

#10

Title:Video module for Drupal 6.2» Porting video module for Drupal 6.x
Component:Miscellaneous» Code
Category:support request» task

#11

Status:active» needs review

Here is my first swing at a drupal 6 port.

AttachmentSize
video-6.x.patch 155.49 KB

#12

Are you going to make 5 an official release first? Or do you envision that happening at the same time?

#13

Could the Deadwood module port the module successfully?

#14

@scarer

I used deadwood to get a start on things, but there was still a lot of work to get the patch working that I posted. Please test it and let me know.

#15

hey vhmauery

i applied the patch and it still saying the module is incompatible with drupal 6.8]

i'll have a look and see if i can see what's wrong.

#16

I think in the info files the data is not correctly beign written i.e. not changing the moduel to drupal 6 successfully.

#17

Add this line to the .info file:

core = 6.x

That will make this error go away.

#18

I have CVS access if this needs to be committed. I can request access to this project. Other than that, I will try the patch on one of my sites.

#19

subscribing

#20

Okay. I'm getting errors applying the patch. Which version is it patched against? Do I need to patch from a specific directory, or was it made relative to the drupal root? (-p0) The patch is asking for directories I don't have in my install. (video/includes/Attic/) Sounds like it might be HEAD, which as far as I know was not the latest version of the module.
Thanks,
Jonathan

#21

if there are dependencies you also have to add the two square brackets after dependencies in the info file. also if there are multiple dependencies they need a new line for each.

e.g.

dependencies[] = video
dependencies[] = video_upload

#22

quite a few of the hunks failed too i noticed when applying the patch file. i looked at them and most if not all of the hunks that are failing are trying to change the .info file.

#23

I tried to upload a video using the video upload module. The video_upload table is not successfully created when the module is installed.

#24

I added a video_upload table to the database manually with two fields vid and fid. The video_upload module appears to be working with the video module now. I'll have to test the other video modules to see if they work.

I think the video_upload module is missing an install file that installs the appropriate table for the module and then uninstalls it when the module is uninstalled. I'll add the appropriate install file and test it then post a link to the file.

#25

Here's one version with the video and upload video modules working. It's a tar inside a zip.

AttachmentSize
video.zip 110.43 KB

#26

The module won't work whit drupal 6.9

#27

Port gets me a Video module in Drupal 6, but I think the only type of Video available to me is Google Video. No option for uploading a video file is available.

#28

First: it doesn't work with i18n. When a suffix (en, fr, es, ...) is added in the node address that doesn't work (http://www.example.com/fr/node/627). It is OK when I remove the suffix (http://www.example.com/node/627).

Second: Upload gives me N; in "serialized_data" field in video table instead of something like a:1:{s:9:"video_fid";i:7980;} (found in Drupal 5). When changed to a:1:{s:9:"video_fid";i:7980;}, where 7980 if the file id it is OK.

Third: URLvideo : no video displayed when a suffix. When removed: OK.

How I could help more? We are very closed to the usability.

#29

Subscribing.

#30

There is still an old bug (for me) that is solved in the joined Durpal5 module. Concerning video resolution, when default width is empty, the default width seems to be put at 0. then no video is displayed. It have to be forced to something for example 400.

In the joined Drupal5 release (I don't know when I got it) the field for default width is:
Default width:
The width which will be used to scale video during playing. This let all videos on the website look the same. NOTE: You can disable video scaling making this field blank.

In the today Drupal5 release and in your last release:
Default width:
The width which will be used to scale video during playing. This let all videos on the website look the same

AttachmentSize
video.zip 93.54 KB

#31

It has to do with the base url of the player.
i18n add a language suffix to the path to the player. Then no play is possible.

My workaround at the moment is to create as many path as language you have.
Per example if the player is in /files/bin/flvplayer, you have to copy those files in /fr/files/bin/flvplayer, /es/files/bin/flvplayer, /en/files/bin/flvplayer, ... That play the videos but that totally disturb the site. That is not a production solution.

The issue is in the launchers in video\includes\common.inc
But I don't how to solve it.

#32

Using this module you able to upload videos & embed youtube video & google video

AttachmentSize
video.zip 76.18 KB

#33

Thank you. Evaluating. OK at the moment.

I'm still stuck with the url of the player and i18n. I posted a support request here: http://drupal.org/node/364810

The log says me that page not found frbin/flowplayer1211/FlowPlayer.swf . My player is at this relative path: bin/flowplayer1211/FlowPlayer.swf

#34

It is working for me

I think problem is with your path of FlowPlayer.swf if the locating path is right then it will be working

1.Check the path of FlowPlayer.swf properly located .if not locate using the video settings which will we be there in http://www.example.com/admin

2. Check whether uploding file is less than 2 mb

3. Save the video setting once before you start.

What i did was i just saved my video settings first where i just entered only " FlowPlayer.swf " in Flash settings text box

After that i uploaded FlowPlayer.swf in my project main folder itself where the "site,theme,files" folder will be there

#35

- FlowPlayer.swf is well located (bin/flowplayer1211/FlowPlayer.swf) and everything is OK with default language. However I discored that that doesn't work with the simple "FlowPlayer.swf" and the file placed in /sites/default.

- All my videos are OK and display well with Drupal 5

- My videos display well with Drupal 6 only with the default language selected, not for others. With others I have the error "page nor found" "frbin/flowplayer1211/FlowPlayer.swf" with the file placed in "bin/flowplayer1211/FlowPlayer.swf" and "frFlowPlayer.swf" with "FlowPlayer.swf". I think it would be OK if the url to the player would be "bin/flowplayer1211/FlowPlayer.swf" for every language or "fr/bin/flowplayer1211/FlowPlayer.swf" for specific language.

Do you use the module i18n?

#36

kumarit84,

Here is my patch to your published module. I finally used base_path() instead of url() to avoid a rewrite. I don't know if it the best solution and if it repects the Drupal code policy. That works for me now.

I made the mod only for flv in this patch waiting for confirmation and as it is the only video I use now.

If you edit the patch, you will see I also made a little correction for '#default_value' => variable_get('video_flvplayerloader', $base_url . 'FlowPlayer.swf'), but it is independent of my main issue.

AttachmentSize
video.module.patch 1.67 KB

#37

was just wondering is it possible to modify the code so it displays the uploaded videos in the main node display rather than clicking a tab? the tabs appear on every node too.
i tried changing the video settings but they didn't work.

#38

This is just what I was looking for, thanks!

However, as some above posters have mentioned, my 3g2 uploaded video plays fine once the Story is clicked on and the user is viewing the node, but I'd love for the video to also play on the main front page. Perhaps I don't have a setting correct? Thanks!

#39

Status:needs review» needs work

The patch in #36 does not apply against 5.x-1.x-dev.

patching file video.module
Hunk #1 FAILED at 357.
Hunk #2 FAILED at 1056.
Hunk #3 FAILED at 1067.
3 out of 3 hunks FAILED -- saving rejects to file video.module.rej

#40

To clarify.

I am not sure what state HEAD is in. It seems older than 5.x (last change to HEAD was June 2007, while last change for 5.x is March 2008), so we would lose features if we do it against HEAD.

#41

No to #32

But for my part I decided to quit this module. Too many strange behaviors, a lot to fix. And as most of my videos are now in flv format, my site uses "Flash node" ans "SWF Tools". It is quite simple to use. Import is so simple and with Auto buffering set ON, I have the first image of my video displayed, a Video Image replacement.

I just finished today to port the videos.

#42

the video seems to play in the node when the setting is set. i added the code suggested in this post to my custom theme http://drupal.org/node/379792 to get rid of the download and play tabs on nodes. it's a quick dirty fix. will have to re-examine the code again to find out why this setting isn't sticking.

#43

Assigned to:Anonymous» heshan.lk

I'm working on a official V6 release on video module.

#44

Status:needs work» needs review

The above patch and tar.gz versions did not work as is. Here is a version that does work with D6.

AttachmentSize
video-d6.tar_.gz 59.83 KB

#45

I could successfully ported the video module to the D6. Interest guys can check out it http://heidisoft.com/sites/default/files/video.zip
Thanks
Heshan

AttachmentSize
video.zip 96.18 KB

#46

Status:needs review» closed (fixed)

closed

#47

heshanmw your module doesn't work. it doesn't install at all.

#48

Status:closed (fixed)» fixed

What is the Drupal version you tried to test video module 6.x . I tested with D 6.6 to current stable version, it is working fine for me. Installed correctly and upload google video, youtube and uploaded videos properly, I didn't see any issue out there.

However please check this version.

AttachmentSize
video-6.x.zip 96.18 KB

#49

Sorry here is the final one, I mistakenly uploaded a wrong one ;)

AttachmentSize
video-6.x.zip 95.61 KB

#50

Currently Video Image doesn't work, I'm looking forward to fix it soon,

#51

Status:fixed» needs review

Here is a version that contains fixes to what I posted in #44.

AttachmentSize
video-d6.tar_.gz 59.92 KB

#52

Can you get a dev release posted on the project page, so other people can start to tap into your work and move it along?

If you communicate with the maintainers/Drupal.org web admins then you can probably take over maintainership if you are so inclined.

#53

thanks heshanmw. i'll test it out and let you know if it works.

#54

to #49 heshanmw and to #51 kbahey:

just to know... are you working together or is each of the files a different try to port the module to D6?

Thanks for all your efforts !

psc

#55

I released a development snapshot for the video module 6.x, download and check for the issue before we go for a stable version.

#56

subscribe

#57

Because we now have a dev version, I think it's appropriate to close this issue and open new ones to address issues specific to the dev code. What do you think?

#58

Status:needs review» fixed

I'm closing this issue, currently video module released several stable releases for Drupal 6. Hope I have started a good job :) with all you guys help. I'm trying to create the Drupal 7 version and Drupal 6 with CCK + Video thumbs, subscription etc :), Video hooks will be introduced too. Hope all enjoy with this module.
I set up a official video module web site : http://video.heidisoft.com/ every one can join and work with me, to improve documentation etc, since I'm still learning things may have some bugs, issues, missing features etc. So I will appreciate if you all can comment me on this grate module :). You can report issues to issue queue if any issues, bugs, features.

Enjoy with this module :) .
Cheers
-Heshan

#59

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here