Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ziggeo-client-sdk

Package Overview
Dependencies
Maintainers
1
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ziggeo-client-sdk - npm Package Compare versions

Comparing version 2.37.3 to 2.38.1

demos/audio_player.html

2

bower.json

@@ -30,3 +30,3 @@ {

},
"version": "2.37.3"
"version": "2.38.1"
}
/*!
ziggeo-client-sdk - v2.37.3 - 2021-02-04
ziggeo-client-sdk - v2.38.1 - 2021-03-29
Copyright (c) Ziggeo

@@ -4,0 +4,0 @@ Closed Source Software License.

{
"name": "ziggeo-client-sdk",
"description": "Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your site, service or app. This is the JavaScript Client SDK.",
"version": "2.37.3",
"version": "2.38.1",
"author": "Ziggeo",

@@ -6,0 +6,0 @@ "repository": "https://github.com/Ziggeo/ziggeo-client-sdk.git",

@@ -1,2 +0,2 @@

# Ziggeo Client SDK 2.37.3
# Ziggeo Client SDK 2.38.1

@@ -3,0 +3,0 @@

@@ -1,10 +0,12 @@

QUnit.test("detect device microphone camera", function(assert) {
var done = assert.async();
ZiggeoApi.V2.Device.media();
ZiggeoApi.V2.Device.on("device_info", function (cams, mics, camCount, micCount) {
assert.ok(camCount > 0);
assert.ok(micCount > 0);
done();
});
QUnit.module("Device");
QUnit.test("detect microphone and camera", function(assert) {
var done = assert.async();
ZiggeoApi.V2.Device.media();
ZiggeoApi.V2.Device.on("device_info", function (cams, mics, camCount, micCount) {
assert.ok(camCount > 0);
assert.ok(micCount > 0);
done();
});
});

@@ -1,50 +0,52 @@

QUnit.test("Embed Player Via HTML", function(assert) {
var done = assert.async();
QUnit.module("Video Player");
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><ziggeoplayer ziggeo-video='" + window.ZiggeoDemoVideo + "' ziggeo-theme='modern'></ziggeoplayer><br/>";
QUnit.test("embed via HTML", function(assert) {
var done = assert.async();
var playerElement = rootElement.querySelector("ziggeoplayer");
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><ziggeoplayer ziggeo-video='" + window.ZiggeoDemoVideo + "' ziggeo-theme='modern'></ziggeoplayer><br/>";
ZiggeoApi.V2.Player.findByElementPromise(playerElement).success(function (playerInstance) {
playerInstance.on("playing", function () {
assert.ok(true, "playing");
playerInstance.on("paused ended", function () {
assert.ok(true, "paused");
rootElement.innerHTML = "";
done();
}, this, {eventually: true});
});
//playerInstance.play();
});
var playerElement = rootElement.querySelector("ziggeoplayer");
ZiggeoApi.V2.Player.findByElementPromise(playerElement).success(function (playerInstance) {
playerInstance.on("playing", function () {
assert.ok(true, "playing");
playerInstance.on("paused ended", function () {
assert.ok(true, "paused");
rootElement.innerHTML = "";
done();
}, this, {eventually: true});
});
//playerInstance.play();
});
});
QUnit.test("Embed Player Via JS", function(assert) {
var done = assert.async();
QUnit.test("embed via JS", function(assert) {
var done = assert.async();
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<div></div>";
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<div></div>";
var playerElement = rootElement.querySelector("div");
var playerElement = rootElement.querySelector("div");
var playerInstance = new ZiggeoApi.V2.Player({
element: playerElement,
attrs: {
video: window.ZiggeoDemoVideo,
theme: "modern"
}
});
var playerInstance = new ZiggeoApi.V2.Player({
element: playerElement,
attrs: {
video: window.ZiggeoDemoVideo,
theme: "modern"
}
});
playerInstance.activate();
playerInstance.activate();
playerInstance.on("playing", function () {
assert.ok(true, "playing");
playerInstance.on("paused ended", function () {
assert.ok(true, "paused");
playerInstance.destroy();
done();
}, this, {eventually: true});
});
//playerInstance.play();
playerInstance.on("playing", function () {
assert.ok(true, "playing");
playerInstance.on("paused ended", function () {
assert.ok(true, "paused");
playerInstance.destroy();
done();
}, this, {eventually: true});
});
//playerInstance.play();
});

@@ -1,18 +0,20 @@

QUnit.test("Embed Recorder Audio Only Via HTML", function(assert) {
var done = assert.async();
QUnit.module("Video Recorder (Audio Only)");
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><ziggeorecorder ziggeo-theme='modern' ziggeo-timelimit=5 ziggeo-picksnapshots='false' ziggeo-allowupload='false' ziggeo-onlyaudio='true' ziggeo-width='400' ziggeo-height='200'></ziggeorecorder><br/>";
QUnit.test("embed via HTML", function(assert) {
var done = assert.async();
var recorderElement = rootElement.querySelector("ziggeorecorder");
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><ziggeorecorder ziggeo-theme='modern' ziggeo-timelimit=5 ziggeo-picksnapshots='false' ziggeo-allowupload='false' ziggeo-onlyaudio='true' ziggeo-width='400' ziggeo-height='200'></ziggeorecorder><br/>";
ZiggeoApi.V2.Recorder.findByElementPromise(recorderElement).success(function (recorderInstance) {
recorderInstance.on("verified", function () {
assert.ok(true, "verified");
rootElement.innerHTML = "";
done();
});
if (!QUnit.isMobile)
recorderInstance.record();
});
var recorderElement = rootElement.querySelector("ziggeorecorder");
ZiggeoApi.V2.Recorder.findByElementPromise(recorderElement).success(function (recorderInstance) {
recorderInstance.on("verified", function () {
assert.ok(true, "verified");
rootElement.innerHTML = "";
done();
});
if (!QUnit.isMobile)
recorderInstance.record();
});
});

@@ -22,23 +24,23 @@

if (!window.ZiggeoLocal) {
QUnit.test("Embed Recorder Audio Only Via HTML webrtc streaming", function (assert) {
var oldWebrtcStreaming = ZiggeoApi.V2.Application.getDefault().data.get("webrtc_streaming");
ZiggeoApi.V2.Application.getDefault().data.set("webrtc_streaming", true);
var done = assert.async();
QUnit.test("record with webrtc streaming", function (assert) {
var oldWebrtcStreaming = ZiggeoApi.V2.Application.getDefault().data.get("webrtc_streaming");
ZiggeoApi.V2.Application.getDefault().data.set("webrtc_streaming", true);
var done = assert.async();
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><ziggeorecorder ziggeo-theme='modern' ziggeo-timelimit=5 ziggeo-picksnapshots='false' ziggeo-allowupload='false' ziggeo-onlyaudio='true' ziggeo-width='400' ziggeo-height='200'></ziggeorecorder><br/>";
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><ziggeorecorder ziggeo-theme='modern' ziggeo-timelimit=5 ziggeo-picksnapshots='false' ziggeo-allowupload='false' ziggeo-onlyaudio='true' ziggeo-width='400' ziggeo-height='200'></ziggeorecorder><br/>";
var recorderElement = rootElement.querySelector("ziggeorecorder");
var recorderElement = rootElement.querySelector("ziggeorecorder");
ZiggeoApi.V2.Recorder.findByElementPromise(recorderElement).success(function (recorderInstance) {
recorderInstance.on("verified", function () {
assert.ok(true, "verified");
rootElement.innerHTML = "";
done();
ZiggeoApi.V2.Application.getDefault().data.set("webrtc_streaming", oldWebrtcStreaming);
});
if (!QUnit.isMobile)
recorderInstance.record();
});
});
ZiggeoApi.V2.Recorder.findByElementPromise(recorderElement).success(function (recorderInstance) {
recorderInstance.on("verified", function () {
assert.ok(true, "verified");
rootElement.innerHTML = "";
done();
ZiggeoApi.V2.Application.getDefault().data.set("webrtc_streaming", oldWebrtcStreaming);
});
if (!QUnit.isMobile)
recorderInstance.record();
});
});
}

@@ -1,55 +0,82 @@

QUnit.test("Embed Recorder Via HTML", function(assert) {
var done = assert.async();
QUnit.module("Video Recorder");
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><ziggeorecorder ziggeo-theme='modern' ziggeo-timelimit=5 ziggeo-picksnapshots='false' ziggeo-allowupload='false'></ziggeorecorder><br/>";
QUnit.test("embed via HTML", function(assert) {
var done = assert.async();
var recorderElement = rootElement.querySelector("ziggeorecorder");
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><ziggeorecorder ziggeo-theme='modern' ziggeo-timelimit=5 ziggeo-picksnapshots='false' ziggeo-allowupload='false'></ziggeorecorder><br/>";
ZiggeoApi.V2.Recorder.findByElementPromise(recorderElement).success(function (recorderInstance) {
recorderInstance.on("verified", function () {
assert.ok(true, "verified");
rootElement.innerHTML = "";
done();
});
});
var recorderElement = rootElement.querySelector("ziggeorecorder");
ZiggeoApi.V2.Recorder.findByElementPromise(recorderElement).success(function (recorderInstance) {
recorderInstance.on("verified", function () {
assert.ok(true, "verified");
rootElement.innerHTML = "";
done();
});
});
});
QUnit.test("Embed Recorder simulate", function(assert) {
var done = assert.async();
QUnit.test("embed via JS", function(assert) {
var done = assert.async();
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><ziggeorecorder ziggeo-theme='modern' ziggeo-timelimit=5 ziggeo-picksnapshots='false' ziggeo-simulate ziggeo-allowupload='false'></ziggeorecorder><br/>";
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><div id='recorder'></div><br/>";
var recorderElement = rootElement.querySelector("ziggeorecorder");
var recorder = new ZiggeoApi.V2.Recorder({
element: document.querySelector("#recorder"),
attrs: {
theme: "modern",
timelimit: 5,
picksnapshots: false,
allowupload: false
}
})
ZiggeoApi.V2.Recorder.findByElementPromise(recorderElement).success(function (recorderInstance) {
recorderInstance.on("verified", function () {
assert.ok(true, "verified");
rootElement.innerHTML = "";
done();
});
});
recorder.activate();
recorder.on("verified", function() {
assert.ok(true, "verified");
rootElement.innerHTML = "";
done();
});
});
QUnit.test("simulate recorder", function(assert) {
var done = assert.async();
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><ziggeorecorder ziggeo-theme='modern' ziggeo-timelimit=5 ziggeo-picksnapshots='false' ziggeo-simulate ziggeo-allowupload='false'></ziggeorecorder><br/>";
var recorderElement = rootElement.querySelector("ziggeorecorder");
ZiggeoApi.V2.Recorder.findByElementPromise(recorderElement).success(function (recorderInstance) {
recorderInstance.on("verified", function () {
assert.ok(true, "verified");
rootElement.innerHTML = "";
done();
});
});
});
if (!window.ZiggeoLocal) {
QUnit.test("Embed Recorder webrtc streaming", function (assert) {
var oldWebrtcStreaming = ZiggeoApi.V2.Application.getDefault().data.get("webrtc_streaming");
ZiggeoApi.V2.Application.getDefault().data.set("webrtc_streaming", true);
var done = assert.async();
QUnit.test("record with webrtc streaming", function (assert) {
var oldWebrtcStreaming = ZiggeoApi.V2.Application.getDefault().data.get("webrtc_streaming");
ZiggeoApi.V2.Application.getDefault().data.set("webrtc_streaming", true);
var done = assert.async();
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><ziggeorecorder ziggeo-theme='modern' ziggeo-timelimit=10 ziggeo-picksnapshots='false' ziggeo-allowupload='false'></ziggeorecorder><br/>";
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><ziggeorecorder ziggeo-theme='modern' ziggeo-timelimit=10 ziggeo-picksnapshots='false' ziggeo-allowupload='false'></ziggeorecorder><br/>";
var recorderElement = rootElement.querySelector("ziggeorecorder");
var recorderElement = rootElement.querySelector("ziggeorecorder");
ZiggeoApi.V2.Recorder.findByElementPromise(recorderElement).success(function (recorderInstance) {
recorderInstance.on("verified", function () {
assert.ok(true, "verified");
rootElement.innerHTML = "";
done();
ZiggeoApi.V2.Application.getDefault().data.set("webrtc_streaming", oldWebrtcStreaming);
});
});
});
ZiggeoApi.V2.Recorder.findByElementPromise(recorderElement).success(function (recorderInstance) {
recorderInstance.on("verified", function () {
assert.ok(true, "verified");
rootElement.innerHTML = "";
done();
ZiggeoApi.V2.Application.getDefault().data.set("webrtc_streaming", oldWebrtcStreaming);
});
});
});
}

@@ -1,18 +0,20 @@

QUnit.test("test upload api", function(assert) {
var done = assert.async();
QUnit.module("Video Upload API");
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "Please select video file: <input type='file' name='file' />";
QUnit.test("upload video", function(assert) {
var done = assert.async();
var fileElement = rootElement.querySelector("input");
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "Please select video file: <input type='file' name='file' />";
fileElement.onchange = function () {
ZiggeoApi.V2.Application.getDefault().videos.createByUpload({
video_data: fileElement
}).callback(function (error) {
assert.ok(!error);
rootElement.innerHTML = "";
done();
});
};
var fileElement = rootElement.querySelector("input");
fileElement.onchange = function () {
ZiggeoApi.V2.Application.getDefault().videos.createByUpload({
video_data: fileElement
}).callback(function (error) {
assert.ok(!error);
rootElement.innerHTML = "";
done();
});
};
});

@@ -1,33 +0,59 @@

QUnit.test("Embed Uploader Via HTML", function(assert) {
var done = assert.async();
QUnit.module("Video Uploader");
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><ziggeorecorder ziggeo-theme='modern' ziggeo-timelimit=5 ziggeo-picksnapshots='false' ziggeo-allowrecord='false'></ziggeorecorder><br/>";
QUnit.test("embed via HTML", function(assert) {
var done = assert.async();
var recorderElement = rootElement.querySelector("ziggeorecorder");
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><ziggeorecorder ziggeo-theme='modern' ziggeo-timelimit=5 ziggeo-picksnapshots='false' ziggeo-allowrecord='false'></ziggeorecorder><br/>";
ZiggeoApi.V2.Recorder.findByElementPromise(recorderElement).success(function (recorderInstance) {
recorderInstance.on("verified", function () {
assert.ok(true, "verified");
rootElement.innerHTML = "";
done();
});
});
var recorderElement = rootElement.querySelector("ziggeorecorder");
ZiggeoApi.V2.Recorder.findByElementPromise(recorderElement).success(function (recorderInstance) {
recorderInstance.on("verified", function () {
assert.ok(true, "verified");
rootElement.innerHTML = "";
done();
});
});
});
QUnit.test("Embed Uploader simulate", function(assert) {
var done = assert.async();
QUnit.test("embed via JS", function(assert) {
var done = assert.async();
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><ziggeorecorder ziggeo-theme='modern' ziggeo-timelimit=5 ziggeo-picksnapshots='false' ziggeo-simulate ziggeo-allowrecord='false'></ziggeorecorder><br/>";
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><div id='recorder'></div><br/>";
var recorderElement = rootElement.querySelector("ziggeorecorder");
var recorder = new ZiggeoApi.V2.Recorder({
element: document.querySelector("#recorder"),
attrs: {
theme: "modern",
timelimit: 5,
allowrecord: false
}
})
ZiggeoApi.V2.Recorder.findByElementPromise(recorderElement).success(function (recorderInstance) {
recorderInstance.on("verified", function () {
assert.ok(true, "verified");
rootElement.innerHTML = "";
done();
});
});
recorder.activate();
recorder.on("verified", function() {
assert.ok(true, "verified");
rootElement.innerHTML = "";
done();
});
});
QUnit.test("simulate uploader", function(assert) {
var done = assert.async();
var rootElement = document.getElementById('visible-fixture');
rootElement.innerHTML = "<br/><ziggeorecorder ziggeo-theme='modern' ziggeo-timelimit=5 ziggeo-picksnapshots='false' ziggeo-simulate ziggeo-allowrecord='false'></ziggeorecorder><br/>";
var recorderElement = rootElement.querySelector("ziggeorecorder");
ZiggeoApi.V2.Recorder.findByElementPromise(recorderElement).success(function (recorderInstance) {
recorderInstance.on("verified", function () {
assert.ok(true, "verified");
rootElement.innerHTML = "";
done();
});
});
});

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 too big to display

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