-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat(net): Added advanced type to filters #5006
Conversation
This adds an optional parameter to request and response filters, of a new enum called AdvancedRequestType. This enum describes request types that are subtypes of the basic types. For example, INIT_SEGMENT is a type of SEGMENT. This gives users more information about the type of the request, while maintaining backwards compatibility. Closes shaka-project#4966
Incremental code coverage: 100.00% |
@theodab the tests are failing, can you review? Thanks! |
lib/net/networking_engine.js
Outdated
*/ | ||
shaka.net.NetworkingEngine.AdvancedRequestType = { | ||
'INIT_SEGMENT': 0, | ||
'MEDIA_PLAYLIST': 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we have MEDIA_PLAYLIST, we should have MASTER_PLAYLIST and MPD.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, now that it occurs to me, when playing an HLS media playlist directly, we don't know until the playlist is already downloaded...
Well, it's probably fine to say that the request is a master playlist request if we don't know.
This adds an optional parameter to request and response filters, of a new enum called AdvancedRequestType.
This enum describes request types that are subtypes of the basic types. For example, INIT_SEGMENT is a type of SEGMENT.
This gives users more information about the type of the request, while maintaining backwards compatibility.
Closes #4966