I'm using a sandbox test environment using MAMP Pro where I have a multitude of sites in their individual folders in the form of http://xx.xxx.xx.xx/[site].

I'm encoding both mp4 and FLV files. In looking at the HTML5 output, the mp4 output seems to be parsed correctly, but the swftools output is incorrect.

I have <object id="swftools-4d34a79666ba1" width="640" height="480" type="application/x-shockwave-flash" name="swftools-4d34a79666ba1" data="/[site]/sites/all/libraries/mediaplayer4/player.swf" style="visibility:visible;"> and <code><param name = "base" value="/[site]/sites/default/files/">

Likewise, the swfobject.embedSWF is wrong; either [site] should not appear at all or the full URL should appear, I would think. In any event, the HTML Player fails.

I assume you'd only have this issue if a site was living in a subdirectory. I've tried changing the base URL in both the .htaccess file and in settings.php, to no avail. I'm thinking this is why I might have been having such difficulty with cross-platform video - guidance here much appreciated!

Comments

hypertext200’s picture

value="/[site]/sites/default/files/">

There is an issue with Flashfall back, so go to themes/ and select the HTML5 player.

//Line : 31
      // override the video player to fix the mp4 issue.
      $video->player = 'flv'; 

echo theme('video_flv', $video, $node);

bcobin’s picture

Nope.

The second bit of code is what's already there; replacing echo theme('video_flv', $video, $node); with $video->player = 'flv'; doesn't output anything at all.

Much obliged for looking into this and for the quick response, heshan.lk - any other ideas? Thanks!

hypertext200’s picture

This object is generating by the SWFTools module, what we are doing is just pass the video object with the path.

bcobin’s picture

Version: 6.x-4.2-alpha2 » 6.x-4.2-beta2

OK - I'm now installed on IP and the HTML5 Player still doesn't work. In FF, there's a dimmed preview image with no player and in Mac, the Quicktime Player initializes, which is wrong. No HTML5 Player.

So still no solution for cross-platform video... any ideas?

hypertext200’s picture

Status: Active » Fixed

Please clear you cache and see?
to support HTML5 video you should have MP5 and OGG videos, check player settings and change player to HTML5

bcobin’s picture

I've cleared all caches - no change.

For OGG, see comment #7 here: http://drupal.org/node/1043144

Player is set to HTML5.

Regardless - shouldn't FF fall back to Flash usine HTML5 player and shouldn't the HTML5 player be visible in Mac - even without OGG?

parasox’s picture

Yes I'm unclear on that too, MP4 *AND* OGG? Or is just MP4 okay?

hypertext200’s picture

HTML5 will need mp4 and ogg

bcobin’s picture

See comment #7 on http://drupal.org/node/1043144 re: non-working OGG preset in Video.

bryanb229’s picture

Subscribing.

Status: Fixed » Closed (fixed)

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