silvermine / videojs-chromecast

MIT License
148 stars 75 forks source link

Casting stopped working #115

Open JasonBarnabe opened 2 years ago

JasonBarnabe commented 2 years ago

video.js: 7.17.0 videojs-chromecast: 1.3.3 Chromecast firmware: 1.56.275994 Chrome: 97.0.4692.71 Ubuntu: 21.10

Casting from Chrome generally works without video-chromecast - it will cast the entire tab. When video-chromecast is present and I attempt to cast, the device being casted to shows the casting icon (and a loading spinner for a second), but will never show the video. Video will still play on the originating device.

This used to work for me (though I didn't have this specific test page previously). Perhaps an update to Chromecast's firmware is the issue?

Test page: https://jasonbarnabe.simplero.com/videojstest.html (taken from https://github.com/silvermine/videojs-chromecast/blob/master/docs/demo/index.html, updated versions and pointed to a video that works)

<!DOCTYPE html>
<html>
<head>
    <link href="//vjs.zencdn.net/7.17.0/video-js.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://unpkg.com/@silvermine/videojs-chromecast@1.3.3/dist/silvermine-videojs-chromecast.css">

    <script src="//vjs.zencdn.net/7.17.0/video.min.js"></script>
    <script src="https://unpkg.com/@silvermine/videojs-chromecast@1.3.3/dist/silvermine-videojs-chromecast.min.js"></script>
    <script type="text/javascript" src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"></script>
</head>
<body>
<h1>Demo of <code>silvermine-videojs-chromecast</code></h1>

<video id="video_1" class="video-js vjs-default-skin" controls preload="auto" data-setup='{ "fluid": "true" }'>
    <source src="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" type="video/mp4">
</video>

<script>
  var options;

  options = {
    techOrder: [ 'chromecast', 'html5' ],
  };

  videojs('video_1', options, function() {
    var player = this;

    player.chromecast();
  });
</script>
</body>
</html>