Skip to content

Trying to calculate "% played" for video tracks but get type error "has type float?" #3149

Answered by smimram
Moonbase59 asked this question in Q&A
Discussion options

You must be logged in to vote

request.duration can return null if the computation of the duration failed. You should do null.get(requestion.duration(...)) to get the value.

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Moonbase59
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@Mikulskii
Comment options

@Moonbase59
Comment options

@Mikulskii
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants