videojs / videojs-contrib-eme

Supports Encrypted Media Extensions for playback of encrypted content in Video.js
Other
203 stars 72 forks source link

FairPlay not working #70

Closed klimentLambevski closed 5 years ago

klimentLambevski commented 5 years ago

I have SAMPLE-AES encrypted HLS video with

Master playlist

#EXT-X-STREAM-INF:AVERAGE-BANDWIDTH=738400,BANDWIDTH=881532,CODECS="mp4a.40.2, avc1.42E01E",RESOLUTION=640x360
media-1/stream.m3u8
#EXT-X-STREAM-INF:AVERAGE-BANDWIDTH=738400,BANDWIDTH=881532,CODECS="mp4a.40.2, avc1.42E01E",RESOLUTION=640x360
media-1/stream.m3u8
kliment@dex4:/srv/aes/fps$ cat media-1/stream.m3u8
#EXTM3U
#EXT-X-VERSION:5
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-KEY:METHOD=SAMPLE-AES,URI="skd://token",KEYFORMAT="com.apple.streamingkeydelivery"
#EXTINF:10.666667,
#EXT-X-BYTERANGE:856152@0
media.ts
#EXTINF:10.666667,
......

When i play the video, video.js calls skd://token url and the functions for fetching the certificate are never called This is my code

  player.eme();
  player.src({...this.sources[0],
       keySystems: {
          "com.apple.fps.1_0": {
            certificateUri: "certificate url",
            licenseUri: "https://localhost:8080/licenceUri"
          }
        }});

certificateUri is not called, licenceUri is not called the browser calls skd://token

videojs version: 7.3.0 videojs-contrib-eme: 3.4.1

ziddey commented 5 years ago

Are you using Safari 10.1.2+??

ralyodio commented 5 years ago

No. I was using Chrome.

- Anthony

On Dec 23, 2018, at 9:11 PM, Jibben Nee notifications@github.com wrote:

Are you using Safari??

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

ziddey commented 5 years ago

Fairplay is only supported in Safari (osx yosemite+ / ios 11.2+)

ralyodio commented 5 years ago

My bad, I responded to the wrong issue. I don'jt know what OP was using.

klimentLambevski commented 5 years ago

Nope i am using chrome on windows. I though you guys have FairPlay implementation for other platforms that support EME feature. My bad.