EDIT: Sorry about the wrong title, please edit, I was first about to post on another problem that vanished after cache clearing

Hello, in Chrome inspector I get this error, happens with the 7.3 alpha too

Uncaught ReferenceError: _V_ is not defined

Seems like it has to do with these 2:

<script>_V_.options.flash.swf = "http://www.bad-good.org/sites/all/libraries/video-js/video-js.swf"</script>
<script>_V_.options.flash.swf = "http://www.bad-good.org/sites/all/libraries/video-js/video-js.swf"</script>

The video on the rendered page is played in HTML5, happens with JS aggregation on and off

Cheers

Comments

Jorrit’s picture

I have changed it to video.options.flash.swf in the latest -dev release, I think. In any case, I will change that soon.

Jorrit’s picture

Status: Active » Fixed

Please try the next -dev release.

Lux Delux’s picture

Thanks, that error is gone now, however I do get

Uncaught ReferenceError: videojs is not defined

If I add weight to $jsopts and $swfopts

$jsopts = array('group' => JS_LIBRARY, 'preprocess' => !$remote, 'type' => $remote ? 'external' : 'file', 'weight' => 1); $swfopts = array('group' => JS_LIBRARY, 'type' => 'inline', 'weight' => 5);

It goes away, as videojs.js is now loaded before the swf. I don't know if weights are the best way to go but just so you know :)

Cheers

Jorrit’s picture

I think your method is the right way to go, I will add it asap. Thanks!

Jorrit’s picture

I have fixed the issue in code. 7.x-3.x-dev should be updated soon.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Edited to make not on the wrong title