Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Casting stopped working #115

Open
JasonBarnabe opened this issue Jan 6, 2022 · 0 comments
Open

Casting stopped working #115

JasonBarnabe opened this issue Jan 6, 2022 · 0 comments

Comments

@JasonBarnabe
Copy link

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/[email protected]/dist/silvermine-videojs-chromecast.css">

    <script src="//vjs.zencdn.net/7.17.0/video.min.js"></script>
    <script src="https://unpkg.com/@silvermine/[email protected]/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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant