Comments (2)
Since 0.3.1, custom director factory is supported.
@interface VideoPlayerViewController ()<MD360DirectorFactory>
@end
@implementation VideoPlayerViewController
...
- (void) initPlayer{
...
/////////////////////////////////////////////////////// MDVRLibrary
MDVRConfiguration* config = [MDVRLibrary createConfig];
...
[config setDirectorFactory:self]; // pass in the custom factory
...
self.vrLibrary = [config build];
/////////////////////////////////////////////////////// MDVRLibrary
}
// implement the MD360DirectorFactory protocol here.
- (MD360Director*) createDirector:(int) index{
MD360Director* director = [[MD360Director alloc]init];
switch (index) {
case 1:
[director setEyeX:-2.0f];
[director setLookX:-2.0f];
break;
default:
break;
}
return director;
}
...
@end
from md360player4ios.
Thanks a Lot
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.