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

How to use a track thumbnail (sprite.vtt) #4719

Closed
wearrrrr opened this issue Nov 16, 2022 · 2 comments
Closed

How to use a track thumbnail (sprite.vtt) #4719

wearrrrr opened this issue Nov 16, 2022 · 2 comments
Labels
status: archived Archived and locked; will not be updated type: question A question from the community

Comments

@wearrrrr
Copy link

Have you read the Tutorials?
Yes I have

Have you read the FAQ and checked for duplicate open issues?
Yes

What version of Shaka Player are you using?
Latest (4.3.0)

Please ask your question
I am wondering how I would go about using a caption file that I have (sprite.vtt) in order to display an image on the timeline as the user scrubs it, I have tried running addThumbnailsTrack(URL), which returns a fulfilled promise, then running player.getImageTracks() returns the correct information about said track, with active: false being set, manually setting it to true did nothing, and player.getThumbnails(0, 0) (presumably the correct statement but honestly I have no idea) returns Promise {<fulfilled>: null}

So I am not 100% sure where to go from here, because the track seems to load but not display. I am calling sprite.vtt from a remote url but im not quite sure why that would be an issue, because it uses a relative path of

00:00:00.000 --> 00:00:10.000
sprite-0.jpg#xywh=0,0,178,100
@wearrrrr wearrrrr added the type: question A question from the community label Nov 16, 2022
@avelad
Copy link
Member

avelad commented Feb 9, 2023

The thumbanils are not yet supported in the UI, see #3371

The method getThumbnails returns the raw info in a determined time, but it's responsibility of the developer transforms the data and put in the DOM to saw the thumbnails.

This answer your question?

@avelad avelad added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Feb 9, 2023
@github-actions
Copy link
Contributor

Closing due to inactivity. If this is still an issue for you or if you have further questions, the OP can ask shaka-bot to reopen it by including @shaka-bot reopen in a comment.

@github-actions github-actions bot removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label Feb 16, 2023
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Apr 17, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated type: question A question from the community
Projects
None yet
Development

No branches or pull requests

2 participants