Comments (8)
不是很确定,不过在PlayerViewController
里可以做个限制只支持横屏吧?
from md360player4ios.
恩, 前一个页面是竖屏, modal到这个页面限制他只支持横屏, 就会出现画面有一部分不显示, 不过画面确实是横屏了, 是不是坐标系没有旋转的问题
from md360player4ios.
那问题应该出在弹modal的时候给的是竖屏的尺寸了
from md360player4ios.
也是同样的问题,从竖屏过来,坐标其实是转了,但实际画面没有转,暂时还没有解决好
from md360player4ios.
解决了 这个其实不算是代码问题, present的时候PlayerViewController的尺寸并没有改变,这时候获取的还是竖屏时候的尺寸,把initParams放在present结束后就不会有这个问题了
from md360player4ios.
这样吗?
- (void)launch:(NSURL*)url {
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Player" bundle:nil];
PlayerViewController *vc = [storyboard instantiateViewControllerWithIdentifier:@"PlayerViewController"];
[self presentViewController:vc animated:YES completion:^{
[vc initParams:url];
}];
}
from md360player4ios.
这样就可以了
from md360player4ios.
感谢 @Jasoncoool
from md360player4ios.
Related Issues (20)
- Random crashes, no stack traces, xcode sees the device as disconnected
- 能直接像安卓那样在GLKView添加控件实现自定义VR嘛?
- issue
- 背景色怎么调节,目前是绿色 HOT 7
- [config setContainer:nil view:aView]; container 为nil 会crash HOT 1
- 使用IJKPlayer+VRLibrary 后, 播放卡顿, 具体还不知道为什么 HOT 4
- 配合IJKPlayer的下播放全景视频上下拖动视图有偏移 HOT 3
- ios 11.2.5直接崩溃 HOT 2
- Hotspot Plugin
- 播放视频 黑屏 HOT 1
- 切换全景图片
- mdview as md360player4android
- 下载demo后播放视频是黑屏的,有声音没画面 HOT 2
- compile armv7 architechture fail
- pod报错 HOT 1
- 请问库是否还会更新
- MDModeProjectionStereoSphere模式显示不正常
- YUV video data sample
- 你好,我想请教一下。在我的工程里面还需要在脚本中添加对 libavdevice 和 libpostproc 两个库的支持。要怎么修改你compile-ffmpeg脚本才能编译出我需要的库?
- 视频分辨率过大用你提供的代码。播放会是绿屏。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from md360player4ios.