Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'streamingData')
at YouTubeToHtml5.parseYoutubeMeta (YouTubeToHtml5.js?398e:1)
This PR addresses this error by:
Validating references when accessing nested properties (ie. response.player_response && response.player_response.streamingData && response.player_response.streamingData.formats) and
When we try to use the YoutubeToHtml5 loader to embed a private video (ie. https://www.youtube.com/watch?v=mYMZB39KiuQ), we get the following error:
This PR addresses this error by:
response.player_response && response.player_response.streamingData && response.player_response.streamingData.formats
) andRelated issue: https://github.com/thelevicole/youtube-to-html5-loader/issues/15