shaka-project / shaka-player-embedded

Shaka Player in a C++ Framework
Apache License 2.0
239 stars 62 forks source link

[Error]: "Invalid config, wrong type for .drm.advanced.com.widevine.alpha.serverCertificate" #233

Closed fyanyan closed 2 years ago

fyanyan commented 2 years ago

player.configure("drm.advanced.com\.widevine\.alpha.serverCertificate", with: "https://cwip-shaka-proxy.appspot.com/service-cert")

[Error]: "Invalid config, wrong type for .drm.advanced.com.widevine.alpha.serverCertificate"

joeyparrish commented 2 years ago

The serverCertificate field is a byte array with the certificate contents, not a URL. See also https://github.com/shaka-project/shaka-player-embedded/issues/109#issuecomment-598351313

Shaka Player v3.2.0 introduced the serverCertificateUri field, which does what you want. I forget what versions of Shaka Player are currently supported in Embedded, though.

github-actions[bot] commented 2 years ago

@fyanyan Does this answer all your questions? If so, would you please close the issue?

github-actions[bot] commented 2 years ago

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

fyanyan commented 2 years ago

Thanks for your reply Here is some questions When I used shakaPlayer-embedded by release framework 1.0.0 https://github.com/shaka-project/shaka-player-embedded/releases 1.when I playback a webm resource:http://1302545507.vod2.myqcloud.com/298808a2vodcq1302545507/f47b23d3387702301286731497/R0pnqVc5v0EA.webm I got an error:load ErrorShaka Error, Category: 4, Code: 4000。 Is shakaPlayer-embedded support ?2.when I use  shakaplayers property playbackRate to set playback rate of the video. If the vaule is 1, everything is normal .but the if value is others from 0 to 2 , the video is normal ,the audio lost . If I want to set playback rate of the video, how do I do?3.when I played a resourse DASH, I will got a warning in console , and I cant get an instance of avplayer. [mov,mp4,m4a,3gp,3g2,mj2 @ 0x13e05d600] Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol Looking forward to your reply------------------ Original ------------------From: Joey Parrish @.>Date: Tue,May 10,2022 1:37 AMTo: shaka-project/shaka-player-embedded @.>Cc: fyanyan @.>, Author @.>Subject: Re: [shaka-project/shaka-player-embedded] [Error]: "Invalid config,wrong type for .drm.advanced.com.widevine.alpha.serverCertificate" (Issue#233) The serverCertificate field is a byte array with the certificate contents, not a URL. See also #109 (comment) Shaka Player v3.2.0 introduced the serverCertificateUri field, which does what you want. I forget what versions of Shaka Player are currently supported in Embedded, though.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/shaka-project/shaka-player-embedded/issues/233#issuecomment-1121387164", "url": "https://github.com/shaka-project/shaka-player-embedded/issues/233#issuecomment-1121387164", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]