hitolaus / nettv-plex-client

Plex client for NetTV
19 stars 10 forks source link

Hangs at plex logo bootscreen on Philips 42PFL7606H #1

Open peterdk opened 11 years ago

peterdk commented 11 years ago

I tested hosted and selfhosted git head, but both hanged at the plex logo display. I also tested and got same result for the hosted version on the SDK emulator from the website that Philips links to : http://www.yourappontv.com/sdk

According to the forum thread, more people using Philips tv's have the same issue of the logo hang.

Error log:

--- 04 May 2013 22:15:34 ---
http://udvikl.es/nettv/plex/
Uncaught exception: TypeError: 'Object.defineProperty' is not a function

Error thrown at line 1, column 110686 in <anonymous function>(a) in http://udvikl.es/nettv/plex/scripts/15821ffb.app.js:
    Object.defineProperty(c,void 0,{get:function(){return d[void 0]},set:function(a){d[void 0]=a}}),a.plugin("mediaspawner",{manifest:{about:{name:"Popcorn Media Spawner Plugin",version:"0.1",author:"Matthew Schranz, @mjschranz",website:"mschranz.wordpress.com"},options:{source:{elem:"input",type:"text",label:"Media Source","default":"http://www.youtube.com/watch?v=CXDstfD9eJ0"},caption:{elem:"input",type:"text",label:"Media Caption","default":"Popcorn Popping",optional:!0},target:"mediaspawner-container",start:{elem:"input",type:"number",label:"Start"},end:{elem:"input",type:"number",label:"End"},autoplay:{elem:"input",type:"checkbox",label:"Autoplay Video",optional:!0},width:{elem:"input",type:"number",label:"Media Width","default":400,units:"px",optional:!0},height:{elem:"input",type:"number",label:"Media Height","default":200,units:"px",optional:!0}}},_setup:function(d){function e(){function b(){i!=="HTML5"&&!window.Popcorn[i]?setTimeout(function(){b()},300):(d.id=d._container.id,d._container.style.width=d.width+"px",d._container.style.height=d.height+"px",d.popcorn=a.smart("#"+d.id,d.source),i==="HTML5"&&d.popcorn.controls(!0),d._container.style.width="0px",d._container.style.height="0px",d._container.style.visibility="hidden",d._container.style.overflow="hidden")}i!=="HTML5"&&!window.Popcorn[i]&&!c[i]?(c[i]=!0,a.getScript("http://popcornjs.org/code/players/"+i+"/popcorn."+i+".js",function(){b()})):b()}function g(){window.Popcorn.player?e():setTimeout(function(){g()},300)}var h=document.getElementById(d.target)||{},i,j,k;(j=b.exec(d.source))?(i=j[1],i==="youtu"&&(i="youtube")):i="HTML5",d._type=i,d._container=document.createElement("div"),j=d._container,j.id="mediaSpawnerdiv-"+a.guid(),d.width=d.width||400,d.height=d.height||200,d.caption&&(k=document.createElement("div"),k.innerHTML=d.caption,k.style.display="none",d._capCont=k,j.appendChild(k)),h&&h.appendChild(j),!window.Popcorn.player&&!c.module?(c.module=!0,a.getScript("http://popcornjs.org/code/modules/player/popcorn.player.js",g)):g()},start:function(a,b){b._capCont&&(b._capCont.style.display=""),b._container.style.width=b.width+"px",b._container.style.height=b.height+"px",b._container.style.visibility="visible",b._container.style.overflow="visible",b.autoplay&&b.popcorn.play()},end:function(a,b){b._capCont&&(b._capCont.style.display="none"),b._container.style.width="0px",b._container.style.height="0px",b._container.style.visibility="hidden",b._container.style.overflow="hidden",b.popcorn.pause()},_teardown:function(a){a.popcorn&&a.popcorn.destory&&a.popcorn.destroy(),document.getElementById(a.target)&&document.getElementById(a.target).removeChild(a._container)}})
