vimeo / vimeo-unity-sdk

Easily stream your Vimeo videos into Unity or record and publish out to Vimeo.
MIT License
211 stars 49 forks source link

video is not playing in android device #106

Open bodapativinay opened 4 years ago

bodapativinay commented 4 years ago

Describe the issue

CanvasPlayer demo scene when i play from editor its working good. Then i build it to android but video is not displayed. When i debug in android its showing this error:

12-10 18:53:47.221 26154 26241 W Unity : The referenced script (SeekSlider) on this Behaviour is missing! 12-10 18:53:47.221 26154 26241 W Unity : 12-10 18:53:47.221 26154 26241 W Unity : (Filename: ./Runtime/Scripting/ManagedReference/SerializableManagedRef.cpp Line: 199) 12-10 18:53:47.221 26154 26241 W Unity : 12-10 18:53:47.222 26154 26241 W Unity : The referenced script (Vimeo.Player.VimeoPlayer) on this Behaviour is missing! 12-10 18:53:47.222 26154 26241 W Unity : 12-10 18:53:47.222 26154 26241 W Unity : (Filename: ./Runtime/Scripting/ManagedReference/SerializableManagedRef.cpp Line: 199) 12-10 18:53:47.222 26154 26241 W Unity : 12-10 18:53:47.225 26154 26241 W Unity : The referenced script (Vimeo.Controls.Player.PlayButton) on this Behaviour is missing! 12-10 18:53:47.225 26154 26241 W Unity : 12-10 18:53:47.225 26154 26241 W Unity : (Filename: ./Runtime/Scripting/ManagedReference/SerializableManagedRef.cpp Line: 199) 12-10 18:53:47.225 26154 26241 W Unity : 12-10 18:53:47.233 26154 26241 W Unity : The referenced script on this Behaviour (Game Object 'SeekBar') is missing! 12-10 18:53:47.233 26154 26241 W Unity : 12-10 18:53:47.233 26154 26241 W Unity : (Filename: ./Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 334) 12-10 18:53:47.233 26154 26241 W Unity : 12-10 18:53:47.233 26154 26241 E Unity : A scripted object (probably SeekSlider?) has a different serialization layout when loading. (Read 32 bytes but expected 44 bytes) 12-10 18:53:47.233 26154 26241 E Unity : Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts? 12-10 18:53:47.233 26154 26241 E Unity : 12-10 18:53:47.233 26154 26241 E Unity : (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 2135) 12-10 18:53:47.233 26154 26241 E Unity : 12-10 18:53:47.237 26154 26241 W Unity : The referenced script on this Behaviour (Game Object '[VimeoPlayerCanvas]') is missing! 12-10 18:53:47.237 26154 26241 W Unity : 12-10 18:53:47.237 26154 26241 W Unity : (Filename: ./Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 334) 12-10 18:53:47.237 26154 26241 W Unity : 12-10 18:53:47.237 26154 26241 E Unity : A scripted object (probably Vimeo.Player.VimeoPlayer?) has a different serialization layout when loading. (Read 32 bytes but expected 1916 bytes) 12-10 18:53:47.237 26154 26241 E Unity : Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts? 12-10 18:53:47.237 26154 26241 E Unity : 12-10 18:53:47.237 26154 26241 E Unity : (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 2135) 12-10 18:53:47.237 26154 26241 E Unity : 12-10 18:53:47.238 26154 26241 W Unity : The referenced script on this Behaviour (Game Object 'PlayButton') is missing! 12-10 18:53:47.238 26154 26241 W Unity : 12-10 18:53:47.238 26154 26241 W Unity : (Filename: ./Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 334) 12-10 18:53:47.238 26154 26241 W Unity : 12-10 18:53:47.238 26154 26241 E Unity : A scripted object (probably Vimeo.Controls.Player.PlayButton?) has a different serialization layout when loading. (Read 32 bytes but expected 56 bytes) 12-10 18:53:47.238 26154 26241 E Unity : Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts? 12-10 18:53:47.238 26154 26241 E Unity : 12-10 18:53:47.238 26154 26241 E Unity : (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 2135)

Steps to reproduce the problem

Build CanvasPlayer demo scene to android devices.

Unity version

2019.2.8f1

Operating system

Android 8

jdmiranda commented 4 years ago

if you use the updated library it should work. it did that for me with the same issue.

AMolti commented 4 years ago

if you use the updated library it should work. it did that for me with the same issue.

Hello,

Which library need to be updated? Because I have the same problem on Android.

I'm on Unity 2019.3.5

Edit: Bug disappear when I use the release package (Before I used the repository clone)...

franMx commented 4 years ago

hi @DevBNM Where did you get a release package? Have same problem and can't fix it.

AMolti commented 4 years ago

@franMx On this page: https://github.com/vimeo/vimeo-unity-sdk/releases

I don't know why the bug disappear, may be it's magic. :)

sharmilhassan commented 2 years ago

I am experiencing a similar problem on Quest 2 (Android platform). I'm new to Unity and Quest 2 development. Using the Unity Vimeo VR 360prefab I am able to successfully run it using with the Oculus OVRCameraRig using the Oculus link cable. The video plays in the headset in this mode. However, when I build and run the app standalone in the headset, all I get is a gray screen. I have been unable to figure out how to get it to work as a deployed app. Has anyone else experienced this and/or could you please tell me what I should do. I would really appreciate any help.