mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Check live duration and size
This commit is contained in:
parent
a5cf76afa3
commit
fb7194043d
27 changed files with 436 additions and 168 deletions
|
@ -41,6 +41,7 @@ const timeTable = {
|
|||
}
|
||||
|
||||
export function parseDurationToMs (duration: number | string): number {
|
||||
if (duration === null) return null
|
||||
if (typeof duration === 'number') return duration
|
||||
|
||||
if (typeof duration === 'string') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue