Video player enhancements
1 unresolved thread
1 unresolved thread
- Based on lurkki's updates: https://github.com/Nheko-Reborn/nheko/pull/302
- Refactor code into reusable components
- Fix bugs as necessary and change some theming
Edited by Nicolas Werner
Merge request reports
Activity
- resources/qml/ui/media/MediaControls.qml 0 → 100644
43 44 var totalSeconds = Math.floor(duration / 1000); 45 var seconds = totalSeconds % 60; 46 var minutes = (Math.floor(totalSeconds / 60)) % 60; 47 var hours = (Math.floor(totalSeconds / (60 * 24))) % 24; 48 // Always show minutes and don't prepend zero into the leftmost element 49 var ss = maybeZeroPrepend(seconds); 50 var mm = (hours > 0) ? maybeZeroPrepend(minutes) : minutes.toString(); 51 var hh = hours.toString(); 52 if (hours < 1) 53 return mm + ":" + ss; 54 55 return hh + ":" + mm + ":" + ss; 56 } 57 58 HoverHandler { mentioned in commit 1ab4d355
Please register or sign in to reply