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

Upload fail #120

Open michaelboccara opened 4 years ago

michaelboccara commented 4 years ago

Describe the issue

I tried uploading a ~50MB mp4 file from a unity app and it fails after 10MB or so, resuming from the beginning and failing after 3 times

Steps to reproduce the problem

I actually have a test case which you can try from my forked branch: https://github.com/michaelboccara/vimeo-unity-sdk/tree/feature/upload_fail Open the Uploader.unity scene Fill a valid local path to a >50MB mp4 file, and press the Upload button The progress can be seen in the editor's inspector window

Unity version

2018.2 and further, till latest 2019.3

Operating system

Windows 10

michaelboccara commented 4 years ago

I found a workaround for this problem: I just reduced the chunk size from 128MB to 8MB! I noticed that the failure always happened after uploading ~10MB (out of the ~50MB of the video), Sounds like a bug in the server side. So by reducing the chunk to 8MB I'm avoiding the problem. Still, would be nice to receive a sign of life from Vimeo to tell us what's wrong with their server.