-
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
SegmentReference.getUris doesn't appear in compiled bundle #3096
Comments
Hello, Would you please try: |
Not working. I'm getting an error:
Here's what I'm doing: and then in the onSegmentCreated function: |
Try: |
Not working. I'm now getting this error:
|
It looks like the |
Previously, SegmentReference.getUris was listed as public field, but not actually exported. For an object that does not have externs, there is no way to ensure that a member variable is not renamed. So, instead, this CL makes an exported public getUris method, that wraps the getUrisInner member variable. This allows for the method to be exported, without having to make an extern for the class. Closes #3096 Change-Id: I847439c444021bcf6af2b210f7138a51ba164d71
Have you read the Tutorials?
Yes
Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
v3.0.6
Please ask your question
So I'm currently trying to get a list of segment URLS for the stream that's playing. I've managed to get a list of segments by using player.getManifest().variants[14]['video'].createSegmentIndex() and then using stream.segmentIndex. But even then, I've found no way of retrieving a list of segment URLS even though #1074 suggests that it should be possible using segment.createUris(). But, createUris() is deprecated now. Please note, that I'm currently testing this using the video and approach under basic usage, so it's a dash video stream, not a live stream. Ideally, I'd like to be able to do the same for both HLS and Dash, just so I can pre-warm the cache with segment Uris.
The text was updated successfully, but these errors were encountered: