mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +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 )
|
||||
return false;
|
||||
|
||||
if ( ! video.src && ! video.srcObject )
|
||||
return false;
|
||||
|
||||
if ( video.src ) {
|
||||
const url = new URL(video.src);
|
||||
if ( url.protocol !== 'blob:' )
|
||||
return false;
|
||||
} else
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue