Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ class LinuxVideoPlayerState : VideoPlayerState {
try {
val width = LinuxNativeBridge.nGetFrameWidth(ptr)
val height = LinuxNativeBridge.nGetFrameHeight(ptr)
val duration = LinuxNativeBridge.nGetVideoDuration(ptr).toLong()
val duration = (LinuxNativeBridge.nGetVideoDuration(ptr) * 1000).toLong()
val frameRate = LinuxNativeBridge.nGetFrameRate(ptr)
val newAspectRatio =
if (width > 0 && height > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ class MacVideoPlayerState : VideoPlayerState {
try {
val width = MacNativeBridge.nGetFrameWidth(ptr)
val height = MacNativeBridge.nGetFrameHeight(ptr)
val duration = MacNativeBridge.nGetVideoDuration(ptr).toLong()
val duration = (MacNativeBridge.nGetVideoDuration(ptr) * 1000).toLong()
val frameRate = MacNativeBridge.nGetVideoFrameRate(ptr)

// Calculate aspect ratio
Expand Down