called from line 1, column 25074 in http://udvikl.es/nettv/plex/scripts/15821ffb.app.js:
    (function(a,b){function c(a,b){return function(){if(o.plugin.debug)return a.apply(this,arguments);try{return a.apply(this,arguments)}catch(c){o.plugin.errors.push({plugin:b,thrown:c,source:a.toString()}),this.emit("pluginerror",o.plugin.errors)}}}if(b.addEventListener){var d=Array.prototype,e=Object.prototype,f=d.forEach,g=d.slice,h=e.hasOwnProperty,i=e.toString,j=a.Popcorn,k=[],l=!1,m={events:{hash:{},apis:{}}},n=function(){return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||function(b){a.setTimeout(b,16)}}(),o=function(a,b){return new o.p.init(a,b||null)};o.version="1.3",o.isSupported=!0,o.instances=[],o.p=o.prototype={init:function(a,c){var d,e=this;if(typeof a!="function"){if(typeof a=="string")try{d=b.querySelector(a)}catch(g){throw Error("Popcorn.js Error: Invalid media element selector: "+a)}this.media=d||a,d=this.media.nodeName&&this.media.nodeName.toLowerCase()||"video",this[d]=this.media,this.options=c||{},this.id=this.options.id||o.guid(d);if(o.byId(this.id))throw Error("Popcorn.js Error: Cannot use duplicate ID ("+this.id+")");this.isDestroyed=!1,this.data={running:{cue:[]},timeUpdate:o.nop,disabled:{},events:{},hooks:{},history:[],state:{volume:this.media.volume},trackRefs:{},trackEvents:{byStart:[{start:-1,end:-1}],byEnd:[{start:-1,end:-1}],animating:[],startIndex:0,endIndex:0,previousUpdateTime:-1}},o.instances.push(this);var h=function(){e.media.currentTime<0&&(e.media.currentTime=0),e.media.removeEventListener("loadeddata",h,!1);var a,b,c,d,f;a=e.media.duration,a=a!=a?Number.MAX_VALUE:a+1,o.addTrackEvent(e,{start:a,end:a}),e.options.frameAnimation?(e.data.timeUpdate=function(){o.timeUpdate(e,{}),o.forEach(o.manifest,function(a,g){if(b=e.data.running[g]){d=b.length;for(var h=0;h<d;h++)c=b[h],(f=c._natives)&&f.frame&&f.frame.call(e,{},c,e.currentTime())}}),e.emit("timeupdate"),!e.isDestroyed&&n(e.data.timeUpdate)},!e.isDestroyed&&n(e.data.timeUpdate)):(e.data.timeUpdate=function(a){o.timeUpdate(e,a)},e.isDestroyed||e.media.addEventListener("timeupdate",e.data.timeUpdate,!1))};return Object.defineProperty(this,"error",{get:function(){return e.media.error}}),e.media.readyState>=2?h():e.media.addEventListener("loadeddata",h,!1),this}if(b.readyState==="complete")a(b,o);else{k.push(a);if(!l){l=!0;var f=function(){b.removeEventListener("DOMContentLoaded",f,!1);for(var a=0,c=k.length;a<c;a++)k[a].call(b,o);k=null};b.addEventListener("DOMContentLoaded",f,!1)}}}},o.p.init.prototype=o.p,o.byId=function(a){for(var b=o.instances,c=b.length,d=0;d<c;d++)if(b[d].id===a)return b[d];return null},o.forEach=function(a,b,c){if(!a||!b)return{};c=c||this;var d,e;if(f&&a.forEach===f)return a.forEach(b,c);if(i.call(a)==="[object NodeList]"){d=0;for(e=a.length;d<e;d++)b.call(c,a[d],d,a);return a}for(d in a)h.call(a,d)&&b.call(c,a[d],d,a);return a},o.extend=function(a){var b=g.call(arguments,1);return o.forEach(b,function(b){for(var c in b)a[c]=b[c]}),a},o.extend(o,{noConflict:function(b){return b&&(a.Popcorn=j),o},error:function(a){throw Error(a)},guid:function(a){return o.guid.counter++,(a?a:"")+(+(new Date)+o.guid.counter)},sizeOf:function(a){var b=0,c;for(c in a)b++;return b},isArray:Array.isArray||function(a){return i.call(a)==="[object Array]"},nop:function(){},position:function(c){c=c.getBoundingClientRect();var d={},e=b.documentElement,f=b.body,g,h,i;g=e.clientTop||f.clientTop||0,h=e.clientLeft||f.clientLeft||0,i=a.pageYOffset&&e.scrollTop||f.scrollTop,e=a.pageXOffset&&e.scrollLeft||f.scrollLeft,g=Math.ceil(c.top+i-g),h=Math.ceil(c.left+e-h);for(var j in c)d[j]=Math.round(c[j]);return o.extend({},d,{top:g,left:h})},disable:function(a,b){if(!a.data.disabled[b]){a.data.disabled[b]=!0;for(var c=a.data.running[b].length-1,d;c>=0;c--)d=a.data.running[b][c],d._natives.end.call(a,null,d)}return a},enable:function(a,b){if(a.data.disabled[b]){a.data.disabled[b]=!1;for(var c=a.data.running[b].length-1,d;c>=0;c--)d=a.data.running[b][c],d._natives.start.call(a,null,d)}return a},destroy:function(a){var b=a.data.events,c=a.data.trackEvents,d,e,f,g;for(e in b){d=b[e];for(f in d)delete d[f];b[e]=null}for(g in o.registryByName)o.removePlugin(a,g);c.byStart.length=0,c.byEnd.length=0,a.isDestroyed||(a.data.timeUpdate&&a.media.removeEventListener("timeupdate",a.data.timeUpdate,!1),a.isDestroyed=!0)}}),o.guid.counter=1,o.extend(o.p,function(){var a={};return o.forEach("load play pause currentTime playbackRate volume duration preload playbackRate autoplay loop controls muted buffered readyState seeking paused played seekable ended".split(/\s+/g),function(b){a[b]=function(a){var c;return typeof this.media[b]=="function"?(a!=null&&/play|pause/.test(b)&&(this.media.currentTime=o.util.toSeconds(a)),this.media[b](),this):a!=null?(c=this.media[b],this.media[b]=a,c!==a&&this.emit("attrchange",{attribute:b,previousValue:c,currentValue:a}),this):this.media[b]}}),a}()),o.forEach("enable disable".split(" "),function(a){o.p[a]=function(b){return o[a](this,b)}}),o.extend(o.p,{roundTime:function(){return Math.round(this.media.currentTime)},exec:function(a,b,c){var d=arguments.length,e,f;try{f=o.util.toSeconds(a)}catch(g){}typeof f=="number"&&(a=f);if(typeof a=="number"&&d===2)c=b,b=a,a=o.guid("cue");else if(d===1)b=-1;else if(e=this.getTrackEvent(a))typeof a=="string"&&d===2&&(typeof b=="number"&&(c=e._natives.start),typeof b=="function"&&(c=b,b=e.start));else if(d>=2){if(typeof b=="string"){try{f=o.util.toSeconds(b)}catch(h){}b=f}typeof b=="number"&&(c=o.nop()),typeof b=="function"&&(c=b,b=-1)}return o.addTrackEvent(this,{id:a,start:b,end:b+1,_running:!1,_natives:{start:c||o.nop,end:o.nop,type:"cue"}}),this},mute:function(a){return a=a==null||a===!0?"muted":"unmuted",a==="unmuted"&&(this.media.muted=!1,this.media.volume=this.data.state.volume),a==="muted"&&(this.data.state.volume=this.media.volume,this.media.muted=!0),this.emit(a),this},unmute:function(a){return this.mute(a==null?!1:!a)},position:function(){return o.position(this.media)},toggle:function(a){return o[this.data.disabled[a]?"enable":"disable"](this,a)},defaults:function(a,b){return o.isArray(a)?(o.forEach(a,function(a){for(var b in a)this.defaults(b,a[b])},this),this):(this.options.defaults||(this.options.defaults={}),this.options.defaults[a]||(this.options.defaults[a]={}),o.extend(this.options.defaults[a],b),this)}}),o.Events={UIEvents:"blur focus focusin focusout load resize scroll unload",MouseEvents:"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave click dblclick",Events:"loadstart progress suspend emptied stalled play pause error loadedmetadata loadeddata waiting playing canplay canplaythrough seeking seeked timeupdate ended ratechange durationchange volumechange"},o.Events.Natives=o.Events.UIEvents+" "+o.Events.MouseEvents+" "+o.Events.Events,m.events.apiTypes=["UIEvents","MouseEvents","Events"],function(a,b){for(var c=m.events.apiTypes,d=a.Natives.split(/\s+/g),e=0,f=d.length;e<f;e++)b.hash[d[e]]=!0;c.forEach(function(c){b.apis[c]={};for(var d=a[c].split(/\s+/g),e=d.length,f=0;f<e;f++)b.apis[c][d[f]]=!0})}(o.Events,m.events),o.events={isNative:function(a){return!!m.events.hash[a]},getInterface:function(a){if(!o.events.isNative(a))return!1;var b=m.events,c=b.apiTypes;b=b.apis;for(var d=0,e=c.length,f,g;d<e;d++){g=c[d];if(b[g][a]){f=g;break}}return f},all:o.Events.Natives.split(/\s+/g),fn:{trigger:function(c,d){var e;if(this.data.events[c]&&o.sizeOf(this.data.events[c])){if(e=o.events.getInterface(c))return e=b.createEvent(e),e.initEvent(c,!0,!0,a,1),this.media.dispatchEvent(e),this;o.forEach(this.data.events[c],function(a){a.call(this,d)},this)}return this},listen:function(a,b){var c=this,d=!0,e=o.events.hooks[a],f;return this.data.events[a]||(this.data.events[a]={},d=!1),e&&(e.add&&e.add.call(this,{},b),e.bind&&(a=e.bind),e.handler&&(f=b,b=function(a){e.handler.call(c,a,f)}),d=!0,this.data.events[a]||(this.data.events[a]={},d=!1)),this.data.events[a][b.name||b.toString()+o.guid()]=b,!d&&o.events.all.indexOf(a)>-1&&this.media.addEventListener(a,function(b){o.forEach(c.data.events[a],function(a){typeof a=="function"&&a.call(c,b)})},!1),this},unlisten:function(a,b){return this.data.events[a]&&this.data.events[a][b]?(delete this.data.events[a][b],this):(this.data.events[a]=null,this)}},hooks:{canplayall:{bind:"canplaythrough",add:function(a,b){var c=!1;this.media.readyState&&(b.call(this,a),c=!0),this.data.hooks.canplayall={fired:c}},handler:function(a,b){this.data.hooks.canplayall.fired||(b.call(this,a),this.data.hooks.canplayall.fired=!0)}}}},o.forEach([["trigger","emit"],["listen","on"],["unlisten","off"]],function(a){o.p[a[0]]=o.p[a[1]]=o.events.fn[a[0]]}),o.addTrackEvent=function(a,b){var c,d;b.id&&(c=a.getTrackEvent(b.id)),c&&(d=!0,b=o.extend({},c,b),a.removeTrackEvent(b.id)),b&&b._natives&&b._natives.type&&a.options.defaults&&a.options.defaults[b._natives.type]&&(b=o.extend({},a.options.defaults[b._natives.type],b)),b._natives&&(b._id=b.id||b._id||o.guid(b._natives.type),a.data.history.push(b._id)),b.start=o.util.toSeconds(b.start,a.options.framerate),b.end=o.util.toSeconds(b.end,a.options.framerate);var e=a.data.trackEvents.byStart,f=a.data.trackEvents.byEnd,g;for(g=e.length-1;g>=0;g--)if(b.start>=e[g].start){e.splice(g+1,0,b);break}for(e=f.length-1;e>=0;e--)if(b.end>f[e].end){f.splice(e+1,0,b);break}b.end>a.media.currentTime&&b.start<=a.media.currentTime&&(b._running=!0,a.data.running[b._natives.type].push(b),a.data.disabled[b._natives.type]||b._natives.start.call(a,null,b)),g<=a.data.trackEvents.startIndex&&b.start<=a.data.trackEvents.previousUpdateTime&&a.data.trackEvents.startIndex++,e<=a.data.trackEvents.endIndex&&b.end<a.data.trackEvents.previousUpdateTime&&a.data.trackEvents.endIndex++,this.timeUpdate(a,null,!0),b._id&&o.addTrackEvent.ref(a,b),d&&(d=b._natives.type==="cue"?"cuechange":"trackchange",a.emit(d,{id:b.id,previousValue:{time:c.start,fn:c._natives.start},currentValue:{time:b.start,fn:b._natives.start}}))},o.addTrackEvent.ref=function(a,b){return a.data.trackRefs[b._id]=b,a},o.removeTrackEvent=function(a,b){for(var c,d,e=a.data.history.length,f=a.data.trackEvents.byStart.length,g=0,h=0,i=[],j=[],k=[],l=[];--f>-1;)c=a.data.trackEvents.byStart[g],d=a.data.trackEvents.byEnd[g],c._id||(i.push(c),j.push(d)),c._id&&(c._id!==b&&i.push(c),d._id!==b&&j.push(d),c._id===b&&(h=g,c._natives._teardown&&c._natives._teardown.call(a,c))),g++;f=a.data.trackEvents.animating.length,g=0;if(f)for(;--f>-1;)c=a.data.trackEvents.animating[g],c._id||k.push(c),c._id&&c._id!==b&&k.push(c),g++;h<=a.data.trackEvents.startIndex&&a.data.trackEvents.startIndex--,h<=a.data.trackEvents.endIndex&&a.data.trackEvents.endIndex--,a.data.trackEvents.byStart=i,a.data.trackEvents.byEnd=j,a.data.trackEvents.animating=k;for(f=0;f<e;f++)a.data.history[f]!==b&&l.push(a.data.history[f]);a.data.history=l,o.removeTrackEvent.ref(a,b)},o.removeTrackEvent.ref=function(a,b){return delete a.data.trackRefs[b],a},o.getTrackEvents=function(a){var b=[];a=a.data.trackEvents.byStart;for(var c=a.length,d=0,e;d<c;d++)e=a[d],e._id&&b.push(e);return b},o.getTrackEvents.ref=function(a){return a.data.trackRefs},o.getTrackEvent=function(a,b){return a.data.trackRefs[b]},o.getTrackEvent.ref=function(a,b){return a.data.trackRefs[b]},o.getLastTrackEventId=function(a){return a.data.history[a.data.history.length-1]},o.timeUpdate=function(a,b){var c=a.media.currentTime,d=a.data.trackEvents.previousUpdateTime,e=a.data.trackEvents,f=e.endIndex,g=e.startIndex,h=e.byStart.length,i=e.byEnd.length,j=o.registryByName,k,l,m;if(d<=c){for(;e.byEnd[f]&&e.byEnd[f].end<=c;){k=e.byEnd[f],l=(d=k._natives)&&d.type;if(!(!d||j[l]||a[l])){o.removeTrackEvent(a,k._id);return}k._running===!0&&(k._running=!1,m=a.data.running[l],m.splice(m.indexOf(k),1),a.data.disabled[l]||(d.end.call(a,b,k),a.emit("trackend",o.extend({},k,{plugin:l,type:"trackend"})))),f++}for(;e.byStart[g]&&e.byStart[g].start<=c;){k=e.byStart[g],l=(d=k._natives)&&d.type;if(!(!d||j[l]||a[l])){o.removeTrackEvent(a,k._id);return}k.end>c&&k._running===!1&&(k._running=!0,a.data.running[l].push(k),a.data.disabled[l]||(d.start.call(a,b,k),a.emit("trackstart",o.extend({},k,{plugin:l,type:"trackstart"})))),g++}}else if(d>c){for(;e.byStart[g]&&e.byStart[g].start>c;){k=e.byStart[g],l=(d=k._natives)&&d.type;if(!(!d||j[l]||a[l])){o.removeTrackEvent(a,k._id);return}k._running===!0&&(k._running=!1,m=a.data.running[l],m.splice(m.indexOf(k),1),a.data.disabled[l]||(d.end.call(a,b,k),a.emit("trackend",o.extend({},k,{plugin:l,type:"trackend"})))),g--}for(;e.byEnd[f]&&e.byEnd[f].end>c;){k=e.byEnd[f],l=(d=k._natives)&&d.type;if(!(!d||j[l]||a[l])){o.removeTrackEvent(a,k._id);return}k.start<=c&&k._running===!1&&(k._running=!0,a.data.running[l].push(k),a.data.disabled[l]||(d.start.call(a,b,k),a.emit("trackstart",o.extend({},k,{plugin:l,type:"trackstart"})))),f--}}e.endIndex=f,e.startIndex=g,e.previousUpdateTime=c,e.byStart.length<h&&e.startIndex--,e.byEnd.length<i&&e.endIndex--},o.extend(o.p,{getTrackEvents:function(){return o.getTrackEvents.call(null,this)},getTrackEvent:function(a){return o.getTrackEvent.call(null,this,a)},getLastTrackEventId:function(){return o.getLastTrackEventId.call(null,this)},removeTrackEvent:function(a){return o.removeTrackEvent.call(null,this,a),this},removePlugin:function(a){return o.removePlugin.call(null,this,a),this},timeUpdate:function(a){return o.timeUpdate.call(null,this,a),this},destroy:function(){return o.destroy.call(null,this),this}}),o.manifest={},o.registry=[],o.registryByName={},o.plugin=function(a,b,d){if(!(o.protect.natives.indexOf(a.toLowerCase())>=0)){var e=["start","end"],f={},i=typeof b=="function",j=["_setup","_teardown","start","end","frame"],k=function(a,b){return a=a||o.nop,b=b||o.nop,function(){a.apply(this,arguments),b.apply(this,arguments)}};o.manifest[a]=d=d||b.manifest||{},j.forEach(function(d){b[d]=c(b[d]||o.nop,a)});var l=function(b,c){if(!c)return this;if(c.ranges&&o.isArray(c.ranges))return o.forEach(c.ranges,function(b){b=o.extend({},c,b),delete b.ranges,this[a](b)},this),this;var f=c._natives={},i="",l;return o.extend(f,b),c._natives.type=a,c._running=!1,f.start=f.start||f["in"],f.end=f.end||f.out,c.once&&(f.end=k(f.end,function(){this.removeTrackEvent(c._id)})),f._teardown=k(function(){var a=g.call(arguments),b=this.data.running[f.type];a.unshift(null),a[1]._running&&b.splice(b.indexOf(c),1)&&f.end.apply(this,a)},f._teardown),c.compose=c.compose&&c.compose.split(" ")||[],c.effect=c.effect&&c.effect.split(" ")||[],c.compose=c.compose.concat(c.effect),c.compose.forEach(function(a){i=o.compositions[a]||{},j.forEach(function(a){f[a]=k(f[a],i[a])})}),c._natives.manifest=d,"start"in c||(c.start=c["in"]||0),!c.end&&c.end!==0&&(c.end=c.out||Number.MAX_VALUE),h.call(c,"toString")||(c.toString=function(){var b=["start: "+c.start,"end: "+c.end,"id: "+(c.id||c._id)];return c.target!=null&&b.push("target: "+c.target),a+" ( "+b.join(", ")+" )"}),c.target||(l="options"in d&&d.options,c.target=l&&"target"in l&&l.target),c._natives&&(c._id=o.guid(c._natives.type)),c._natives._setup&&c._natives._setup.call(this,c),o.addTrackEvent(this,c),o.forEach(b,function(a,b){b!=="type"&&e.indexOf(b)===-1&&this.on(b,a)},this),this};o.p[a]=f[a]=function(c,d){var e;if(c&&!d)d=c;else{if(e=this.getTrackEvent(c))return d=o.extend({},e,d),o.addTrackEvent(this,d),this;d.id=c}return this.data.running[a]=this.data.running[a]||[],e=o.extend({},this.options.defaults&&this.options.defaults[a]||{},d),l.call(this,i?b.call(this,e):b,e)},d&&o.extend(b,{manifest:d});var m={fn:f[a],definition:b,base:b,parents:[],name:a};return o.registry.push(o.extend(f,m,{type:a})),o.registryByName[a]=m,f}o.error("'"+a+"' is a protected function name")},o.plugin.errors=[],o.plugin.debug=o.version==="1.3",o.removePlugin=function(a,b){if(!b){b=a,a=o.p;if(o.protect.natives.indexOf(b.toLowerCase())>=0){o.error("'"+b+"' is a protected function name");return}var c=o.registry.length,d;for(d=0;d<c;d++)if(o.registry[d].name===b){o.registry.splice(d,1),delete o.registryByName[b],delete o.manifest[b],delete a[b];return}}c=a.data.trackEvents.byStart,d=a.data.trackEvents.byEnd;var e=a.data.trackEvents.animating,f,g;f=0;for(g=c.length;f<g;f++)c[f]&&c[f]._natives&&c[f]._natives.type===b&&(c[f]._natives._teardown&&c[f]._natives._teardown.call(a,c[f]),c.splice(f,1),f--,g--,a.data.trackEvents.startIndex<=f&&(a.data.trackEvents.startIndex--,a.data.trackEvents.endIndex--)),d[f]&&d[f]._natives&&d[f]._natives.type===b&&d.splice(f,1);f=0;for(g=e.length;f<g;f++)e[f]&&e[f]._natives&&e[f]._natives.type===b&&(e.splice(f,1),f--,g--)},o.compositions={},o.compose=function(a,b,c){o.manifest[a]=c||b.manifest||{},o.compositions[a]=b},o.plugin.effect=o.effect=o.compose;var p=/^(?:\.|#|\[)/;o.dom={debug:!1,find:function(a,c){var d=null;a=a.trim(),c=c||b;if(a){if(!p.test(a)){d=b.getElementById(a);if(d!==null)return d}try{d=c.querySelector(a)}catch(e){if(o.dom.debug)throw Error(e)}}return d}};var q=/\?/,r={url:"",data:"",dataType:"",success:o.nop,type:"GET",async:!0,xhr:function(){return new a.XMLHttpRequest}};o.xhr=function(a){a.dataType=a.dataType&&a.dataType.toLowerCase()||null;if(!a.dataType||a.dataType!=="jsonp"&&a.dataType!=="script"){a=o.extend({},r,a),a.ajax=a.xhr();if(a.ajax)return a.type==="GET"&&a.data&&(a.url+=(q.test(a.url)?"&":"?")+a.data,a.data=null),a.ajax.open(a.type,a.url,a.async),a.ajax.send(a.data||null),o.xhr.httpData(a)}else o.xhr.getJSONP(a.url,a.success,a.dataType==="script")},o.xhr.httpData=function(a){var b,c=null,d,e=null;return a.ajax.onreadystatechange=function(){if(a.ajax.readyState===4){try{c=JSON.parse(a.ajax.responseText)}catch(f){}b={xml:a.ajax.responseXML,text:a.ajax.responseText,json:c};if(!b.xml||!b.xml.documentElement){b.xml=null;try{d=new DOMParser,e=d.parseFromString(a.ajax.responseText,"text/xml"),e.getElementsByTagName("parsererror").length||(b.xml=e)}catch(g){}}a.dataType&&(b=b[a.dataType]),a.success.call(a.ajax,b)}},b},o.xhr.getJSONP=function(a,c,d){var e=b.head||b.getElementsByTagName("head")[0]||b.documentElement,f=b.createElement("script"),g=!1,h=[];h=/(=)\?(?=&|$)|\?\?/;var i,j;d||(j=a.match(/(callback=[^&]*)/),j!==null&&j.length?(h=j[1].split("=")[1],h==="?"&&(h="jsonp"),i=o.guid(h),a=a.replace(/(callback=[^&]*)/,"callback="+i)):(i=o.guid("jsonp"),h.test(a)&&(a=a.replace(h,"$1"+i)),h=a.split(/\?(.+)?/),a=h[0]+"?",h[1]&&(a+=h[1]+"&"),a+="callback="+i),window[i]=function(a){c&&c(a),g=!0}),f.addEventListener("load",function(){d&&c&&c(),g&&delete window[i],e.removeChild(f)},!1),f.src=a,e.insertBefore(f,e.firstChild)},o.getJSONP=o.xhr.getJSONP,o.getScript=o.xhr.getScript=function(a,b){return o.xhr.getJSONP(a,b,!0)},o.util={toSeconds:function(a,b){var c=/^([0-9]+:){0,2}[0-9]+([.;][0-9]+)?$/,d,e,f;return typeof a=="number"?a:(typeof a=="string"&&!c.test(a)&&o.error("Invalid time format"),c=a.split(":"),d=c.length-1,e=c[d],e.indexOf(";")>-1&&(e=e.split(";"),f=0,b&&typeof b=="number"&&(f=parseFloat(e[1],10)/b),c[d]=parseInt(e[0],10)+f),d=c[0],{1:parseFloat(d,10),2:parseInt(d,10)*60+parseFloat(c[1],10),3:parseInt(d,10)*3600+parseInt(c[1],10)*60+parseFloat(c[2],10)}[c.length||1])}},o.p.cue=o.p.exec,o.protect={natives:function(a){return Object.keys?Object.keys(a):function(a){var b,c=[];for(b in a)h.call(a,b)&&c.push(b);return c}(a)}(o.p).map(function(a){return a.toLowerCase()})},o.forEach({listen:"on",unlisten:"off",trigger:"emit",exec:"cue"},function(a,b){var c=o.p[b];o.p[b]=function(){return typeof console!="undefined"&&console.warn&&(console.warn("Deprecated method '"+b+"', "+(a==null?"do not use.":"use '"+a+"' instead.")),o.p[b]=c),o.p[a].apply(this,[].slice.call(arguments))}}),a.Popcorn=o}else{a.Popcorn={isSupported:!1};for(d="byId forEach extend effects error guid sizeOf isArray nop position disable enable destroyaddTrackEvent removeTrackEvent getTrackEvents getTrackEvent getLastTrackEventId timeUpdate plugin removePlugin compose effect xhr getJSONP getScript".split(/\s+/);d.length;)a.Popcorn[d.shift()]=function(){}}})(window,window.document),function(a,b){var c=a.document,d=a.location,e=/:\/\//,f=d.href.replace(d.href.split("/").slice(-1)[0],""),g=function(a,b,c){a=a||0,b=(b||a||0)+1,c=c||1,b=Math.ceil((b-a)/c)||0;var d=0,e=[];for(e.length=b;d<b;)e[d++]=a,a+=c;return e};b.sequence=function(a,c){return new b.sequence.init(a,c)},b.sequence.init=function(a,d){this.parent=c.getElementById(a),this.seqId=b.guid("__sequenced"),this.queue=[],this.playlist=[],this.inOuts={ofVideos:[],ofClips:[]},this.dims={width:0,height:0},this.active=0,this.playing=this.cycling=!1,this.times={last:0},this.events={};var g=this,h=0;return b.forEach(d,function(d,h){var i=c.createElement("video");i.preload="auto",i.controls=!0,i.style.display=h&&"none"||"",i.id=g.seqId+"-"+h,g.queue.push(i);var k=d["in"],l=d.out;g.inOuts.ofVideos.push({"in":k!==undefined&&k||1,out:l!==undefined&&l||0}),g.inOuts.ofVideos[h].out=g.inOuts.ofVideos[h].out||g.inOuts.ofVideos[h]["in"]+2,i.src=e.test(d.src)?d.src:f+d.src,i.setAttribute("data-sequence-owner",a),i.setAttribute("data-sequence-guid",g.seqId),i.setAttribute("data-sequence-id",h),i.setAttribute("data-sequence-clip",[g.inOuts.ofVideos[h]["in"],g.inOuts.ofVideos[h].out].join(":")),g.parent.appendChild(i),g.playlist.push(b("#"+i.id))}),g.inOuts.ofVideos.forEach(function(a){a={"in":h,out:h+(a.out-a["in"])},g.inOuts.ofClips.push(a),h=a.out+1}),b.forEach(this.queue,function(a,c){function d(){return c||(g.dims.width=a.videoWidth,g.dims.height=a.videoHeight),a.currentTime=g.inOuts.ofVideos[c]["in"]-.5,a.removeEventListener("canplaythrough",d,!1),!0}a.addEventListener("canplaythrough",d,!1),a.addEventListener("play",function(){g.playing=!0},!1),a.addEventListener("pause",function(){g.playing=!1},!1),a.addEventListener("timeupdate",function(c){c=c.srcElement||c.target,c=+(c.dataset&&c.dataset.sequenceId||c.getAttribute("data-sequence-id"));var d=Math.floor(a.currentTime);g.times.last!==d&&c===g.active&&(g.times.last=d,d===g.inOuts.ofVideos[c].out&&b.sequence.cycle.call(g,c))},!1)}),this},b.sequence.init.prototype=b.sequence.prototype,b.sequence.cycle=function(a){this.queue||b.error("Popcorn.sequence.cycle is not a public method");var c=this.queue,d=this.inOuts.ofVideos,e=c[a],f=0,g;return c[a+1]&&(f=a+1),c[a+1]?(c=c[f],d=d[f],b.extend(c,{width:this.dims.width,height:this.dims.height}),g=this.playlist[f],e.pause(),this.active=f,this.times.last=d["in"]-1,g.currentTime(d["in"]),g[f?"play":"pause"](),this.trigger("cycle",{position:{previous:a,current:f}}),f&&(e.style.display="none",c.style.display=""),this.cycling=!1):this.playlist[a].pause(),this};var h=["timeupdate","play","pause"];b.extend(b.sequence.prototype,{eq:function(a){return this.playlist[a]},remove:function(){this.parent.innerHTML=null},clip:function(a){return this.inOuts.ofVideos[a]},duration:function(){for(var a=0,b=this.inOuts.ofClips,c=0;c<b.length;c++)a+=b[c].out-b[c]["in"]+1;return a-1},play:function(){return this.playlist[this.active].play(),this},exec:function(a,c){var d=this.active;return this.inOuts.ofClips.forEach(function(b,c){a>=b["in"]&&a<=b.out&&(d=c)}),a+=this.inOuts.ofVideos[d]["in"]-this.inOuts.ofClips[d]["in"],b.addTrackEvent(this.playlist[d],{start:a-1,end:a,_running:!1,_natives:{start:c||b.nop,end:b.nop,type:"exec"}}),this},listen:function(a,c){var d=this,e=this.playlist,f=e.length,g=0;return c||(c=b.nop),b.Events.Natives.indexOf(a)>-1?b.forEach(e,function(b){b.listen(a,function(e){e.active=d,h.indexOf(a)>-1?c.call(b,e):++g===f&&c.call(b,e)})}):(this.events[a]||(this.events[a]={}),e=c.name||b.guid("__"+a),this.events[a][e]=c),this},unlisten:function(){},trigger:function(a,c){var d=this;if(!(b.Events.Natives.indexOf(a)>-1))return this.events[a]&&b.forEach(this.events[a],function(b){b.call(d,{type:a},c)}),this}}),b.forEach(b.manifest,function(a,c){b.sequence.prototype[c]=function(a){var d={},e=[],f,h,i,j,k;for(f=0;f<this.inOuts.ofClips.length;f++)e=this.inOuts.ofClips[f],h=g(e["in"],e.out),i=h.indexOf(a.start),j=h.indexOf(a.end),i>-1&&(d[f]=b.extend({},e,{start:h[i],clipIdx:i})),j>-1&&(d[f]=b.extend({},e,{end:h[j],clipIdx:j}));f=Object.keys(d).map(function(a){return+a}),e=g(f[0],f[1]);for(f=0;f<e.length;f++){i={},j=e[f];var l=d[j];l?(k=this.inOuts.ofVideos[j],h=l.clipIdx,k=g(k["in"],k.out),l.start&&(i.start=k[h],i.end=k[k.length-1]),l.end&&(i.start=k[0],i.end=k[h])):(i.start=this.inOuts.ofVideos[j]["in"],i.end=this.inOuts.ofVideos[j].out),this.playlist[j][c](b.extend({},a,i))}return this}})}(this,Popcorn),function(a){document.addEventListener("DOMContentLoaded",function(){var b=document.querySelectorAll("[data-timeline-sources]");a.forEach(b,function(c,d){var e=b[d],g,h,i;e.id||(e.id=a.guid("__popcorn")),e.nodeType&&e.nodeType===1&&(i=a("#"+e.id),g=(e.getAttribute("data-timeline-sources")||"").split(","),g[0]&&a.forEach(g,function(a){h=a.split("!"),h.length===1&&(h=a.match(/(.*)[\/\\]([^\/\\]+\.\w+)$/)[2].split("."),h[0]="parse"+h[1].toUpperCase(),h[1]=a),g[0]&&i[h[0]]&&i[h[0]](h[1])}),i.autoplay()&&i.play())})},!1)}(Popcorn),function(a,b){function c(a){a=typeof a=="string"?a:[a.language,a.region].join("-");var b=a.split("-");return{iso6391:a,language:b[0]||"",region:b[1]||""}}var d=a.navigator,e=c(d.userLanguage||d.language);b.locale={get:function(){return e},set:function(a){return e=c(a),b.locale.broadcast(),e},broadcast:function(a){var c=b.instances,d=c.length,e=0,g;for(a=a||"locale:changed";e<d;e++)g=c[e],a in g.data.events&&g.trigger(a)}}}(this,this.Popcorn),function(a){var b=Object.prototype.hasOwnProperty;a.parsers={},a.parser=function(c,d,e){if(a.protect.natives.indexOf(c.toLowerCase())>=0)a.error("'"+c+"' is a protected function name");else{typeof d=="function"&&!e&&(e=d,d="");if(typeof e=="function"&&typeof d=="string"){var g={};return g[c]=function(c,g){if(!c)return this;var h=this;return a.xhr({url:c,dataType:d,success:function(a){var c,d,k=0;a=e(a).data||[];if(c=a.length){for(;k<c;k++){d=a[k];for(var l in d)b.call(d,l)&&h[l]&&h[l](d[l])}g&&g()}}}),this},a.extend(a.p,g),g}}}}(Popcorn),function(a){var b=function(b,c){return b=b||a.nop,c=c||a.nop,function(){b.apply(this,arguments),c.apply(this,arguments)}},c=/^.*\.(ogg|oga|aac|mp3|wav)($|\?)/,d=/^.*\.(ogg|oga|aac|mp3|wav|ogg|ogv|mp4|webm)($|\?)/;a.player=function(c,d){if(!a[c]){d=d||{};var e=function(c,e,g){g=g||{};var h=new Date/1e3,i=h,j=0,k=0,l=1,m=!1,n={},o=typeof c=="string"?a.dom.find(c):c,p={};Object.prototype.__defineGetter__||(p=o||document.createElement("div"));for(var q in o)q in p||(typeof o[q]=="object"?p[q]=o[q]:typeof o[q]=="function"?p[q]=function(a){return"length"in o[a]&&!o[a].call?o[a]:function(){return o[a].apply(o,arguments)}}(q):a.player.defineProperty(p,q,{get:function(a){return function(){return o[a]}}(q),set:a.nop,configurable:!0}));var s=function(){h=new Date/1e3,p.paused||(p.currentTime+=h-i,p.dispatchEvent("timeupdate"),setTimeout(s,10)),i=h};return p.play=function(){this.paused=!1,p.readyState>=4&&(i=new Date/1e3,p.dispatchEvent("play"),s())},p.pause=function(){this.paused=!0,p.dispatchEvent("pause")},a.player.defineProperty(p,"currentTime",{get:function(){return j},set:function(a){return j=+a,p.dispatchEvent("timeupdate"),j},configurable:!0}),a.player.defineProperty(p,"volume",{get:function(){return l},set:function(a){return l=+a,p.dispatchEvent("volumechange"),l},configurable:!0}),a.player.defineProperty(p,"muted",{get:function(){return m},set:function(a){return m=+a,p.dispatchEvent("volumechange"),m},configurable:!0}),a.player.defineProperty(p,"readyState",{get:function(){return k},set:function(a){return k=a},configurable:!0}),p.addEventListener=function(a,b){return n[a]||(n[a]=[]),n[a].push(b),b},p.removeEventListener=function(a,b){var c,d=n[a];if(d){for(c=n[a].length-1;c>=0;c--)b===d[c]&&d.splice(c,1);return b}},p.dispatchEvent=function(b){var c,d=b.type;if(!d){d=b;if(b=a.events.getInterface(d))c=document.createEvent(b),c.initEvent(d,!0,!0,window,1)}if(n[d])for(b=n[d].length-1;b>=0;b--)n[d][b].call(this,c,this)},p.src=e||"",p.duration=0,p.paused=!0,p.ended=0,g&&g.events&&a.forEach(g.events,function(a,b){p.addEventListener(b,a,!1)}),d._canPlayType(o.nodeName,e)!==!1?d._setup?d._setup.call(p,g):(p.readyState=4,p.dispatchEvent("loadedmetadata"),p.dispatchEvent("loadeddata"),p.dispatchEvent("canplaythrough")):setTimeout(function(){p.dispatchEvent("error")},0),c=new a.p.init(p,g),d._teardown&&(c.destroy=b(c.destroy,function(){d._teardown.call(p,g)})),c};e.canPlayType=d._canPlayType=d._canPlayType||a.nop,a[c]=a.player.registry[c]=e}},a.player.registry={},a.player.defineProperty=Object.defineProperty||function(b,c,d){b.__defineGetter__(c,d.get||a.nop),b.__defineSetter__(c,d.set||a.nop)},a.player.playerQueue=function(){var a=[],b=!1;return{next:function(){b=!1,a.shift(),a[0]&&a[0]()},add:function(c){a.push(function(){b=!0,c&&c()}),!b&&a[0]()}}},a.smart=function(b,e,f){var g=["AUDIO","VIDEO"],h,i=a.dom.find(b),j;h=document.createElement("video");var k={ogg:"video/ogg",ogv:"video/ogg",oga:"audio/ogg",webm:"video/webm",mp4:"video/mp4",mp3:"audio/mp3"};if(i){if(g.indexOf(i.nodeName)>-1&&!e)return typeof e=="object"&&(f=e),a(i,f);typeof e=="string"&&(e=[e]),b=0;for(srcLength=e.length;b<srcLength;b++){j=d.exec(e[b]),j=!j||!j[1]?!1:h.canPlayType(k[j[1]]);if(j){e=e[b];break}for(var l in a.player.registry)if(a.player.registry.hasOwnProperty(l)&&a.player.registry[l].canPlayType(i.nodeName,e[b]))return a[l](i,e[b],f)}return g.indexOf(i.nodeName)===-1&&(h=typeof e=="string"?e:e.length?e[0]:e,b=document.createElement(c.exec(h)?g[0]:g[1]),b.controls=!0,i.appendChild(b),i=b),f&&f.events&&f.events.error&&i.addEventListener("error",f.events.error,!1),i.src=e,a(i,f)}a.error("Specified target "+b+" was not found.")}}(Popcorn),function(a){var b=function(b,c){var d=0,e=0,f;a.forEach(c.classes,function(a,b){f=[],a==="parent"?f[0]=document.querySelectorAll("#"+c.target)[0].parentNode:f=document.querySelectorAll("#"+c.target+" "+a),d=0;for(e=f.length;d<e;d++)f[d].classList.toggle(b)})};a.compose("applyclass",{manifest:{about:{name:"Popcorn applyclass Effect",version:"0.1",author:"@scottdowne",website:"scottdowne.wordpress.com"},options:{}},_setup:function(a){a.classes={},a.applyclass=a.applyclass||"";for(var b=a.applyclass.replace(/\s/g,"").split(","),c=[],d=0,e=b.length;d<e;d++)c=b[d].split(":"),c[0]&&(a.classes[c[0]]=c[1]||"")},start:b,end:b})}(Popcorn),function(a){var b=/(?:http:\/\/www\.|http:\/\/|www\.|\.|^)(youtu|vimeo|soundcloud|baseplayer)/,c={},d={vimeo:!1,youtube:!1,soundcloud:!1,module:!1};Object.defineProperty(c,void 0,{get:function(){return d[void 0]},set:function(a){d[void 0]=a}}),a.plugin("mediaspawner",{manifest:{about:{name:"Popcorn Media Spawner Plugin",version:"0.1",author:"Matthew Schranz, @mjschranz",website:"mschranz.wordpress.com"},options:{source:{elem:"input",type:"text",label:"Media Source","default":"http://www.youtube.com/watch?v=CXDstfD9eJ0"},caption:{elem:"input",type:"text",label:"Media Caption","default":"Popcorn Popping",optional:!0},target:"mediaspawner-container",start:{elem:"input",type:"number",label:"Start"},end:{elem:"input",type:"number",label:"End"},autoplay:{elem:"input",type:"checkbox",label:"Autoplay Video",optional:!0},width:{elem:"input",type:"number",label:"Media Width","default":400,units:"px",optional:!0},height:{elem:"input",type:"number",label:"Media Height","default":200,units:"px",optional:!0}}},_setup:function(d){function e(){function b(){i!=="HTML5"&&!window.Popcorn[i]?setTimeout(function(){b()},300):(d.id=d._container.id,d._container.style.width=d.width+"px",d._container.style.height=d.height+"px",d.popcorn=a.smart("#"+d.id,d.source),i==="HTML5"&&d.popcorn.controls(!0),d._container.style.width="0px",d._container.style.height="0px",d._container.style.visibility="hidden",d._container.style.overflow="hidden")}i!=="HTML5"&&!window.Popcorn[i]&&!c[i]?(c[i]=!0,a.getScript("http://popcornjs.org/code/players/"+i+"/popcorn."+i+".js",function(){b()})):b()}function g(){window.Popcorn.player?e():setTimeout(function(){g()},300)}var h=document.getElementById(d.target)||{},i,j,k;(j=b.exec(d.source))?(i=j[1],i==="youtu"&&(i="youtube")):i="HTML5",d._type=i,d._container=document.createElement("div"),j=d._container,j.id="mediaSpawnerdiv-"+a.guid(),d.width=d.width||400,d.height=d.height||200,d.caption&&(k=document.createElement("div"),k.innerHTML=d.caption,k.style.display="none",d._capCont=k,j.appendChild(k)),h&&h.appendChild(j),!window.Popcorn.player&&!c.module?(c.module=!0,a.getScript("http://popcornjs.org/code/modules/player/popcorn.player.js",g)):g()},start:function(a,b){b._capCont&&(b._capCont.style.display=""),b._container.style.width=b.width+"px",b._container.style.height=b.height+"px",b._container.style.visibility="visible",b._container.style.overflow="visible",b.autoplay&&b.popcorn.play()},end:function(a,b){b._capCont&&(b._capCont.style.display="none"),b._container.style.width="0px",b._container.style.height="0px",b._container.style.visibility="hidden",b._container.style.overflow="hidden",b.popcorn.pause()},_teardown:function(a){a.popcorn&&a.popcorn.destory&&a.popcorn.destroy(),document.getElementById(a.target)&&document.getElementById(a.target).removeChild(a._container)}})}(Popcorn,this),function(a){a.plugin("code",function(b){var c=!1,d=this,e=function(){var a=function(a){return function(b,e){var f=function(){c&&b.call(d,e),c&&a(f)};f()}};return window.webkitRequestAnimationFrame?a(window.webkitRequestAnimationFrame):window.mozRequestAnimationFrame?a(window.mozRequestAnimationFrame):a(function(a){window.setTimeout(a,16)})}();if(!b.onStart||typeof b.onStart!="function")b.onStart=a.nop;return b.onEnd&&typeof b.onEnd!="function"&&(b.onEnd=undefined),b.onFrame&&typeof b.onFrame!="function"&&(b.onFrame=undefined),{start:function(a,b){b.onStart.call(d,b),b.onFrame&&(c=!0,e(b.onFrame,b))},end:function(a,b){b.onFrame&&(c=!1),b.onEnd&&b.onEnd.call(d,b)}}},{about:{name:"Popcorn Code Plugin",version:"0.1",author:"David Humphrey (@humphd)",website:"http://vocamus.net/dave"},options:{start:{elem:"input",type:"number",label:"Start"},end:{elem:"input",type:"number",label:"End"},onStart:{elem:"input",type:"function",label:"onStart"},onFrame:{elem:"input",type:"function",label:"onFrame",optional:!0},onEnd:{elem:"input",type:"function",label:"onEnd"}}})}(Popcorn),function(a){var b=0;a.plugin("flickr",function(c){var d,e=document.getElementById(c.target),g,h,i,j,k=c.numberofimages||4,l=c.height||"50px",m=c.width||"50px",n=c.padding||"5px",o=c.border||"0px";d=document.createElement("div"),d.id="flickr"+b,d.style.width="100%",d.style.height="100%",d.style.display="none",b++,e&&e.appendChild(d);var p=function(){g?setTimeout(function(){p()},5):(h="http://api.flickr.com/services/rest/?method=flickr.people.findByUsername&",h+="username="+c.username+"&api_key="+c.apikey+"&format=json&jsoncallback=flickr",a.getJSONP(h,function(a){g=a.user.nsid,q()}))},q=function(){h="http://api.flickr.com/services/feeds/photos_public.gne?",g&&(h+="id="+g+"&"),c.tags&&(h+="tags="+c.tags+"&"),h+="lang=en-us&format=json&jsoncallback=flickr",a.xhr.getJSONP(h,function(b){var c=document.createElement("div");c.innerHTML="<p style='padding:"+n+";'>"+b.title+"<p/>",a.forEach(b.items,function(a,b){if(!(b<k))return!1;i=document.createElement("a"),i.setAttribute("href",a.link),i.setAttribute("target","_blank"),j=document.createElement("img"),j.setAttribute("src",a.media.m),j.setAttribute("height",l),j.setAttribute("width",m),j.setAttribute("style","border:"+o+";padding:"+n),i.appendChild(j),c.appendChild(i)}),d.appendChild(c)})};return c.username&&c.apikey?p():(g=c.userid,q()),{start:function(){d.style.display="inline"},end:function(){d.style.display="none"},_teardown:function(a){document.getElementById(a.target)&&document.getElementById(a.target).removeChild(d)}}},{about:{name:"Popcorn Flickr Plugin",version:"0.2",author:"Scott Downe, Steven Weerdenburg, Annasob",website:"http://scottdowne.wordpress.com/"},options:{start:{elem:"input",type:"number",label:"Start"},end:{elem:"input",type:"number",label:"End"},userid:{elem:"input",type:"text",label:"User ID",optional:!0},tags:{elem:"input",type:"text",label:"Tags"},username:{elem:"input",type:"text",label:"Username",optional:!0},apikey:{elem:"input",type:"text",label:"API Key",optional:!0},target:"flickr-container",height:{elem:"input",type:"text",label:"Height","default":"50px",optional:!0},width:{elem:"input",type:"text",label:"Width","default":"50px",optional:!0},padding:{elem:"input",type:"text",label:"Padding",optional:!0},border:{elem:"input",type:"text",label:"Border","default":"5px",optional:!0},numberofimages:{elem:"input",type:"number","default":4,label:"Number of Images"}}})}(Popcorn),function(a){a.plugin("footnote",{manifest:{about:{name:"Popcorn Footnote Plugin",version:"0.2",author:"@annasob, @rwaldron",website:"annasob.wordpress.com"},options:{start:{elem:"input",type:"number",label:"Start"},end:{elem:"input",type:"number",label:"End"},text:{elem:"input",type:"text",label:"Text"},target:"footnote-container"}},_setup:function(b){var c=a.dom.find(b.target);b._container=document.createElement("div"),b._container.style.display="none",b._container.innerHTML=b.text,c.appendChild(b._container)},start:function(a,b){b._container.style.display="inline"},end:function(a,b){b._container.style.display="none"},_teardown:function(b){var c=a.dom.find(b.target);c&&c.removeChild(b._container)}})}(Popcorn),function(a){function b(a){return String(a).replace(/&(?!\w+;)|[<>"']/g,function(a){return d[a]||a})}function c(a,b){var c=a.container=document.createElement("div"),d=c.style,e=a.media,f=function(){var b=a.position();d.fontSize="36pt",d.width=e.offsetWidth+"px",d.top=b.top+e.offsetHeight-c.offsetHeight-40+"px",d.left=b.left+"px",setTimeout(f,10)};return c.id=b||"",d.position="absolute",d.color="white",d.textShadow="black 2px 2px 6px",d.fontWeight="bold",d.textAlign="center",f(),a.media.parentNode.appendChild(c),c}var d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};a.plugin("text",{manifest:{about:{name:"Popcorn Text Plugin",version:"0.1",author:"@humphd"},options:{start:{elem:"input",type:"number",label:"Start"},end:{elem:"input",type:"number",label:"End"},text:{elem:"input",type:"text",label:"Text","default":"Popcorn.js"},escape:{elem:"input",type:"checkbox",label:"Escape"},multiline:{elem:"input",type:"checkbox",label:"Multiline"}}},_setup:function(d){var e,g,h=d._container=document.createElement("div");h.style.display="none",d.target?(e=a.dom.find(d.target))?["VIDEO","AUDIO"].indexOf(e.nodeName)>-1&&(e=c(this,d.target+"-overlay")):e=c(this,d.target):e=this.container?this.container:c(this),d._target=e,g=d.escape?b(d.text):d.text,g=d.multiline?g.replace(/\r?\n/gm,"<br>"):g,h.innerHTML=g||"",e.appendChild(h)},start:function(a,b){b._container.style.display="inline"},end:function(a,b){b._container.style.display="none"},_teardown:function(a){var b=a._target;b&&b.removeChild(a._container)}})}(Popcorn);

--- 04 May 2013 22:15:34 ---
http://udvikl.es/nettv/plex/
Uncaught exception: TypeError: 'Settings.init' is not a function

Error thrown at line 1, column 49879 in init() in http://udvikl.es/nettv/plex/scripts/15821ffb.app.js:
    var a=Settings.init();
called from line 1, column 0 in <anonymous function>(event):
    init()
snoerenberg commented 11 years ago

Same issue over here. Currently the emulator cannot be downloaded.

snoerenberg commented 11 years ago

I got it to work somehow. At first I just wanted to get this up and running within the emulator but when I tried it again on my TV it was just working.

I think it belongs to a problem with the movie database. I cleaned up a lot of my films and tv series and now it works like expected.

So please try to start with a small amount of videos/films which can be successful analyzed. Maybe we can get to the problem on this way. I cannot reproduce the error anymore because I renamed and deleted a lot of files.