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

feat(net): Added advanced type to filters #5006

Merged
merged 3 commits into from
Feb 23, 2023

Conversation

theodab
Copy link
Contributor

@theodab theodab commented Feb 15, 2023

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

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
@theodab theodab added the type: enhancement New feature or request label Feb 15, 2023
@avelad avelad added the priority: P2 Smaller impact or easy workaround label Feb 15, 2023
@avelad avelad added this to the v4.4 milestone Feb 15, 2023
@avelad avelad requested review from avelad and joeyparrish February 15, 2023 13:17
@github-actions
Copy link
Contributor

Incremental code coverage: 100.00%

@avelad
Copy link
Member

avelad commented Feb 15, 2023

@theodab the tests are failing, can you review? Thanks!

lib/net/networking_engine.js Show resolved Hide resolved
*/
shaka.net.NetworkingEngine.AdvancedRequestType = {
'INIT_SEGMENT': 0,
'MEDIA_PLAYLIST': 1,
Copy link
Member

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.

Copy link
Contributor Author

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.

@avelad avelad requested a review from joeyparrish February 22, 2023 21:20
@joeyparrish joeyparrish merged commit fbce38a into shaka-project:main Feb 23, 2023
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
@theodab theodab deleted the advRequestTypeBranch branch December 2, 2024 01:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: P2 Smaller impact or easy workaround status: archived Archived and locked; will not be updated type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Workaround for streams with hvc1.0.4 codec signalling?
3 participants