|
|
@@ -249,10 +249,14 @@ function setVideoProcess(value) {
|
|
|
}
|
|
|
|
|
|
function callFunc(func, param) {
|
|
|
- var event = document.createEvent('MessageEvent');
|
|
|
- var origin = window.location.protocol + '//' + window.location.host;
|
|
|
- event.initMessageEvent(func, true, true, param, origin, 1234, window, null);
|
|
|
- document.dispatchEvent(event);
|
|
|
+ if("undefined" != typeof jsObj){
|
|
|
+ eval("jsObj."+func+"('"+param+"')");
|
|
|
+ }else{
|
|
|
+ var event = document.createEvent('MessageEvent');
|
|
|
+ var origin = window.location.protocol + '//' + window.location.host;
|
|
|
+ event.initMessageEvent(func, true, true, param, origin, 1234, window, null);
|
|
|
+ document.dispatchEvent(event);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
function playNext(index) {
|