I must have missed something in the documentation or may be it is incomplete. mp4 and ogg playback I see working (I tested with Firefox and Safari), but flash player is missing. How do you install that? Is that by overriding videojs.tpl.php in my theme and manually include a flash player?

This would need to be included in the documentation, because it might not be obvious for everybody. It wasn't for me at least.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mattman’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
Component: Documentation » Code
FileSize
5.02 KB

Since this item is marked as a @todo in the template file I've changed it from docs to code, hope that's ok.

I've attached my git diff from the 1.1 release. It includes the code which will add in fallback support for flowplayer module.

I've maintained the same dimensions returned by videojs and also turned off autoplay since that's what HTML5 video does. I also created a new variable in the variables table which is videojs_fallback_module.

I used that instead of the more generic videojs_fallback in case there are other fallback settings the user may be able to set.

The preprocess function creates the fallback code based on a preference setting the admin area. I coded it so it's pretty easy to add other supporting modules like swftools.

I've tested in IE 8 (not 7) and it's working for me. With the support for iOS too, this is a nice rockin' module you've got started here.

heshanlk’s picture

Status: Active » Fixed
batourine_m’s picture

Hi All,
I have questions for the patch - it seems it assigns fallback url for flash player as the last video of type mp4 in the added videos.
I see troubles with that.... Ether there should be somewhere clearly stated how it is or I would assume it should be the first mp4 file in the mutli-value list. Or am I wrong?

I see scenarios where Video module is used and meta info available to have multi-resolution different quality mp4.
I would suspect browser will stop on the first playable item, therefore video with highest profile (Profile: High, Level 3.1) listed first, with lower and lower profiles in the list of videos, this way iphone safari and other less compatible browsers will fall back down the list. Therefore if last mp4 listed is for least device with crappy quality, flash fallback will play least desirable video source.

patrickroma’s picture

Can you please describe, how to integrate the flowplayer api to provoke the flash fallback?

batourine_m’s picture

Ghm - is this question for me or original poster? In 1.2(which is based on mentioned in #1 patch) you'll need SWFtool of Flowplayer API module and it will work out of the box.

mattman’s picture

Using Flowplayer as a fallback is a matter of integrating into your theme. At least with the Flowplayer API module. http://drupal.org/project/flowplayer

This is typically integrated into your template.php file by calling the flowplayer functions at the point where your video is being loaded. This again, is typically, on the node level with the [theme_name]_preprocess_node(&$vars) function.

Here is a video I did about using flowplayer module.

GotDrupal tutorial video about flowplayer module

miaoulafrite’s picture

i'm also interested on how to integrate the fallback, we are using a custom flash player based on SWF tools

Status: Fixed » Closed (fixed)

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

gagarine’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Closed (fixed) » Active

This need a port on D7.

Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

Is this still an issue?

Jorrit’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closed because of lack of response.