johndyer/mediaelement — Issue #391: JS-Error on iPad (5.0.1) using Wordpress Plugin (2.5.0) 
Author: rjakobsson
Created: 2012-02-15 10:36:40+00:00
State: open

Hi,
when installing mediaelement.js plugin in WordPress (3.3.1) and using it in a page containing:
`[video mp4="/assets/video.mp4" captions="/wp-content/srt/learn.vtt" width="100%" height="100%"]`

I get a problem on the iPad (1 & 2):
`TypeError: 'undefined' is not a function`

The result is that the iPad player does not support captions and does not get styled, in windowed mode.
On the mediaelement.js website this is working perfect. Not sure what in the WP-plugin it is that differs.

I did a test implementing mediaelement.js by hand into WP, not using the shortcode, and initializing it using:
`

`

and

`$('video').mediaelementplayer(); `
Worked like a charm on the iPad.