Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Black screen #95

Open
pankajpatel1305 opened this issue Jan 24, 2020 · 5 comments
Open

Black screen #95

pankajpatel1305 opened this issue Jan 24, 2020 · 5 comments

Comments

@pankajpatel1305
Copy link

Sometimes the black screen comes when the screen rotation changes.

@macchamps
Copy link

Hello, I also facing this issue.

@fukemy
Copy link

fukemy commented Apr 3, 2021

lul same issues, my eyes got red when find the problem make black screen.... then when debug view hierarchy found coz of mmplayerview

@fukemy
Copy link

fukemy commented Apr 3, 2021

ok after trying to debug i saw MMLanscapeWindow suddenly appear in window hierarchy, oh my .... even i did not wanna to shink video... (just add to collectionViewCell). Ok, just disable it

public lazy var mmPlayerLayer: MMPlayerLayer = {
        let l = MMPlayerLayer()
        l.cacheType = .memory(count: 5)
        l.coverFitType = .fitToPlayerView
        l.autoPlay = true
        l.player?.volume = 0
        l.repeatWhenEnd = true
        l.fullScreenWhenLandscape = false -> HERE
        l.videoGravity = AVLayerVideoGravity.resizeAspect
        return l
    }()

@octal-pankaj
Copy link

Getting the same issue...@fukemy thanks for your answer, but it does not work for me...
If there is any other solution please let me know

@fukemy
Copy link

fukemy commented May 14, 2021

@octal-pankaj , just capture view hierachy, if you see MMLanscapeWindow. Then search all project with that key "fullScreenWhenLandscape", and tried to find the code to disable it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants