From 32193e1e86ec001c506ac26a7503289cda1b70e2 Mon Sep 17 00:00:00 2001 From: Steve Heffernan Date: Tue, 19 Oct 2010 21:21:26 -0700 Subject: [PATCH] Updated readme. Fixed some JSlint complaints. --- README.markdown | 4 +++- video.js | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.markdown b/README.markdown index 1824ee496..ea507bcfe 100644 --- a/README.markdown +++ b/README.markdown @@ -1,6 +1,6 @@ VideoJS - [HTML5 Video Player](http://videojs.com) ================================================== -Version 1.1.2 +Version 1.1.3 View [VideoJS.com](http://videojs.com) for a demo and overview. @@ -134,10 +134,12 @@ Changelog - Feature: Width/Height functions for resizing the player - Feature: Made initial click & hold trigger new value on progress and volume - Feature: Made controls not hide when hovering over them +- Feature: Added big play button as default starting control. - Fix: Removed trailing comma that was breaking IE7 - Fix: Removed some vars from global scope - Fix: Changed a document.onmousemove to an eventListener to prevent conflicts - Fix: Added a unique ID to FlowPlayer demo object to fix a FlowPlayer bug. Thanks @emirpprime. +- Fix: Safari error on unloaded video 1.1.2 (2010-09-20) diff --git a/video.js b/video.js index 12d49fa94..b792c8ec3 100644 --- a/video.js +++ b/video.js @@ -90,7 +90,7 @@ var VideoJS = JRClass.extend({ return; // Use the devices default controls } - if (this.options.useBrowserControls == false) { + if (!this.options.useBrowserControls) { // Hide default controls this.video.controls = false; } @@ -734,7 +734,7 @@ var VideoJS = JRClass.extend({ setPlayProgress: function(newProgress){ try { this.video.currentTime = newProgress * this.video.duration; } catch(e) { - if (e.code = 11) { this.errors.push(VideoJS.errorCodes.videoNotReady); } + if (e.code == 11) { this.errors.push(VideoJS.errorCodes.videoNotReady); } } this.playProgress.style.width = newProgress * (_V_.getComputedStyleValue(this.progressHolder, "width").replace("px", "")) + "px"; this.updateTimeDisplay(); @@ -817,7 +817,7 @@ var VideoJS = JRClass.extend({ try { this.video.webkitEnterFullScreen(); } catch (e) { - if (e.code = 11) { this.errors.push(VideoJS.errorCodes.videoNotReady); } + if (e.code == 11) { this.errors.push(VideoJS.errorCodes.videoNotReady); } } return true; }