georgski / cordova-vr-player

Plugin playing a video in VR View for Android and iOS
Other
8 stars 10 forks source link

PhoneGap Build Failed (iOS) #1

Closed juankza95 closed 7 years ago

juankza95 commented 7 years ago

Error - The following 3rd-party plugin is causing the build to fail and may need to be updated to a newer version: cordova-vr-player

The log says:

`#####/Plugins/cordova-vr-player/VideoPlayerViewController.m:5:9: fatal error: 'GVRVideoView.h' file not found

import "GVRVideoView.h

      ^

1 error generated."`

I'm using the plugin from npm (should be 1.3.0 I think, and the user's name is similar) but Phonegap Build is using 1.2.0

On Android works well, thanks!

binoculars88 commented 7 years ago

@juankza how did you manage to make this work on Android? I'm using it in Ionic. The player loads but it says "file not found". I've copied to video file everywhere... nothing seems to work.

georgski commented 7 years ago

Hi @juankza, apologies for not getting back sooner. The error indicates that the Google VR SDK is missing. It's quite odd as normally the GVRSDK cocoapod, should be installed automatically upon plugin installation (it's handled by cordova-plugin-cocoapods-support plugin). Could you please try installing the GVRSDK pod manually (version 1.0.1) to see if that helps?

binoculars88 commented 7 years ago

Does this mean cordova-plugin-cocoapod-support should be installed first, before installing cordova-vr-player, in order to make it work on iOS?

Edit: tried it again from scratched, but installed cocoapod first. Works like a charm!

georgski commented 7 years ago

The cordova-plugin-cocoapod-support is listed as a dependency in plugin.xml so it should be installed automatically upon plugin installation. I wonder why it didn't work, sorry but I don't have enough time at the moment to investigate this further. Perfect, glad it worked!

juankza95 commented 7 years ago

I don't know why PhoneGap Build doesn't install the cocoapod dependency.

Btw, in Android worked and I tried only be streaming a video from a server. I was only investigating at all. Great plugin man!

arkadiuszkubaczkowski commented 6 years ago

@binoculars88 I have the same problem, could you explain me how did u make it works?