shaka-project / shaka-player

JavaScript player library / DASH & HLS client / MSE-EME player
Apache License 2.0
7.07k stars 1.33k forks source link

getting 6001 with letsencrypt certs #1742

Closed ralyodio closed 5 years ago

ralyodio commented 5 years ago

Have you read the FAQ and checked for duplicate open issues?: Yes What version of Shaka Player are you using?: v2.4.5 Can you reproduce the issue with our latest release version?: yes

Can you reproduce the issue with the latest code from master?: Not sure how to do this. Are you using the demo app or your own custom app?: demo app If custom app, can you reproduce the issue using our demo app?: yes What browser and OS are you using?: linux/ubuntu 18.04 LTS and chrome What are the manifest and license server URIs?:

What did you do?

function initPlayer(){
    shaka.polyfill.installAll();
    const video = document.getElementById('video');
    const player = new shaka.Player(video);
    window.player = player;
    // Construct a DashVideoSource to represent the DASH manifest.
    const mpdUrl = 'sourceurl';
    // const estimator = new shaka.util.EWMABandwidthEstimator();
    player.configure({
        drm: {
            servers: {
                'com.widevine.alpha': 'licenseUrl'
            }
        }
    });

    player.addEventListener('error', onErrorEvent);

    player.load(mpdUrl)
        .then((res) => {
            console.log(res);
        })
        .catch(onError);
}

What did you expect to happen? stream to start playing What actually happened? get an 6001 error. i'm using letsencrypt certs, but videojs plays fine and so does bitmovin

TheModMaker commented 5 years ago

6001 is REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE, which means the browser doesn't support the requested key system. Are you using https to access the page that contains the demo? If you try your manifest with the hosted demo, does it work? (https://shaka-player-demo.appspot.com/demo/) Can you provide a link to a webpage that reproduces this problem? You can send it privately to shaka-player-issues@google.com.

ralyodio commented 5 years ago

it doesn't work with hosted player either.

TheModMaker commented 5 years ago

Please go to https://shaka-player-demo.appspot.com/support.html and post the JSON you see. You said you are using Chrome right? What version? Can you post the manifest URL and license server you are using?

ralyodio commented 5 years ago
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
v2.4.5

{
  "manifest": {
    "application/dash+xml": true,
    "application/x-mpegurl": true,
    "application/vnd.apple.mpegurl": true,
    "application/x-offline-manifest": true,
    "mpd": true,
    "m3u8": true,
    "application/vnd.ms-sstr+xml": false,
    "ism": false
  },
  "media": {
    "video/mp4; codecs=\"avc1.42E01E\"": true,
    "video/mp4": true,
    "video/mp4; codecs=\"avc3.42E01E\"": true,
    "video/mp4; codecs=\"hev1.1.6.L93.90\"": false,
    "video/mp4; codecs=\"hvc1.1.6.L93.90\"": false,
    "video/mp4; codecs=\"hev1.2.4.L153.B0\"; eotf=\"smpte2084\"": false,
    "video/mp4; codecs=\"hvc1.2.4.L153.B0\"; eotf=\"smpte2084\"": false,
    "video/mp4; codecs=\"vp9\"": false,
    "video/mp4; codecs=\"vp09.00.10.08\"": true,
    "audio/mp4; codecs=\"mp4a.40.2\"": true,
    "audio/mp4": true,
    "audio/mp4; codecs=\"ac-3\"": false,
    "audio/mp4; codecs=\"ec-3\"": false,
    "audio/mp4; codecs=\"opus\"": true,
    "audio/mp4; codecs=\"flac\"": true,
    "video/webm; codecs=\"vp8\"": true,
    "video/webm": true,
    "video/webm; codecs=\"vp9\"": true,
    "video/webm; codecs=\"vp09.00.10.08\"": true,
    "audio/webm; codecs=\"vorbis\"": true,
    "audio/webm": true,
    "audio/webm; codecs=\"opus\"": true,
    "video/mp2t; codecs=\"avc1.42E01E\"": false,
    "video/mp2t": false,
    "video/mp2t; codecs=\"avc3.42E01E\"": false,
    "video/mp2t; codecs=\"hvc1.1.6.L93.90\"": false,
    "video/mp2t; codecs=\"mp4a.40.2\"": false,
    "video/mp2t; codecs=\"ac-3\"": false,
    "video/mp2t; codecs=\"ec-3\"": false,
    "text/vtt": true,
    "application/mp4; codecs=\"wvtt\"": true,
    "application/mp4": true,
    "application/ttml+xml": true,
    "application/mp4; codecs=\"stpp\"": true
  },
  "drm": {
    "org.w3.clearkey": {
      "persistentState": false
    },
    "com.widevine.alpha": {
      "persistentState": false
    },
    "com.microsoft.playready": null,
    "com.apple.fps.2_0": null,
    "com.apple.fps.1_0": null,
    "com.apple.fps": null,
    "com.adobe.primetime": null
  },
  "offline": true
}

I can't share the license url

TheModMaker commented 5 years ago

Your browser says it supports Widevine and you aren't setting any special configurations to change this, so it should work. The 6001 error happens before we make an actual license request, so we can debug it with just the manifest URL if you can give it. You can also send it privately to the team at shaka-player-issues@google.com.

ralyodio commented 5 years ago

I have this problem on all players except for bitmovin.

On Thu, Dec 20, 2018 at 12:27 PM Jacob Trimble notifications@github.com wrote:

Your browser says it supports Widevine and you aren't setting any special configurations to change this, so it should work. The 6001 error happens before we make an actual license request, so we can debug it with just the manifest URL if you can give it. You can also send it privately to the team at shaka-player-issues@google.com.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/google/shaka-player/issues/1742#issuecomment-449125396, or mute the thread https://github.com/notifications/unsubscribe-auth/AABq9UtmMnkgCyrZKZMICl7SiYunzi0Qks5u6_KkgaJpZM4Zcnnw .

-- Anthony Ettinger http://anthony.ettinger.name anthony@ettinger.name +1 (831) 406-1123

vaage commented 5 years ago

@chovy Did you provide us with the manifest url as @TheModMaker requested? I am looking through our records and I can't find an email that reference this issue. Would you be willing to send it again and put the issue number in the subject for us?

shaka-bot commented 5 years ago

Closing due to inactivity. If this is still an issue for you or if you have further questions, you can ask us to reopen or have the bot reopen it by including @shaka-bot reopen in a comment.