We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
how do I play drm streaming content using this library ? Thank you
example dataSource:
url : https://storage.googleapis.com/shaka-demo-assets/angel-one-widevine/dash.mpd license: https://cwip-shaka-proxy.appspot.com/no_auth
The text was updated successfully, but these errors were encountered:
@TDUser91 you can go with this way
import React, { useRef, useEffect } from 'react' import ShakaPlayer from 'shaka-player-react' import 'shaka-player/dist/controls.css' const Player = () => { const shakaRef = useRef(null) const drmLicenseUrl = 'https://cwip-shaka-proxy.appspot.com/no_auth' const { player, ui, videoElement } = shakaRef?.current useEffect(()=>{ if (drmLicenseUrl !== '') { player?.configure({ drm: { servers: { 'com.widevine.alpha': drmLicenseUrl, }, }, }) } },[) return( <ShakaPlayer autoPlay ref={shakaRef} src={'https://storage.googleapis.com/shaka-demo-assets/angel-one-widevine/dash.mpd'} />) } export default Player;
Sorry, something went wrong.
No branches or pull requests
how do I play drm streaming content using this library ? Thank you
example dataSource:
The text was updated successfully, but these errors were encountered: