I was thrilled to hear of the solution recently posted here: http://drupal.org/node/1213496 in which the author claims to have Zencoder and Amazon S3 working with a TRUE JWPlayer embed that provides HTML5 fallback for iPad / iPhone courtesy of a new sub-module written for SWFTools called "JWEmbedder" (based on the SWFObject2 module.)

I too use Amazon S3 and Zencoder through the Video module. I have gotten the SWFObject2 method working fine, and it worked with both JWPlayer 5.7 and JWPlayer 5.6, though not with iPad or iPhone.

I have only mp4 file types on the site, assuming that an mp4 can be presented in the fallback method as either flash or HTML5, depending upon the device (is this correct, or do I need to encode and store multiple file types?)...

For the SWFObject2 method, after countless hours of struggle, I got the following basic config options working fine, albeit with out iPhone/iPad support:

1) SWFTools JW Player 5 Sub-Module enabled
2) CCK display format set to "Video" (Note: when I try using SWF tools as the CCK format, the player doesn't look for the correctly encoded Zencoder file, and I've had no luck trying to set the file-hander "Media directory" to work correctly for Amazon S3 source in SWFTools...the correct rewrite of the Amazon S3 file source seems to be done by Video module.)
3) Video module's player settings for mp4 set to "FLV Player" -> "SWF Tools"
4) JWPlayer 5 installed in "sites/all/libraries/mediaplayer-5" folder with renaming of the "player.swf" file to "jwplayer-viral.swf" in the mediaplayer-5 folder.
5) Selection of JWPLayer 5 for all playback options in SWFTools module.

This arrangement is still a little buggy and intermittently results in cropped preview images, apparently the result of a mismatch in JWPLayer scale attributes that I can't figure out.

Since the JWEmbedder module was based on the SWFObject2 method, I assumed it would work roughly the same way as above, with only minor changes to config, but I can't get anything to work after trying nearly every possible option.

Can you provide documentation of how the Video and SWFTools modules need to be configured to allow this new JWEmbedder solution to work?

Comments

hypertext200’s picture

Andrupal’s picture

Yes, that's the post I was referring to in my issue as the "solution" that I was unable to implement. I posted the issue in both modules because I am unclear where the problem is. Seems to be an issue of how the two modules integrate.

There is a need for clearer documentation on how to integrate Video and SWFTools modules generally, but in particular to get JWEmbedder method to work. This is the path to HTML5 fallback that people need, but few seem to have gotten working.

First, can you clarify whether the CCK formatting selection for video should be "SWF Tools" or "Video" for the purposes of getting the JWEmbedder method to work?

When I use "SWF Tools" as the CCK display format, I get the "You are missing some flash content..." message, I am guessing in part because the SWFTools module is looking to the local directory and not accounting for the Amazon S3 / Zencoder path when it goes looking for the video. I thought this issue could be fixed by changing the SWFTools media file directory to the S3 URL, but doing so still results in the module still looking for the pre-encoded file. (This points to larger problems in how file handling happens in the Video module when it is plugged into S3. Drupal and other modules continue to look for the video file in the local directory because that's where the files table entry points.)

When I use "Video" as the CCK display format in conjunction with "SWFObject2" set in SWFTools the method works and the correct S3 file location is used, however there is no HTML5 fallback and the JWPlayer is buggy (intermittent cropping issue) because of incorrect scale parameters. When I use it with the promising "JWEmbedder" sub-module I simply get a white region where the player is supposed to be. Do you have any thoughts as to why?

Andrupal’s picture

Status: Fixed » Active

Marking active because the issue remains unresolved.

Jorrit’s picture

Status: Active » Closed (works as designed)

Could you retry using video 6.x-4.x or 6.x-4.6 and reopen this issue with a clear description when it doesn't work?