Skip to content

Commit

Permalink
Fixed #862 - Removed GIFEncoder dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz-khan committed Jan 3, 2024
1 parent 7b1c360 commit 69e7d13
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 18 deletions.
14 changes: 6 additions & 8 deletions RecordRTC.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict';

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

// ________________
// RecordRTC v5.6.2
// RecordRTC v5.6.3

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

Expand Down Expand Up @@ -781,7 +781,7 @@ function RecordRTC(mediaStream, config) {
* @example
* alert(recorder.version);
*/
version: '5.6.2'
version: '5.6.3'
};

if (!this) {
Expand All @@ -799,7 +799,7 @@ function RecordRTC(mediaStream, config) {
return returnObject;
}

RecordRTC.version = '5.6.2';
RecordRTC.version = '5.6.3';

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

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

config = config || {};
Expand Down Expand Up @@ -5927,7 +5925,7 @@ function RecordRTCPromisesHandler(mediaStream, options) {
* @example
* alert(recorder.version);
*/
this.version = '5.6.2';
this.version = '5.6.3';
}

if (typeof RecordRTC !== 'undefined') {
Expand Down
10 changes: 5 additions & 5 deletions RecordRTC.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "recordrtc",
"version": "5.6.2",
"version": "5.6.3",
"authors": [
{
"name": "Muaz Khan",
Expand Down
4 changes: 1 addition & 3 deletions dev/GifRecorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@

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

config = config || {};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "recordrtc",
"preferGlobal": false,
"version": "5.6.2",
"version": "5.6.3",
"author": {
"name": "Muaz Khan",
"email": "[email protected]",
Expand Down

0 comments on commit 69e7d13

Please sign in to comment.