Commit fdf7127
committed
fix(mac,linux): convert VideoMetadata.duration to milliseconds
nGetVideoDuration() returns seconds on macOS (CMTimeGetSeconds) and
Linux (GStreamer duration / GST_SECOND). Multiply by 1000 before
assigning to metadata.duration so the value matches the documented
millisecond contract and aligns with iOS, Android, Windows, and Web.
Fixes #1531 parent 8afbadf commit fdf7127
2 files changed
Lines changed: 2 additions & 2 deletions
File tree
- mediaplayer/src/jvmMain/kotlin/io/github/kdroidfilter/composemediaplayer
- linux
- mac
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
| 451 | + | |
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
| |||
0 commit comments