Socket
Socket
Sign inDemoInstall

videocontext

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

videocontext - npm Package Compare versions

Comparing version 0.50.3 to 0.50.4

2

package.json
{
"name": "videocontext",
"version": "0.50.3",
"version": "0.50.4",
"description": "A WebGL & HTML5 graph based video composition library",

@@ -5,0 +5,0 @@ "keywords":["video", "context", "composition", "timeline", "html5", "webgl"],

@@ -17,3 +17,4 @@ //Matthew Shotton, R&D User Experience,© BBC 2015

this._isResponsibleForElementLifeCycle = true;
if (typeof src === "string" || src instanceof MediaStream){
if (typeof src === "string" || (window.MediaStream !== undefined && src instanceof MediaStream)){
//create the node from the passed URL or MediaStream

@@ -26,2 +27,4 @@ this._elementURL = src;

}

@@ -28,0 +31,0 @@ this._state = STATE.waiting;

@@ -93,10 +93,12 @@ //Matthew Shotton, R&D User Experience,© BBC 2015

this._element.setAttribute("webkit-playsinline", "");
this._element.setAttribute("playsinline", "");
this._playbackRateUpdated = true;
}
if (this._elementURL instanceof MediaStream){
if (window.MediaStream !== undefined && this._elementURL instanceof MediaStream){
this._element.srcObject = this._elementURL;
}else{
} else {
this._element.src = this._elementURL;
}
for (let key in this._attributes) {

@@ -103,0 +105,0 @@ this._element[key] = this._attributes[key];

@@ -30,4 +30,4 @@ //Matthew Shotton, R&D User Experience,© BBC 2015

* @param {WebGLRenderingContext} gl - the webgl context fo which to build the shader.
* @param {String} vertexShaderSource - A string of vertex shader code to compile.
* @param {String} fragmentShaderSource - A string of fragment shader code to compile.
* @param {WebGLShader} vertexShader - A compiled vertex shader.
* @param {WebGLShader} fragmentShader - A compiled fragment shader.
*

@@ -34,0 +34,0 @@ * @return {WebGLProgram} A compiled & linkde shader program.

@@ -25,2 +25,3 @@ function stripHash (url){

videoElement.setAttribute("webkit-playsinline", "");
videoElement.setAttribute("playsinline", "");
videoElement.src = "";

@@ -27,0 +28,0 @@ return videoElement;

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 not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc