Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | videojs-ios-plus-flowplayer-fallback.diff | 5.02 KB | mattman |
Comments
Comment #1
mattman CreditAttribution: mattman commentedSince 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.
Comment #2
heshanlkComment #3
batourine_m CreditAttribution: batourine_m commentedHi 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.
Comment #4
patrickroma CreditAttribution: patrickroma commentedCan you please describe, how to integrate the flowplayer api to provoke the flash fallback?
Comment #5
batourine_m CreditAttribution: batourine_m commentedGhm - 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.
Comment #6
mattman CreditAttribution: mattman commentedUsing 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
Comment #7
miaoulafrite CreditAttribution: miaoulafrite commentedi'm also interested on how to integrate the fallback, we are using a custom flash player based on SWF tools
Comment #9
gagarine CreditAttribution: gagarine commentedThis need a port on D7.
Comment #10
Jorrit CreditAttribution: Jorrit commentedIs this still an issue?
Comment #11
Jorrit CreditAttribution: Jorrit commentedClosed because of lack of response.