fix videojs.record createObjectURL deprecation
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+13
-7
@@ -191,11 +191,11 @@
|
|||||||
this.recordedData = data;
|
this.recordedData = data;
|
||||||
|
|
||||||
this.addFileInfo(this.recordedData);
|
this.addFileInfo(this.recordedData);
|
||||||
|
|
||||||
// store reference to recorded stream URL
|
// store reference to recorded stream URL
|
||||||
this.dispose();
|
this.dispose();
|
||||||
|
//ThomasB:T his one is not used in our solution so I let it be
|
||||||
this.mediaURL = URL.createObjectURL(this.recordedData);
|
this.mediaURL = URL.createObjectURL(this.recordedData);
|
||||||
|
///ThomasB
|
||||||
// notify listeners
|
// notify listeners
|
||||||
this.trigger('recordComplete');
|
this.trigger('recordComplete');
|
||||||
}
|
}
|
||||||
@@ -886,9 +886,10 @@
|
|||||||
{
|
{
|
||||||
URL.revokeObjectURL(this.streamURL);
|
URL.revokeObjectURL(this.streamURL);
|
||||||
}
|
}
|
||||||
|
//ThomasB:
|
||||||
this.mediaElement.srcObject=this.stream;
|
|
||||||
//this.streamURL = URL.createObjectURL(this.stream);
|
//this.streamURL = URL.createObjectURL(this.stream);
|
||||||
|
this.mediaElement.srcObject=this.stream;
|
||||||
|
///ThomasB
|
||||||
this.load(this.streamURL);
|
this.load(this.streamURL);
|
||||||
this.mediaElement.play();
|
this.mediaElement.play();
|
||||||
}
|
}
|
||||||
@@ -1232,8 +1233,12 @@
|
|||||||
{
|
{
|
||||||
URL.revokeObjectURL(this.extraAudioURL);
|
URL.revokeObjectURL(this.extraAudioURL);
|
||||||
}
|
}
|
||||||
this.extraAudioURL = URL.createObjectURL(
|
|
||||||
this.player().recordedData.audio);
|
//ThomasB:
|
||||||
|
// this.extraAudioURL = URL.createObjectURL(
|
||||||
|
// this.player().recordedData.audio);
|
||||||
|
this.extraAudio.srcObject=this.player().recordedData.audio;
|
||||||
|
///ThomasB
|
||||||
this.extraAudio.src = this.extraAudioURL;
|
this.extraAudio.src = this.extraAudioURL;
|
||||||
|
|
||||||
// pause extra audio when player pauses
|
// pause extra audio when player pauses
|
||||||
@@ -1763,7 +1768,8 @@
|
|||||||
{
|
{
|
||||||
URL.revokeObjectURL(this.streamURL);
|
URL.revokeObjectURL(this.streamURL);
|
||||||
}
|
}
|
||||||
this.streamURL = URL.createObjectURL(this.stream);
|
|
||||||
|
this.mediaElement .srcObject=this.stream;
|
||||||
this.load(this.streamURL);
|
this.load(this.streamURL);
|
||||||
this.mediaElement.play();
|
this.mediaElement.play();
|
||||||
},
|
},
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user