Skip to content

Commit

Permalink
v1.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Elecash committed Mar 25, 2016
1 parent 07016c1 commit f5942ba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "videogular",
"version": "1.4.2",
"version": "1.4.3",
"main": "./videogular.js",
"dependencies": {
"angular": "^1.3.x",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "videogular",
"version": "1.4.2",
"version": "1.4.3",
"main": "index.js",
"dependencies": {
"angular": "~1.3.0",
Expand Down
6 changes: 3 additions & 3 deletions videogular.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license videogular v1.4.2 http://videogular.com
* @license videogular v1.4.3 http://videogular.com
* Two Fucking Developers http://twofuckingdevelopers.com
* License: MIT
*/
Expand Down Expand Up @@ -251,7 +251,7 @@ angular.module("com.2fdevs.videogular")

this.updateBuffer(event);

if (event.target.duration != Infinity) {
if (event.target.duration != Infinity && event.target.duration != null && event.target.duration != undefined && event.target.duration != 1.7976931348623157e+308) {
// Fake the duration and current time for virtual clips
if (isVirtualClip) {
if (hasStartTimePlayed && (event.target.currentTime < this.startTime || event.target.currentTime - this.startTime > this.virtualClipDuration)) {
Expand Down Expand Up @@ -1578,9 +1578,9 @@ angular.module("com.2fdevs.videogular")
*/
this.supportsLocalStorage = function () {
var testKey = 'videogular-test-key';
var storage = $window.sessionStorage;

try {
var storage = $window.sessionStorage;
storage.setItem(testKey, '1');
storage.removeItem(testKey);
return 'localStorage' in $window && $window['localStorage'] !== null;
Expand Down
Loading

0 comments on commit f5942ba

Please sign in to comment.