diff --git a/js/h5p.js b/js/h5p.js
index a68de56..8f01338 100644
--- a/js/h5p.js
+++ b/js/h5p.js
@@ -81,16 +81,30 @@ H5P.playVideo = function ($target, params, cp, onEnded) {
var sources = '';
var willWork = false; // Used for testing if video tag is supported, AND for testing if we can play back our given formats
- var $video = $('');
- if ($video[0].canPlayType !== undefined) {
+ var video = document.createElement('video');
+ video.autoplay = true;
+ video.width = width;
+ video.height = height;
+
+ if (video.canPlayType !== undefined) {
for (var key in params) {
- sources += '