diff --git a/player/livestream.com.coffee b/player/livestream.com.coffee
new file mode 100644
index 00000000..41ce14b5
--- /dev/null
+++ b/player/livestream.com.coffee
@@ -0,0 +1,19 @@
+window.LivestreamPlayer = class LivestreamPlayer extends Player
+ constructor: (data) ->
+ if not (this instanceof LivestreamPlayer)
+ return new LivestreamPlayer(data)
+
+ @load(data)
+
+ load: (data) ->
+ @setMediaProperties(data)
+
+ @player = $('').attr(
+ src: "https://cdn.livestream.com/embed/#{data.id}?\
+ layout=4&\
+ color=0x000000&\
+ iconColorOver=0xe7e7e7&\
+ iconColor=0xcccccc"
+ frameborder: '0'
+ )
+ removeOld(@player)
diff --git a/player/update.coffee b/player/update.coffee
index 810e6162..bfd4d6b4 100644
--- a/player/update.coffee
+++ b/player/update.coffee
@@ -5,6 +5,7 @@ TYPE_MAP =
gd: VideoJSPlayer
gp: VideoJSPlayer
sc: SoundCloudPlayer
+ li: LivestreamPlayer
window.loadMediaPlayer = (data) ->
if data.type of TYPE_MAP
diff --git a/www/js/player-new.js b/www/js/player-new.js
index 2bd6cc4b..46f11029 100644
--- a/www/js/player-new.js
+++ b/www/js/player-new.js
@@ -1,5 +1,5 @@
(function() {
- var DailymotionPlayer, Player, SoundCloudPlayer, TYPE_MAP, VideoJSPlayer, VimeoPlayer, YouTubePlayer, sortSources,
+ var DailymotionPlayer, LivestreamPlayer, Player, SoundCloudPlayer, TYPE_MAP, VideoJSPlayer, VimeoPlayer, YouTubePlayer, sortSources,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
@@ -714,13 +714,37 @@
})(Player);
+ window.LivestreamPlayer = LivestreamPlayer = (function(superClass) {
+ extend(LivestreamPlayer, superClass);
+
+ function LivestreamPlayer(data) {
+ if (!(this instanceof LivestreamPlayer)) {
+ return new LivestreamPlayer(data);
+ }
+ this.load(data);
+ }
+
+ LivestreamPlayer.prototype.load = function(data) {
+ this.setMediaProperties(data);
+ this.player = $('').attr({
+ src: "https://cdn.livestream.com/embed/" + data.id + "?layout=4&color=0x000000&iconColorOver=0xe7e7e7&iconColor=0xcccccc",
+ frameborder: '0'
+ });
+ return removeOld(this.player);
+ };
+
+ return LivestreamPlayer;
+
+ })(Player);
+
TYPE_MAP = {
yt: YouTubePlayer,
vi: VimeoPlayer,
dm: DailymotionPlayer,
gd: VideoJSPlayer,
gp: VideoJSPlayer,
- sc: SoundCloudPlayer
+ sc: SoundCloudPlayer,
+ li: LivestreamPlayer
};
window.loadMediaPlayer = function(data) {