Code Monkey home page Code Monkey logo

gvr-ios-sdk's Introduction

November 6, 2019 update

There's a new open source Cardboard SDK for iOS and Android NDK that offers a streamlined API, improved device compatibility, and built-in viewer profile QR code scanning.

Google VR SDK for iOS

Enables Daydream and Cardboard app development on iOS.

Copyright (c) 2016 Google Inc. All rights reserved.

For updates, known issues, and upgrade instructions, see the release-notes.

For first time users, see the Get Started with Google VR on iOS guide.

Please note, we do not accept pull requests.

gvr-ios-sdk's People

Contributors

cyisrael avatar dav-cz avatar fredsa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gvr-ios-sdk's Issues

-> Installing CardboardSDK (0.7.2) time out

can not pod success

[!] Error installing CardboardSDK
[!] /usr/bin/curl -f -L -o /var/folders/s9/sss1yz7j76v9br278lz56k5m0000gn/T/d20160516-16103-cbqz4x/file.tgz https://www.gstatic.com/cpdc/4d33147568331bb6-CardboardSDK-0.7.2.tar.gz --create-dirs --netrc

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:01:15 --:--:-- 0curl: (7) Failed to connect to www.gstatic.com port 443: Operation timed out

VideoWidgetDemo won't play anything other than the sample video.

I've been unable to get the VideoWidgetDemo sample to play another video file. It shows nothing but white where the video should be followed by the app crashing after a few seconds with "Message from debugger: Terminated due to memory issue."

I've tried videos we encoded as well as videos from this page:
http://photocreations.ca/3D/

And I can't find a single video outside of the provided congo.mp4 that will play on iPad or iOS using the sample. I've tried the same videos in the cardboard-android sdk with no issues. Also, we have a native player application that uses AVFoundation to decode these videos and play them back on the same devices so I don't suspect the device itself is to blame for this.

GVRVideoView Full size

Is there any way to call a view controller and the VideoView object inits in a full screen mode?
Thanks! (for iOS)

SOS ! videoView no image

xcode7.3 ,SDK 0.7.2
i create a GCSVideoView in my ViewController, everything is ok.
but when I change to VR (kGCSWidgetDisplayModeFullscreenVR) ,
the VR view donot have the image,also have the voice and control
I cant find the error please help me

audio callback or strict timing in GVRCardboardAudioEngine?

Hello!

Can you share any thoughts on adding an audio callback to the audio engine? This would allow for many interesting procedural audio techniques. Unity has released a Native Audio Plugin SDK which accomplishes this.

Also, what about scheduling of audio events within your existing framework? For example, playSound could take an additional argument which is a timestamp in the future when this sound should start playing. Check out the Web Audio API for an example of this.

These kinds of concepts are very useful for musical experiences which involve a strict sense of timing and allow for a wider variety of sounds then is reasonable to accomplish with purely sample-based playback.

Fail to switch to another video in one GCSVideoView

If one video is loaded (in either playing or stopped mode), try load another video will crash APP.
[_videoView loadFromUrl:[[NSURL alloc] initFileURLWithPath:videoPath];

It will throw EXC_BAD_ACCESS at com.google.cardboard.RenderThread (9):
#0 0x00000001001ebedc in ion::gfx::Renderer::GetInternalResourceBinder(unsigned long*) const ()

...
0x1001ebed0 <+60>: bl 0x1001ff20c ; std::__1::__hash_iterator<std::__1::__hash_node<std::__1::__hash_value_type<unsigned long, std::_1::shared_ptrion::gfx::Renderer::ResourceBinder >, void>_> std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, std::__1::shared_ptrion::gfx::Renderer::ResourceBinder >, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, std::__1::shared_ptrion::gfx::Renderer::ResourceBinder >, std::__1::hash, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, std::__1::shared_ptrion::gfx::Renderer::ResourceBinder >, std::__1::equal_to, true>, ion::base::StlAllocator<std::__1::__hash_value_type<unsigned long, std::__1::shared_ptrion::gfx::Renderer::ResourceBinder > > >::find(unsigned long const&)
0x1001ebed4 <+64>: cbz x0, 0x1001ebee8 ; <+84>
0x1001ebed8 <+68>: ldr x20, [x0, #24]
-> 0x1001ebedc <+72>: ldr x8, [x19, #56]
...

Is there a way to switch to another video smoothly? If use another GCSVideoView, it will show the initialization screen again.

What is the best way to release the GVRVideoView

Everything works great except for the fact that if I open the GVRVideoView view and then close it and then open it again for a couple of times, my app will receive a didReceiveMemoryWarning and then the jetsam will force close my app!

I wonder if there is a way to make sure when we are closing the VR view, the view is completely released? currently I am doing this:

-(void)viewWillDisappear:(BOOL)animated
{
    [_videoView stop];
    [_videoView removeFromSuperview];
    _videoView = nil;
}

should I do something else too?

bitcode is not enabled

Is there any plan to release a bitcode enabled version of library? The one fetched by cocoapod doesn't contain bitcode

GVRVideoView Forcing display mode

Hi !

It would be great to be able to force Fullscreen VR display mode for GVRVideoView. I know there is a way to enable the Cardboard Button which switch to Fullscreen VR display mode but there is no way to switch programmatically ?

Thanks

BlackScreen BUG

X-Code 7.3.1
iPhone 9.3.1
GVRSDK 0.8.0

I had add a videoview in my viewcontroller, I touch the VR button,
but when i back , the screen video image is black,
kGCSWidgetDisplayModeEmbedded ->kGCSWidgetDisplayModeFullscreenVR->kGCSWidgetDisplayModeFullscreenVR .
i can find my video image anyway

NextOne

I want to auto play next one in the VR model,
but i found the next one is no VR model also the glasses mask is exist。
how can i set the videoview displaymode?

App Crash when use the GCSVideoView in the storyboard

When I alloc init it by code and addsubview, it seems working. However, if I assign the GCSVideoView in the storyboard to a UIView and use IBOutlet, the app will crash at launch. Maybe something wrong in the initWithCoder?

2016-04-04 14:55:54.400 Google360Video[1897:18511] *** Assertion failure in -[GCSVideoView onMetadataParsed:], googlemac/iPhone/CardboardSDK/Source/GCSVideoView.mm:227
2016-04-04 14:55:54.407 Google360Video[1897:18511] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error at CVOpenGLESTextureCacheCreate -6661'
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010ab65d85 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x000000010a5d9deb objc_exception_throw + 48
    2   CoreFoundation                      0x000000010ab65bea +[NSException raise:format:arguments:] + 106
    3   Foundation                          0x000000010a223d5a -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198
    4   Google360Video                      0x00000001084662d2 -[GCSVideoView onMetadataParsed:] + 838
    5   Google360Video                      0x0000000108465c3e -[GCSVideoView connection:didReceiveData:] + 421
    6   CFNetwork                           0x000000010e534a36 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 69
    7   CFNetwork                           0x000000010e5349da -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 199
    8   CFNetwork                           0x000000010e534b2f -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 48
    9   CFNetwork                           0x000000010e509166 _ZL30_NSURLConnectionDidReceiveDataP16_CFURLConnectionPK8__CFDatalPKv + 79
    10  CFNetwork                           0x000000010e399655 ___ZN27URLConnectionClient_Classic29_delegate_didReceiveDataArrayEv_block_invoke + 293
    11  CFNetwork                           0x000000010e48fd75 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 100
    12  libdispatch.dylib                   0x000000010c8613eb _dispatch_client_callout + 8
    13  libdispatch.dylib                   0x000000010c84348b _dispatch_block_invoke + 716
    14  CFNetwork                           0x000000010e38860a _ZN19RunloopBlockContext13_invoke_blockEPKvPv + 24
    15  CoreFoundation                      0x000000010aa5e894 CFArrayApplyFunction + 68
    16  CFNetwork                           0x000000010e388503 _ZN19RunloopBlockContext7performEv + 137
    17  CFNetwork                           0x000000010e3883bc _ZN17MultiplexerSource7performEv + 282
    18  CFNetwork                           0x000000010e3881de _ZN17MultiplexerSource8_performEPv + 72
    19  CoreFoundation                      0x000000010aa8b301 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    20  CoreFoundation                      0x000000010aa8122c __CFRunLoopDoSources0 + 556
    21  CoreFoundation                      0x000000010aa806e3 __CFRunLoopRun + 867
    22  CoreFoundation                      0x000000010aa800f8 CFRunLoopRunSpecific + 488
    23  GraphicsServices                    0x000000010ddaaad2 GSEventRunModal + 161
    24  UIKit                               0x000000010b1c1f09 UIApplicationMain + 171
    25  Google360Video                      0x000000010844f06f main + 111
    26  libdyld.dylib                       0x000000010c89592d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

After load video in VR mode, screen is in wrong size

After a video is running in kGCSWidgetDisplayModeFullscreenVR mode, reload it by:

    NSString *videoPath = [[NSBundle mainBundle] pathForResource:@"congo" ofType:@"mp4"];
    [_videoView loadFromUrl:[[NSURL alloc] initFileURLWithPath:videoPath]];

and the screen will be in wrong size with a black block on the top.

thumb_img_4281_1024

Add setting to reduce accelerometer frequency?

Using this SDK for watching 360 videos, the experience is pretty jumpy. Movements in the video happen with the slightest uncontrollable hand movements.

We had this problem in another application, and the experience was greatly improved just be reducing the accelerometer frequency from 60 Hz down to 15 Hz.

Can this library expose the frequency as a setting? I guess in the latest IOS, this is the CMMotionManager.accelerometerUpdateInterval.

manually controlling the sphere view?

I wonder if it is possible to control the initial location of the GVRVideoView video? the sphere? so when the video starts, it can be started from another perspective than the default current one? Thanks.

Changing the Head Position

I am trying to create a VR application that uses Indoor Location based on your TreasureHunt Demo.

I have the VR and Indoor Location working separately within the one project and can access the position (X and Y) within the TreasureHuntRenderer.m file.

I am aware that in Normal OpenGL, the View Matrix would be the one to be changed. Would that be the case for the view matrix eyeFromHeadMatrix in this project?

Thanks,
Tom

err = -6683,why

2016-05-18 20:06:56.704 Invalid atom size.
2016-05-18 20:06:58.717 Could not create Texture, err = -6683
Failed to create IOSurface image (texture)
2016-05-18 20:06:58.718 [1015:335163] Could not create Texture, err = -6683

Few questions/issues.

  1. Is the (i) icon in the bottom left hand corner intentional? Is there a way to get rid of it? Here's a screenshot to show what I'm talking about: http://i.imgur.com/vWBLMkw.jpg

  2. Are there any functions/flags that I can set to switch to fullscreen/non-fullscreen and turn VR on/off other than the buttons included in the player which can be enabled/disabled? In other words, how can I implement a custom fullscreen and VR button? I haven't been able to find them but maybe I'm missing something?

  3. Is there anyway to disable or implement a custom Insert Into Viewer screen? Also, what is the intended functionality to hide said screen when a user is presented with it? I've found sometimes it never goes away, sometimes it goes away rather quickly. Motion of the device seems to possibly impact it? Is it on a timer?

GVRPanoramaView should not disappear and reappear when a new image is loaded.

This is especially jarring when the view is in full-screen or cardboard mode and it reveals the view controller that loaded it momentarily.

A better solution would be to slowly fade the first image out to show the view's background colour and then fade the new image in once loaded.

Alternatively, if control over alpha is provided (see #43) the image could simply swap over once loaded and the app could take control of whether fading occurs or not, but the full screen view should still not disappear.

The first option seems better to me, this being a very high-level component.

Is there a way to get Head Position in GVRVideoView?

When use GVRVideoView to play a video, we sometime want to know the Head Position to know which part is playing.
Is there a way to get a value like GVRHeadTransform ? Or something like a simple theta, phi ?

Crash in large size remote video

Hi, the app crash when I call a remote video(about 100MB):

[_videoView loadFromUrl:[NSURL URLWithString:http://cdn2b.download.sample.phncdn.com/videos/201603/18/71401761/vl_1080P_1971.0k_71401761.mp4?rs=50000&ri=50000&ipa=203.186.100.100&s=1459409665&e=1459416865&h=1b52b1217db0a790bc1d79e155697a0e]];

The debug console shows:
Message from debugger: Terminated due to memory issue

Can't change to Cardboard play

I got the .h , .a , .bundle from the DemoProject, then import in my project , it can play video .But , when I click the cardboard button . It crashed.

my uiviewcontroller haven't xib. So, I use NSLayoutConstraint;
Code :
@interface PlayerVC (){BOOL _isPaused;}
@Property (nonatomic) GVRVideoView *videoView;
@EnD

  • (void)viewDidload{
    _videoView = [[GVRVideoView alloc]initWithFrame:self.view.frame];
    [self.view addSubview:_videoView];
    [_videoView setTranslatesAutoresizingMaskIntoConstraints:NO];

    NSLayoutConstraint *constraint1 = [NSLayoutConstraint constraintWithItem:_videoView attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self.view attribute:NSLayoutAttributeTop multiplier:1.0 constant:1];
    NSLayoutConstraint *constraint2 = [NSLayoutConstraint constraintWithItem:_videoView attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self.view attribute:NSLayoutAttributeLeft multiplier:1.0 constant:1];
    NSLayoutConstraint *constraint3 = [NSLayoutConstraint constraintWithItem:_videoView attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self.view attribute:NSLayoutAttributeBottom multiplier:1.0 constant:-1];
    NSLayoutConstraint *constraint4 = [NSLayoutConstraint constraintWithItem:_videoView attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self.view attribute:NSLayoutAttributeRight multiplier:1.0 constant:-1];
    NSArray *array = [NSArray arrayWithObjects:constraint1, constraint2, constraint3, constraint4 ,nil];
    [self.view addConstraints:array];

    _videoView.delegate = self;
    _videoView.enableFullscreenButton = NO;
    _videoView.enableCardboardButton = YES;
    _isPaused = NO;

    NSString *path = [[NSBundle mainBundle] pathForResource:videoName ofType:@""];
    NSURL *urlR = [[NSURL alloc] initFileURLWithPath:path];
    [_videoView loadFromUrl:urlR];
    }

Log :

+[GOOTypography robotoMediumWithSize:]: unrecognized selector sent to class 0x1002aa660

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[GOOTypography robotoMediumWithSize:]: unrecognized selector sent to class 0x1002aa660'
*** First throw call stack:
(0x18174edb0 0x180db3f80 0x181755b44 0x181752bec 0x181650c5c 0x100113f2c 0x1001137e4 0x10010c430 0x100119238 0x1868e4be8 0x1868e4b64 0x1868cc870 0x1868e4454 0x18689cc0c 0x181704728 0x1817024cc 0x1817028fc 0x18162cc50 0x182f14088 0x186916088 0x1001029c8 0x1811ca8b8)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

I can't see what happen , how to fix this .

how to hide the tipView?

the SDK tip view when i change displaymodeVR .
everytime touch the button.the tip view is show.
how to hide the tipView?
it’s boring. How do I set let him show only once?

Memory Leak? Is there a way to release resources?

Our app let's you open 360 videos, watch them for a certain amount of time, and then it sends you back to the video selection page. After opening 6-7 videos, the app crashes with memory warnings. Is there any chance this library is holding on to resources too long? Is there a way to explicitly clean up?

Any guidance is certainly appreciated. If this is the wrong repo to put issues with the SDK please let me know. And also please open source soon, as I'd love to fix issues and put up PRs.

Thanks.

Pod Install Failure

First of all, I changed the pod file and append a target, actually I am testing the Panorama project, and import the missing "GCSPanoramaView.h" file.

target 'Panorama' do
pod 'CardboardSDK', '~> 0.7.0'
end

Then I get a sad result

[!] Error installing CardboardSDK
!] /usr/bin/curl -f -L -o /var/folders/nd/hbb3rk3n0516qf_7_9d3mqmc0000gn/T/d20160331-5157-ce7nme/file.tgz https://www.gstatic.com/cpdc/97ceadc125bddf66-CardboardSDK-0.7.0.tar.gz --create-dirs
...
Failed to connect to www.gstatic.com port 443: Operation timed out

App Crash when use the GCSVideoView to load the local video?

Assertion failure in -[GCSSphericalMetadataExtractor intFromBytes:withLength:], googlemac/iPhone/CardboardSDK/Source/GCSSphericalMetadataExtractor.mm:201
2016-04-21 13:09:18.633 P2[5984:1078876] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'data == nil || length > 8'
*** First throw call stack:
(0x1835cee38 0x182c33f80 0x1835ced08 0x183f54124 0x1000d3fc4 0x1000d3978 0x1000d3660 0x1000d6398 0x183d49694 0x183d49624 0x183d49798 0x183d1ce78 0x183bac93c 0x183ca32a8 0x1007a1a3c 0x1007ab1e0 0x183b9bc6c 0x1834ac73c 0x183b9bb50 0x183b9ba10 0x183b9b83c 0x183585124 0x183584bb8 0x1835828b8 0x1834acd10 0x184d94088 0x188781f70 0x1000a58a8 0x18304a8b8)
libc++abi.dylib: terminating with uncaught exception of type NSException

when i used the VideoWidgetDemo

diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

question ios 8.0 unity5.3.4p6 xcode7.3.1

2016-05-20 11:09:04.498 VRMAX[1982:566634] -> registered mono modules 0x1014a81b8
-> applicationDidFinishLaunching()
May 20 11:09:04 VRMAX[1982] : CGContextSetShouldAntialias: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
May 20 11:09:04 VRMAX[1982] : CGContextSetInterpolationQuality: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
May 20 11:09:04 VRMAX[1982] : CGContextScaleCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
May 20 11:09:04 VRMAX[1982] : CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
May 20 11:09:04 VRMAX[1982] : CGContextDrawImage: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
May 20 11:09:04 VRMAX[1982] : CGContextSetBlendMode: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
May 20 11:09:04 VRMAX[1982] : CGContextSetFillColorWithColor: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
May 20 11:09:04 VRMAX[1982] : CGContextFillRects: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
2016-05-20 11:09:04.898 VRMAX[1982:566634] Uncaught exception: NSInvalidArgumentException: *** -[NSPlaceholderString initWithFormat:locale:arguments:]: nil argument
(
0 CoreFoundation 0x0000000184a91918 + 148
1 libobjc.A.dylib 0x00000001840fff80 objc_exception_throw + 56
2 CoreFoundation 0x0000000184a91848 + 0
3 Foundation 0x0000000185362814 + 124
4 Foundation 0x0000000185362710 + 68
5 VRMAX 0x00000001012ee9cc -[GVROverlayView initWithFrame:] + 3228
6 VRMAX 0x00000001012eb588 -[GVRUnityController init] + 104
7 VRMAX 0x00000001012ebba0 createUiLayer + 88
8 VRMAX 0x000000010067260c -[CardboardAppController createUnityView] + 108
9 VRMAX 0x000000010049a140 -[UnityAppController application:didFinishLaunchingWithOptions:] + 1044
10 UIKit 0x00000001897f9704 + 400
11 UIKit 0x0000000189a28130 + 2904
12 UIKit 0x0000000189a2c4b8 + 1672
13 UIKit 0x0000000189a295c0 + 168
14 FrontBoardServices 0x0000000186047790 + 184
15 FrontBoardServices 0x0000000186047b10 + 56
16 CoreFoundation 0x0000000184a48efc + 24
17 CoreFoundation 0x0000000184a48990 + 540
18 CoreFoundation 0x0000000184a46690 + 724
19 CoreFoundation 0x0000000184975680 CFRunLoopRunSpecific + 384
20 UIKit 0x00000001897f2580 + 460
21 UIKit 0x00000001897ecd90 UIApplicationMain + 204
22 VRMAX 0x00000001009db7f0 main + 208
23 libdyld.dylib 0x00000001845168b8 + 4
)
2016-05-20 11:09:04.899 VRMAX[1982:566634] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSPlaceholderString initWithFormat:locale:arguments:]: nil argument'
*** First throw call stack:
(0x184a91900 0x1840fff80 0x184a91848 0x185362814 0x185362710 0x1012ee9cc 0x1012eb588 0x1012ebba0 0x10067260c 0x10049a140 0x1897f9704 0x189a28130 0x189a2c4b8 0x189a295c0 0x186047790 0x186047b10 0x184a48efc 0x184a48990 0x184a46690 0x184975680 0x1897f2580 0x1897ecd90 0x1009db7f0 0x1845168b8)
libc++abi.dylib: terminating with uncaught exception of type NSException

GCSVideoView setting ?

I wrote a demo as demo what demo did , but I get the result of video up-down side,just like be split to two pieces.
2016-04-13 4 01 36

Link warning about different visibility settings

When compiling latest examples (0.7.2) using Xcode 7.3.1, there is following warning (output multiple times):

ld: warning: direct access in gvr::Singleton<gvr::ServerLogger>::GetInstance() to global weak symbol gvr::Singleton<gvr::ServerLogger>::GetInstance()::g_instance means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.

Changing project's 'Symbols Hidden By Default' did not helped in my case.

Touch support?

I understand this is more a VR SDK meant for Cardboard and the likes, but it would be nice to offer touch support. My use case is for showing equirect panos on screen which can be spun/controlled via touch.

How to disable the intro dialog when vrModeEnable is set to TRUE

Working on iOS with the latest SDK (version 0.8) on iPhone 6, 5C and 4S.

When vrModeEnabled on the GVRCardboardView instance is set to TRUE, a dialog appears to explain that the phone must be placed inside the carboard headset, etc ..stuff for the newbie. However, the dialog keeps appearing each time and its annoying, plus its useless.

Is there currently a way to disable or control the display of this dialog? I think they call it the Startup or Ongoing dialog in Unity ..and that it can be commented somehow.

"Trigger" user event triggers when nodding head up and down

"Trigger" event is expected to trigger when touching screen (CardboardView or pressing the physical headset button which transmits like touching the screen). That's OK.

However the event is triggered also when nodding the up and down with the head. That's wrong. This is similar to the "Tilt" event which is triggered by nodding on te oriented Z axis.

Nodding up and down the head should be triggering another separate event. The problem appears in the TreasureHunt sample. I'm pretty sure I won't play a shooter game (firing and wasting bullets) by nodding my head up and down!

Disable fullscreen button in Cardboard mode when enableFullscreenButton is false

When I setup my GVRWidgetView (applies to both Panorama and Video) I set enableFullscreenButton to false, because my WidgetView already fills the entire screen.
When I now go into Cardboard mode, a different fullscreen button appears in the top right, that just disables the VR rendering mode. This button does the exact same thing as pressing the back button and going to my GVRWidgetView that fills the screen.

This is very confusing from a user perspective, because I need to put some Views on top of my GVRWidgetView. So when the user disables Cardboard mode by pressing the back button, they see the Views but now they can also disable that mode by pressing the fullscreen button, but without seeing other Views since it is a GLView.

The fullscreen button in Cardboard mode should respect the enableFullscreenButton property or please give as separate property to toggle its visibility.

library not found for -lPods

I'm getting this error when i build the VideoWidgetDemo using CocaPods 1.0.0, Xcode 7.3, OS X 10.11.4:

ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation)

Ld /Users/william/Library/Developer/Xcode/DerivedData/VideoWidgetDemo-gciobuvjychjulgwraiodifnopto/Build/Products/Debug-iphonesimulator/VideoWidgetDemo.app/VideoWidgetDemo normal x86_64 cd /Users/william/Documents/ios/cardboard-ios/CardboardSamples/VideoWidgetDemo export IPHONEOS_DEPLOYMENT_TARGET=9.2 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L/Users/william/Library/Developer/Xcode/DerivedData/VideoWidgetDemo-gciobuvjychjulgwraiodifnopto/Build/Products/Debug-iphonesimulator -L/Users/william/Documents/ios/cardboard-ios/CardboardSamples/VideoWidgetDemo/Pods/CardboardSDK/Libraries -F/Users/william/Library/Developer/Xcode/DerivedData/VideoWidgetDemo-gciobuvjychjulgwraiodifnopto/Build/Products/Debug-iphonesimulator -filelist /Users/william/Library/Developer/Xcode/DerivedData/VideoWidgetDemo-gciobuvjychjulgwraiodifnopto/Build/Intermediates/VideoWidgetDemo.build/Debug-iphonesimulator/VideoWidgetDemo.build/Objects-normal/x86_64/VideoWidgetDemo.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.2 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lCardboardSDK -lc++ -framework AVFoundation -framework AudioToolbox -framework CoreGraphics -framework CoreMedia -framework CoreMotion -framework CoreVideo -framework GLKit -framework MediaPlayer -framework OpenGLES -framework QuartzCore -fobjc-arc -fobjc-link-runtime -lPods -lPods-VideoWidgetDemo -Xlinker -dependency_info -Xlinker /Users/william/Library/Developer/Xcode/DerivedData/VideoWidgetDemo-gciobuvjychjulgwraiodifnopto/Build/Intermediates/VideoWidgetDemo.build/Debug-iphonesimulator/VideoWidgetDemo.build/Objects-normal/x86_64/VideoWidgetDemo_dependency_info.dat -o /Users/william/Library/Developer/Xcode/DerivedData/VideoWidgetDemo-gciobuvjychjulgwraiodifnopto/Build/Products/Debug-iphonesimulator/VideoWidgetDemo.app/VideoWidgetDemo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.