-
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
HLS image track / thumbnails: Some information is missing, timing is wrong in last segment #3840
Comments
It looks like we're not reading the |
Thanks for fixing the issue so quickly! Now for the DASH version, I get an error when calling const video = document.querySelector("video");
const player = new shaka.Player(video);
await player.load(
"https://raw.githubusercontent.com/dvoracek-slub/shaka-player-issue/main/hls/video.mpd"
);
player.getImageTracks(); Output:
|
This makes the HLS parser honor more attributes for image tracks. It also makes some changes to player.getImageTracks, so that the returned track shows the size of a single thumbnail rather than the entire sheet. Closes #3840 Change-Id: I2ae096f455864201e08a85e29f0f02a3e06eb07f
This makes the HLS parser honor more attributes for image tracks. It also makes some changes to player.getImageTracks, so that the returned track shows the size of a single thumbnail rather than the entire sheet. Closes #3840 Change-Id: I2ae096f455864201e08a85e29f0f02a3e06eb07f
@shaka-bot reopen |
The commit 264c842 introduce a regression in DASH! The @joeyparrish can you review it? |
Ah, whoops, I forgot that the segmentIndex would be null for DASH manifests. It should be a simple fix, luckily. |
This has been fixed in Shaka: - shaka-project/shaka-player#3840 - shaka-project/shaka-player#3858
Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
3.2.0
Can you reproduce the issue with our latest release version?
Yes
Can you reproduce the issue with the latest code from
master
?Yes
Are you using the demo app or your own custom app?
Custom
If custom app, can you reproduce the issue using our demo app?
No (it doesn't provide a thumbnail preview UI and I don't know how to access the player object)
What browser and OS are you using?
Linux Mint 20.1, Firefox 95.0.1
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
–
What are the manifest and license server URIs?
https://raw.githubusercontent.com/dvoracek-slub/shaka-player-issue/main/hls/video.m3u8
(full example: https://raw.githubusercontent.com/dvoracek-slub/shaka-player-issue/main/hls/index.html)
What configuration are you using? What is the output of
player.getConfiguration()
?What did you do? What did you expect to happen? What actually happened?
In our video player, I would like to present a thumbnail preview based on the (tiled) image tracks referenced in the HLS playlist.
Notes
Apparently, image size and bandwidth aren't processed for EXT-X-IMAGE-STREAM-INF in the master playlist. I would like to use this information to select among thumbnail sets (in particular, to load low-resolution thumbnails first and then switch to a higher-resolution thumbnail).
Consequently
positionX == 0
, becausegetThumbnails()
now assumes a width and height of zero. (However, each segment in the image playlist may also specify its own resolution, so it may be good to use that...)As for the times, because the EXTINF of the image segment is longer than the video, it seems that the player somehow abridges the segment's length and uses that to calculate thumbnail timings.
The text was updated successfully, but these errors were encountered: