Socket
Socket
Sign inDemoInstall

opentok-camera-filters

Package Overview
Dependencies
1
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.1.2

2

package.json
{
"name": "opentok-camera-filters",
"version": "1.1.1",
"version": "1.1.2",
"description": "Streaming from a Canvas with Filters to an OpenTok Session",

@@ -5,0 +5,0 @@ "main": "src/filter.js",

@@ -50,3 +50,5 @@ const mockGetUserMedia = require('./mock-get-user-media');

// Stop running the filter
selectedFilter.stop();
if (selectedFilter) {
selectedFilter.stop();
}
});

@@ -53,0 +55,0 @@ },

@@ -6,3 +6,2 @@ module.exports = function filterTask(videoElement, canvas, selectedFilter) {

let stopped = false;
let myId = Math.random() * 1000;

@@ -26,3 +25,2 @@ // Draws a frame on the specified canvas after applying the selected filter every

if (!stopped) {
console.log(`requestAnimationFrame ${myId}`);
requestAnimationFrame(drawFrame);

@@ -29,0 +27,0 @@ } else {

@@ -68,5 +68,4 @@ /* global describe it expect OT beforeEach SESSION_ID TOKEN API_KEY jasmine spyOn */

expect(pubErr).toBeFalsy();
publisher.on('destroyed', done);
session.disconnect();
publisher.destroy();
done();
});

@@ -73,0 +72,0 @@ filter.setPublisher(publisher);

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc