Skip to content
This repository has been archived by the owner on Dec 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #154 from Wellming/master
Browse files Browse the repository at this point in the history
fix manual tests
  • Loading branch information
heff committed May 11, 2015
2 parents 9da5e41 + fd1f993 commit ded2c21
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
16 changes: 11 additions & 5 deletions tests/manual/manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@
}

var flashvars = {
readyFunction: "onSWFReady",
eventProxyFunction: "onSWFEvent",
errorEventProxyFunction: "onSWFErrorEvent",
// readyFunction: "onSWFReady",
// eventProxyFunction: "onSWFEvent",
// errorEventProxyFunction: "onSWFErrorEvent",
src: "",
autoplay: false,
preload: false,
Expand Down Expand Up @@ -150,8 +150,8 @@
e.preventDefault();
}
var el = $("#videoPlayer")[0];
el.vjs_setProperty("eventProxyFunction", "onSWFEvent");
el.vjs_setProperty("errorEventProxyFunction", "onSWFErrorEvent");
// el.vjs_setProperty("eventProxyFunction", "onSWFEvent");
// el.vjs_setProperty("errorEventProxyFunction", "onSWFErrorEvent");
}

function setSource(e){
Expand Down Expand Up @@ -243,6 +243,12 @@

}

var videojs = {};
videojs.Flash = {};
videojs.Flash.onEvent = onSWFEvent;
videojs.Flash.onError = onSWFErrorEvent;
videojs.Flash.onReady = onSWFReady;

$(init);

$(window).load(function() { setupAndPlayback() });
Expand Down
16 changes: 11 additions & 5 deletions tests/manual/manual_full.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@
e.preventDefault();

var flashvars = {
readyFunction: "onSWFReady",
eventProxyFunction: "onSWFEvent",
errorEventProxyFunction: "onSWFErrorEvent",
// readyFunction: "onSWFReady",
// eventProxyFunction: "onSWFEvent",
// errorEventProxyFunction: "onSWFErrorEvent",
src: "",
autoplay: false,
preload: false,
Expand Down Expand Up @@ -160,8 +160,8 @@
function setProperties(e){
e.preventDefault();
var el = $("#videoPlayer")[0];
el.vjs_setProperty("eventProxyFunction", "onSWFEvent");
el.vjs_setProperty("errorEventProxyFunction", "onSWFErrorEvent");
// el.vjs_setProperty("eventProxyFunction", "onSWFEvent");
// el.vjs_setProperty("errorEventProxyFunction", "onSWFErrorEvent");
el.vjs_setProperty("poster", "img/testPattern_ussr_480x360.png");
}

Expand Down Expand Up @@ -256,6 +256,12 @@

}

var videojs = {};
videojs.Flash = {};
videojs.Flash.onEvent = onSWFEvent;
videojs.Flash.onError = onSWFErrorEvent;
videojs.Flash.onReady = onSWFReady;

$(init);

</script>
Expand Down

0 comments on commit ded2c21

Please sign in to comment.