src/ldt/ldt/static/ldt/metadataplayer/Mediafragment.js
changeset 1034 967a0a591acd
parent 1026 f60f05ce77fe
child 1070 e1b6be4d85a4
equal deleted inserted replaced
1033:32dda09698d3 1034:967a0a591acd
     2     IriSP.Widgets.Widget.call(this, player, config);
     2     IriSP.Widgets.Widget.call(this, player, config);
     3     this.last_hash_key = "";
     3     this.last_hash_key = "";
     4     this.last_hash_value = "";
     4     this.last_hash_value = "";
     5     window.onhashchange = this.functionWrapper("goToHash");
     5     window.onhashchange = this.functionWrapper("goToHash");
     6     if (typeof window.addEventListener !== "undefined") {
     6     if (typeof window.addEventListener !== "undefined") {
       
     7         var _this = this;
     7         window.addEventListener('message', function(_msg) {
     8         window.addEventListener('message', function(_msg) {
     8             if (/^#/.test(_msg.data)) {
     9             if (/^#/.test(_msg.data)) {
     9                 this.setWindowHash(_msg.data);
    10                 _this.setWindowHash(_msg.data);
    10             }
    11             }
    11         })
    12         })
    12     };
    13     };
    13     this.onMdpEvent("Mediafragment.setHashToAnnotation","setHashToAnnotation");
    14     this.onMdpEvent("Mediafragment.setHashToAnnotation","setHashToAnnotation");
    14     this.blocked = false;
    15     this.blocked = false;