
HTML5 Player fails to initiate: "Cannot read property 'properties' of undefined"
Hi,
The HTML5 player is failing with the error "Cannot read property 'properties' of undefined" when we initialise it (using the setup function). What does this error mean and how to we go about finding the problem?
If we force the primary player to Flash it works correctly, however we really want to use HTML5 to avoid issues with the Flash plugin crashing (which we've seen from time to time).
You can see an example:
- Go to http://cep.eduxy.net/en/login
- Login with username=nuevo / password=12345678
- Ignore any errors and go directly here: http://cep.eduxy.net/en/wizard/nuevo/jwplayer
- Click the "Structure" tab label to close it and see the video
The first video is set to use Flash as the primary player, it's initialised with the following code:
jwplayer('20d94d792641db7193daa6d99d2c1305').setup({
primary: "flash",
file: "https://d2teusukjr0lvl.cloudfront.net/eduxy_admin/video/A123.mp4",
width: "43%",
height: "57%"
});
The second is not set to use Flash as the primary, so it should use HTML5 on a modern browser (I've tested in the latest version of Chrome):
jwplayer('6c24a6c514ba2189894e43c6a83c5905').setup({
file: "https://d2teusukjr0lvl.cloudfront.net/eduxy_admin/video/A123.mp4",
width: "43%",
height: "57%"
});
Many thanks!