From 8a277e9ca3a64d7b298b7c9333153f5512aa176d Mon Sep 17 00:00:00 2001 From: RblSb Date: Mon, 2 Mar 2020 12:11:32 +0300 Subject: Use git yt player externs --- build-client.hxml | 2 +- build-server.hxml | 2 +- build/server.js | 40 ++++++++++++++++++++-------------------- src/client/players/Youtube.hx | 2 +- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/build-client.hxml b/build-client.hxml index 7c499bf..40a0df1 100644 --- a/build-client.hxml +++ b/build-client.hxml @@ -1,4 +1,4 @@ --lib youtubeIFramePlayer +-lib youtubeIFramePlayer:git:https://github.com/okawa-h/youtubeIFramePlayer-externs.git -cp src --main client.Main -D analyzer-optimize diff --git a/build-server.hxml b/build-server.hxml index bcf8611..5f181aa 100644 --- a/build-server.hxml +++ b/build-server.hxml @@ -1,7 +1,7 @@ -lib hxnodejs -lib hxnodejs-ws # Client libs for completion --lib youtubeIFramePlayer +-lib youtubeIFramePlayer:git:https://github.com/okawa-h/youtubeIFramePlayer-externs.git -cp src --main server.Main -D analyzer-optimize diff --git a/build/server.js b/build/server.js index dac26c4..e642155 100644 --- a/build/server.js +++ b/build/server.js @@ -183,25 +183,6 @@ Lambda.exists = function(it,f) { } return false; }; -var haxe_ds_StringMap = function() { - this.h = { }; -}; -haxe_ds_StringMap.__name__ = true; -haxe_ds_StringMap.prototype = { - setReserved: function(key,value) { - if(this.rh == null) { - this.rh = { }; - } - this.rh["$" + key] = value; - } - ,getReserved: function(key) { - if(this.rh == null) { - return null; - } else { - return this.rh["$" + key]; - } - } -}; var Lang = function() { }; Lang.__name__ = true; Lang.request = function(path,callback) { @@ -557,6 +538,25 @@ haxe_crypto_Sha256.prototype = { return str.toLowerCase(); } }; +var haxe_ds_StringMap = function() { + this.h = { }; +}; +haxe_ds_StringMap.__name__ = true; +haxe_ds_StringMap.prototype = { + setReserved: function(key,value) { + if(this.rh == null) { + this.rh = { }; + } + this.rh["$" + key] = value; + } + ,getReserved: function(key) { + if(this.rh == null) { + return null; + } else { + return this.rh["$" + key]; + } + } +}; var haxe_io_Bytes = function(data) { this.length = data.byteLength; this.b = new Uint8Array(data); @@ -1568,9 +1568,9 @@ sys_FileSystem.createDirectory = function(path) { function $getIterator(o) { if( o instanceof Array ) return HxOverrides.iter(o); else return o.iterator(); } function $bind(o,m) { if( m == null ) return null; if( m.__id__ == null ) m.__id__ = $global.$haxeUID++; var f; if( o.hx__closures__ == null ) o.hx__closures__ = {}; else f = o.hx__closures__[m.__id__]; if( f == null ) { f = m.bind(o); o.hx__closures__[m.__id__] = f; } return f; } $global.$haxeUID |= 0; -var __map_reserved = {}; String.__name__ = true; Array.__name__ = true; +var __map_reserved = {}; Object.defineProperty(js__$Boot_HaxeError.prototype,"message",{ get : function() { return String(this.val); }}); diff --git a/src/client/players/Youtube.hx b/src/client/players/Youtube.hx index 3e84950..39328e0 100644 --- a/src/client/players/Youtube.hx +++ b/src/client/players/Youtube.hx @@ -182,7 +182,7 @@ class Youtube implements IPlayer { public function setTime(time:Float):Void { if (!isLoaded) return; - youtube.seekTo((time : Any), true); + youtube.seekTo(time, true); } } -- cgit v1.2.3