From 17e72cbd619b0ffca0f6c34ad2a1fd53a840cada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vio=20Ribeiro?= Date: Sun, 9 Nov 2014 23:47:19 -0200 Subject: [PATCH] bump to 0.1.5 --- package.json | 2 +- src/log.js | 4 ++-- src/main.js | 2 +- src/settings.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index a34f17f..f48e16c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "p2phls", - "version": "0.1.4", + "version": "0.1.5", "description": "BemTV Peer-to-Peer plugin for HTTP Live Streaming transmissions on Clappr Media Player", "main": "dist/p2phls.js", "scripts": { diff --git a/src/log.js b/src/log.js index c74f8a3..1297040 100644 --- a/src/log.js +++ b/src/log.js @@ -19,8 +19,8 @@ class Log { onOff() { Settings.logging = !Settings.logging - if (Settings.logging) console.log('%c [WARNING] log enabled', 'color: red') - else console.log('%c [WARNING] log disabled', 'color: red') + if (Settings.logging) console.log('%c [INFO] log enabled', 'color: blue') + else console.log('%c [INFO] log disabled', 'color: blue') } log(level, message) { diff --git a/src/main.js b/src/main.js index 5c09a93..8705813 100644 --- a/src/main.js +++ b/src/main.js @@ -27,7 +27,7 @@ class P2PHLS extends HLS { } constructor(options) { - options.swfPath = "http://s.videos.globo.com/p3/plugins/assets/P2PHLSPlayer.swf" + options.swfPath = "http://s.videos.globo.com/p3/plugins/assets/P2PHLSPlayer2.swf" Settings = _.extend(Settings, options.bemtv) this.resourceRequester = new ResourceRequester({swarm: btoa(options.src.split("?")[0]), tracker: options.tracker}) this.uploadHandler = UploadHandler.getInstance() diff --git a/src/settings.js b/src/settings.js index c13a662..63efd8d 100644 --- a/src/settings.js +++ b/src/settings.js @@ -8,7 +8,7 @@ module.exports = { Turn on/off logging on browser's console on initialization. You can always turn on/off by pressing ctrl+shift+l on your browser tab. */ - logging: true, + logging: false, /* maxStorageChunks Maximum size of the storage in number of chunks. */