videocontext
Advanced tools
Comparing version 0.34.0 to 0.34.1
{ | ||
"name": "videocontext", | ||
"version": "0.34.0", | ||
"version": "0.34.1", | ||
"description": "A WebGL & HTML5 graph based video composition library", | ||
@@ -5,0 +5,0 @@ "keywords":["video", "context", "composition", "timeline", "html5", "webgl"], |
@@ -27,3 +27,3 @@ //Matthew Shotton, R&D User Experience,© BBC 2015 | ||
* @example | ||
* var canvasElement = document.getElemenyById("canvas"); | ||
* var canvasElement = document.getElementById("canvas"); | ||
* var ctx = new VideoContext(canvasElement, function(){console.error("Sorry, your browser dosen\'t support WebGL");}); | ||
@@ -134,3 +134,3 @@ * var videoNode = ctx.video("video.mp4"); | ||
* @example | ||
* var canvasElement = document.getElemenyById("canvas"); | ||
* var canvasElement = document.getElementById("canvas"); | ||
* var ctx = new VideoContext(canvasElement); | ||
@@ -152,3 +152,3 @@ * ctx.registerCallback("stalled", function(){console.log("Playback stalled");}); | ||
* @example | ||
* var canvasElement = document.getElemenyById("canvas"); | ||
* var canvasElement = document.getElementById("canvas"); | ||
* var ctx = new VideoContext(canvasElement); | ||
@@ -216,3 +216,3 @@ * | ||
* @example | ||
* var canvasElement = document.getElemenyById("canvas"); | ||
* var canvasElement = document.getElementById("canvas"); | ||
* var ctx = new VideoContext(canvasElement); | ||
@@ -251,3 +251,3 @@ * var videoNode = ctx.video("video.mp4"); | ||
* @example | ||
* var canvasElement = document.getElemenyById("canvas"); | ||
* var canvasElement = document.getElementById("canvas"); | ||
* var ctx = new VideoContext(canvasElement); | ||
@@ -259,3 +259,3 @@ * var videoNode = ctx.video("video.mp4"); | ||
* ctx.play(); | ||
* setTimeout(funtion(){console.log(ctx.currentTime);},1000); //should print roughly 1.0 | ||
* setTimeout(function(){console.log(ctx.currentTime);},1000); //should print roughly 1.0 | ||
* | ||
@@ -273,3 +273,3 @@ */ | ||
* @example | ||
* var canvasElement = document.getElemenyById("canvas"); | ||
* var canvasElement = document.getElementById("canvas"); | ||
* var ctx = new VideoContext(canvasElement); | ||
@@ -305,3 +305,3 @@ * console.log(ctx.duration); //prints 0 | ||
* @example | ||
* var canvasElement = document.getElemenyById("canvas"); | ||
* var canvasElement = document.getElementById("canvas"); | ||
* var ctx = new VideoContext(canvasElement); | ||
@@ -325,3 +325,3 @@ * var videoNode = ctx.video("video.mp4"); | ||
* @example | ||
* var canvasElement = document.getElemenyById("canvas"); | ||
* var canvasElement = document.getElementById("canvas"); | ||
* var ctx = new VideoContext(canvasElement); | ||
@@ -337,3 +337,6 @@ * var videoNode = ctx.video("video.mp4"); | ||
for (let node of this._sourceNodes) { | ||
if (node.constructor.name === "VideoNode") node._globalPlaybackRate = rate; | ||
if (node.constructor.name === "VideoNode"){ | ||
node._globalPlaybackRate = rate; | ||
node._playbackRateUpdated = true; | ||
} | ||
} | ||
@@ -356,3 +359,3 @@ this._playbackRate = rate; | ||
* @example | ||
* var canvasElement = document.getElemenyById("canvas"); | ||
* var canvasElement = document.getElementById("canvas"); | ||
* var ctx = new VideoContext(canvasElement); | ||
@@ -377,3 +380,3 @@ * var videoNode = ctx.video("video.mp4"); | ||
* @example | ||
* var canvasElement = document.getElemenyById("canvas"); | ||
* var canvasElement = document.getElementById("canvas"); | ||
* var ctx = new VideoContext(canvasElement); | ||
@@ -405,3 +408,3 @@ * var videoNode = ctx.video("video.mp4"); | ||
* @example | ||
* var canvasElement = document.getElemenyById("canvas"); | ||
* var canvasElement = document.getElementById("canvas"); | ||
* var ctx = new VideoContext(canvasElement); | ||
@@ -411,4 +414,4 @@ * var videoNode = ctx.video("video.mp4"); | ||
* @example | ||
* var canvasElement = document.getElemenyById("canvas"); | ||
* var videoElement = document.getElemenyById("video"); | ||
* var canvasElement = document.getElementById("canvas"); | ||
* var videoElement = document.getElementById("video"); | ||
* var ctx = new VideoContext(canvasElement); | ||
@@ -440,3 +443,3 @@ * var videoNode = ctx.video(videoElement); | ||
* @example | ||
* var canvasElement = document.getElemenyById("canvas"); | ||
* var canvasElement = document.getElementById("canvas"); | ||
* var ctx = new VideoContext(canvasElement); | ||
@@ -446,4 +449,4 @@ * var imageNode = ctx.image("image.png"); | ||
* @example | ||
* var canvasElement = document.getElemenyById("canvas"); | ||
* var imageElement = document.getElemenyById("image"); | ||
* var canvasElement = document.getElementById("canvas"); | ||
* var imageElement = document.getElementById("image"); | ||
* var ctx = new VideoContext(canvasElement); | ||
@@ -520,3 +523,3 @@ * var imageNode = ctx.image(imageElement); | ||
* | ||
* var canvasElement = document.getElemenyById("canvas"); | ||
* var canvasElement = document.getElementById("canvas"); | ||
* var ctx = new VideoContext(canvasElement); | ||
@@ -600,3 +603,3 @@ * | ||
* | ||
* var canvasElement = document.getElemenyById("canvas"); | ||
* var canvasElement = document.getElementById("canvas"); | ||
* var ctx = new VideoContext(canvasElement); | ||
@@ -698,3 +701,3 @@ * | ||
* | ||
* var canvasElement = document.getElemenyById("canvas"); | ||
* var canvasElement = document.getElementById("canvas"); | ||
* var ctx = new VideoContext(canvasElement, undefined, {"manualUpdate" : true}); | ||
@@ -701,0 +704,0 @@ * |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6584995
24312