-
-
Notifications
You must be signed in to change notification settings - Fork 283
Disable cut for live videos #803
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
Disable cut for live videos #803
Conversation
on tap show snackbar "cutting live videos is unsupported"
|
hmm job failed, seems there is no signing config, which makes sense for a PR run. But the failed CI did initially scare me 😅 Maybe consider disabling the job entirely for PRs |
|
@madmini just because a result has 0 duration doesnt mean its live stream. It could also be a broken extractor. I think it would be better if you wrote it in the likes of |
|
Also since you added the timestamp check in uiutil you dont have to do it in audio and video fragment |
|
okay, but what about the Is there a proper way to differentiate between an invalid duration and incomplete data? |
|
ah yeah, i forgot about items with no current data. Alright then lets keep it as it is, its looks good. Just change the snack text. Thanks buddy |
|
I'd also change the name of the "You need to update the item data in order to be able to use cut feature" from |
|
yeah thats fine |
|
feel free to squash ^^ |
Fixes #801. Greys out the cut button if the duration is
0:00and on tap shows snackbar "Cutting live videos is not supported".Another possible approach could be to try to parse the duration as timestamp, and if it does not parse or is 0, disable cutting.
Note that I am not familiar with other reasons for invalid durations such as
-1.