mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-22 01:27:56 +00:00
feat: Prints the error on problem sharing YouTube video.
This commit is contained in:
@@ -209,10 +209,12 @@ class AbstractVideoManager extends PureComponent<Props> {
|
||||
/**
|
||||
* Handle video error.
|
||||
*
|
||||
* @param {Object|undefined} e - The error returned by the API or none.
|
||||
* @returns {void}
|
||||
*/
|
||||
onError() {
|
||||
logger.error('Error in the video player');
|
||||
onError(e) {
|
||||
logger.error('Error in the video player', e?.data,
|
||||
e?.data ? 'Check error code at https://developers.google.com/youtube/iframe_api_reference#onError' : '');
|
||||
this.props._stopSharedVideo();
|
||||
this.props._displayWarning();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user