Commit 79369a8
committed
fix(mac): apply rotation metadata and reach 100% on progress bar
- Set AVVideoComposition built from the asset's preferred transform
on the AVPlayerItem so AVPlayerItemVideoOutput delivers pixel
buffers already rotated to display orientation. Fixes #202
(portrait phone videos rendering sideways on JVM/macOS).
- Drop the 0.5s position-based fallback in checkLoopingAsync that
was triggering pauseInBackground half a second before the actual
end, freezing sliderPos at (duration - 0.5)/duration. Rely solely
on AVPlayerItemDidPlayToEndTime, which is reliable on macOS.
- gitignore the prebuilt darwin-aarch64/x86-64 dylib resource dirs.1 parent 7a47043 commit 79369a8
3 files changed
Lines changed: 35 additions & 13 deletions
File tree
- mediaplayer/src/jvmMain
- kotlin/io/github/kdroidfilter/composemediaplayer/mac
- native/macos
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
681 | 681 | | |
682 | 682 | | |
683 | 683 | | |
684 | | - | |
| 684 | + | |
685 | 685 | | |
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
| 691 | + | |
| 692 | + | |
696 | 693 | | |
697 | | - | |
698 | | - | |
699 | | - | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
700 | 701 | | |
701 | 702 | | |
702 | 703 | | |
| |||
Lines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
750 | 757 | | |
751 | | - | |
| 758 | + | |
752 | 759 | | |
753 | 760 | | |
754 | 761 | | |
755 | 762 | | |
756 | 763 | | |
757 | 764 | | |
758 | | - | |
| 765 | + | |
759 | 766 | | |
760 | 767 | | |
761 | 768 | | |
| |||
770 | 777 | | |
771 | 778 | | |
772 | 779 | | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
773 | 786 | | |
774 | | - | |
| 787 | + | |
775 | 788 | | |
776 | 789 | | |
777 | 790 | | |
| |||
825 | 838 | | |
826 | 839 | | |
827 | 840 | | |
828 | | - | |
| 841 | + | |
829 | 842 | | |
830 | 843 | | |
831 | 844 | | |
| |||
837 | 850 | | |
838 | 851 | | |
839 | 852 | | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
840 | 859 | | |
841 | 860 | | |
842 | 861 | | |
| |||
0 commit comments