mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-28 15:27:43 +00:00
Merge pull request #1306 from melutzke/master
Enable canCompress to allow video using srcObject
This commit is contained in:
commit
e7066ce4da
1 changed files with 4 additions and 2 deletions
|
@ -1601,12 +1601,14 @@ export default class PlayerBase extends Module {
|
||||||
if ( ! video )
|
if ( ! video )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if ( ! video.src && ! video.srcObject )
|
||||||
|
return false;
|
||||||
|
|
||||||
if ( video.src ) {
|
if ( video.src ) {
|
||||||
const url = new URL(video.src);
|
const url = new URL(video.src);
|
||||||
if ( url.protocol !== 'blob:' )
|
if ( url.protocol !== 'blob:' )
|
||||||
return false;
|
return false;
|
||||||
} else
|
}
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue