-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Support "individualization-request" message type #1565
Comments
Since it seems easy, we will try to fit it into v2.5. We just need to decide how the configuration will work. We could create an additional URL field (per key-system) for this type of message. Or we could create a map of message type to URL (per key-system). Or, we could add message type to the Request object, and let advanced routing based on message type be handled by request filters. |
The advantage of the request approach is that apps could handle all message types if they wish, and it wouldn't make our configuration any more complicated. The down side is that (if I understand correctly), individualization messages won't ever be destined for the same server as licenses, so not configuring this would almost certainly lead to failures. @rkuroiwa, is that accurate? If individualization messages are special (must always go somewhere special), then a separate field might be a better reflection of this status, and make it easier to discover the solution to any problems encountered. |
I don't think it is the case that "individualization messages won't ever be destined for the same server as licenses". It just happens to be that my use case needs a separate URL. It feels more like an implementation detail or business logic. I'm ok with shaka player propagating up the message type along with a Request object but I'm guessing that most use cases is simply sending the message somewhere else, rather than changing the content of the requests. Plus it requires extra network handling in the app. |
I was thinking that most individualization requests would be going to some central location run by the DRM provider, and that licenses might be served by something specific to the application. If everything can be handled by the app's servers, why do we need this feature?
If a separate URL is not provided, it would default to the one provided for licenses.
A URL string config is definitely easier for an app developer than writing a filter callback. So there's that to consider. |
I think this will be the majority of the use cases. I was just replying to the "won't ever be" part. I think it's easiest for the app devs to be able to specify a separate URL for individualization requests, but I'll leave it up to you folks to design the API :) |
Okay. Then I think my gut says to offer a configurable URL string for the individualization requests, for simplicity, and to add the message type to DRM-related requests for generality. Anybody who wants the common thing can do it easily, and anybody who wants more detailed routing can still get the info they need to do that. Thanks for talking this out! |
This feature was released in v2.5.0-beta2. |
Encrypted Media Extensions defines "individualization-request" message type
https://www.w3.org/TR/encrypted-media/#idl-def-MediaKeyMessageType.individualization-request
For my use case, I would like to specify a URL to send the messages to, just like specifying a license server URL.
The text was updated successfully, but these errors were encountered: