Skip to content

Commit 69e7d13

Browse files
committed
Fixed #862 - Removed GIFEncoder dependency
1 parent 7b1c360 commit 69e7d13

File tree

5 files changed

+14
-18
lines changed

5 files changed

+14
-18
lines changed

RecordRTC.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
'use strict';
22

3-
// Last time updated: 2022-04-05 11:18:05 AM UTC
3+
// Last time updated: 2024-01-03 12:51:19 PM UTC
44

55
// ________________
6-
// RecordRTC v5.6.2
6+
// RecordRTC v5.6.3
77

88
// Open-Sourced: https://github.com/muaz-khan/RecordRTC
99

@@ -781,7 +781,7 @@ function RecordRTC(mediaStream, config) {
781781
* @example
782782
* alert(recorder.version);
783783
*/
784-
version: '5.6.2'
784+
version: '5.6.3'
785785
};
786786

787787
if (!this) {
@@ -799,7 +799,7 @@ function RecordRTC(mediaStream, config) {
799799
return returnObject;
800800
}
801801

802-
RecordRTC.version = '5.6.2';
802+
RecordRTC.version = '5.6.3';
803803

804804
if (typeof module !== 'undefined' /* && !!module.exports*/ ) {
805805
module.exports = RecordRTC;
@@ -4570,9 +4570,7 @@ if (typeof RecordRTC !== 'undefined') {
45704570

45714571
function GifRecorder(mediaStream, config) {
45724572
if (typeof GIFEncoder === 'undefined') {
4573-
var script = document.createElement('script');
4574-
script.src = 'https://www.webrtc-experiment.com/gif-recorder.js';
4575-
(document.body || document.documentElement).appendChild(script);
4573+
throw new Error('Missing https://www.webrtc-experiment.com/gif-recorder.js');
45764574
}
45774575

45784576
config = config || {};
@@ -5927,7 +5925,7 @@ function RecordRTCPromisesHandler(mediaStream, options) {
59275925
* @example
59285926
* alert(recorder.version);
59295927
*/
5930-
this.version = '5.6.2';
5928+
this.version = '5.6.3';
59315929
}
59325930

59335931
if (typeof RecordRTC !== 'undefined') {

RecordRTC.min.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "recordrtc",
3-
"version": "5.6.2",
3+
"version": "5.6.3",
44
"authors": [
55
{
66
"name": "Muaz Khan",

dev/GifRecorder.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020

2121
function GifRecorder(mediaStream, config) {
2222
if (typeof GIFEncoder === 'undefined') {
23-
var script = document.createElement('script');
24-
script.src = 'https://www.webrtc-experiment.com/gif-recorder.js';
25-
(document.body || document.documentElement).appendChild(script);
23+
throw new Error('Missing https://www.webrtc-experiment.com/gif-recorder.js');
2624
}
2725

2826
config = config || {};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "recordrtc",
33
"preferGlobal": false,
4-
"version": "5.6.2",
4+
"version": "5.6.3",
55
"author": {
66
"name": "Muaz Khan",
77
"email": "[email protected]",

0 commit comments

Comments
 (0)