BMPlayer icon indicating copy to clipboard operation
BMPlayer copied to clipboard

关于工程只支持横屏导致全屏失效

Open vilsonlee opened this issue 7 years ago • 12 comments

若工程只支持竖屏的话全屏会失效,UIDevice.current.setValue的方法失效导致isFullScreen的getter方法只返回false故全屏方法失效。另外当把player加载到控件(例如cell)里点击全屏方法只是让控件所在的VC变成了横屏模式并没有实现视频窗口全屏。提个小小建议把player全屏时发上Windows层以解决这个问题。

vilsonlee avatar Jan 10 '18 01:01 vilsonlee

请问最后这种情况是怎么解决的呢,项目不需要横屏模式,禁止了之后,点击全屏功能就失效了

wongwenlei avatar Jan 31 '18 04:01 wongwenlei

加到 window 层这个做法我不太认同,目前解决办法要么直接用 BLPlayerLayer 自己实现上层 UI 逻辑。要么就让项目支持横屏

BrikerMan avatar Jan 31 '18 07:01 BrikerMan

嗯,感谢,最后使用了代码控制页面是否支持横屏

wongwenlei avatar Jan 31 '18 07:01 wongwenlei

关于使用BMPlayLayer的上级逻辑您这边的实现方法是?

| | Vilson 邮箱:[email protected] |

签名由 网易邮箱大师 定制

在2018年01月31日 15:45,BrikerMan 写道:

加到 window 层这个做法我不太认同,目前解决办法要么直接用 BLPlayerLayer 自己实现上层 UI 逻辑。要么就让项目支持横屏

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

vilsonlee avatar Mar 08 '18 03:03 vilsonlee

我没有设置BMPlayLayer的逻辑,我只是设置了使用BMPlayer的页面可以横屏,其他页面禁止横屏

wongwenlei avatar Mar 08 '18 04:03 wongwenlei

直接旋转屏幕局限性太大 不能解决cell中全屏播放

| | Vilson 邮箱:[email protected] |

签名由 网易邮箱大师 定制

在2018年03月08日 12:33,wongwenlei 写道:

我没有设置BMPlayLayer的逻辑,我只是设置了使用BMPlayer的页面可以横屏,其他页面禁止横屏

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

vilsonlee avatar Mar 08 '18 05:03 vilsonlee

请问会有什么问题呢

wongwenlei avatar Mar 08 '18 05:03 wongwenlei

具体你可自己实现就会发现问题

| | Vilson 邮箱:[email protected] |

签名由 网易邮箱大师 定制

在2018年03月08日 13:53,wongwenlei 写道:

请问会有什么问题呢

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

vilsonlee avatar Mar 08 '18 05:03 vilsonlee

我目前就是这样用的

wongwenlei avatar Mar 08 '18 05:03 wongwenlei

请把具体demo发出

| | Vilson 邮箱:[email protected] |

签名由 网易邮箱大师 定制

在2018年03月08日 13:56,wongwenlei 写道:

我目前就是这样用的

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

vilsonlee avatar Mar 08 '18 05:03 vilsonlee

没有demo,就直接用在项目里了,使用的也不是这个框架是VGPlayer,但他们原理应该一样的

wongwenlei avatar Mar 08 '18 06:03 wongwenlei

具体我要看看VGPlayer 原理可能不一样

| | Vilson 邮箱:[email protected] |

签名由 网易邮箱大师 定制

在2018年03月08日 14:01,wongwenlei 写道:

没有demo,就直接用在项目里了,使用的也不是这个框架是VGPlayer,但他们原理应该一样的

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

vilsonlee avatar Mar 08 '18 06:03 vilsonlee