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

Wondering correct usage of setDrm for tizen avplay #106

Open
hoonseokkim opened this issue Jun 21, 2022 · 1 comment
Open

Wondering correct usage of setDrm for tizen avplay #106

hoonseokkim opened this issue Jun 21, 2022 · 1 comment

Comments

@hoonseokkim
Copy link

hoonseokkim commented Jun 21, 2022

Hi all,

In src/sectv-tizen/mediaProxy.js, setDrm is invoked like below.
webapis.avplay.setDrm.apply(webapis.avplay, args);

But according to below Samsung tizen avplay documents, it recommends to use like below without apply
setDrm("PLAYREADY", "SetProperties", json_object)

I wonder which one is correct way to setDrm.

Thanks,
Hoonseok Kim

@darangkim
Copy link
Contributor

Hello

The apply() just calls a function with arguments provided as an array.
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply)
You can use this function if necessary.
The usual way is to use this api like tizen documents.

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

2 participants