I am creating a vue.js application. The following code is rewritten from the api reference for youtube at (https://developers.google.com/youtube/iframe_api_reference). .
export default {name: "VideoBrowser",components: { Icon, }, setup() {const player = ref(null);var done = ref(false);const onPlayerReady = (event) => { event.target.plaVideo()}const onPlayerStateChange = (event) => { if (event.data == document.YT.PlayerState.PLAYING && !done.value) { setTimeout(stopVideo, 6000); done.value = true; } if (event.data == document.YT.PlayerState.PAUSED) { alert("timing paused") }}onMounted(async () => { var tag = document.createElement('script'); // to solve this problem required using global scope of functions i.e through window and not through in level functions tag.src = "https://www.youtube.com/iframe_api"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); document.onYouTubeIframeAPIReady = function () { player.value = new document.YT.Player('player', { height: '390', width: '640', videoId: videoLink.value, playerVars: {'playsinline': 1 }, events: {'onReady': onPlayerReady,'onStateChange': onPlayerStateChange } });This worked successfully yesterday, and was correctly loading yt videos. However today, I cannot load ANY yt videos on the internet. I have used a proxy, and videos are able to run so I assume it is problems associated with my IP address.
I have opened my program on opera where I get this error:WebSocketClient.js?5586:16 WebSocket connection to 'ws://172.27.30.231:8080/ws' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED
and: (also from opera)
Failed to load resource: the server responded with a status of 404 (Not Found)However, on google chrome I get seperate error messages:
GET https://www.youtube.com/iframe_api net::ERR_SSL_VERSION_OR_CIPHER_MISMATCHOn normal youtube pages (even when my program isn't running) I get the same problem stating err_ssl_version_OR_CIPHER_MISMATCH
(UPDATE) Of course, after I spent all this time writing, the problem seems to not have resolved. But does anyone know an explanation behind what is happening or is this a google bug?