Open pankajpatel1305 opened 4 years ago
Hello, I also facing this issue.
lul same issues, my eyes got red when find the problem make black screen.... then when debug view hierarchy found coz of mmplayerview
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
}()
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
@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
Sometimes the black screen comes when the screen rotation changes.