BUT, newly loaded files to vimeo, has always this array empty, they are public but... don't has the progressive file available, that's why there is exception in Your code in line
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.vimeoplayer, PID: 20899
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.get(ArrayList.java:437)
at com.example.vimeoplayer.ui.MainActivity$1.onResponse(MainActivity.java:105)
at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$1.run(ExecutorCallAdapterFactory.java:70)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
In Your app I've just changed this line:
private static final String VIMDEO_ID = "470951878";
(original was):
// private static final String VIMDEO_ID = "820802856";
(Main Activity line 40)
I just need to play for exaple this video: 470951878
Another video crashed fe: 470951878 (vimeo id)
please check, that the example video what You've provided has an progressive array in /config response:
https://player.vimeo.com/video/470951878/config
In Your example -You are searching for progressive table, and You find this file:
"https://vod-progressive.akamaized.net/exp=1683237460~acl=%2Fvimeo-transcode-storage-prod-us-east1-h264-540p%2F01%2F4190%2F18%2F470951878%2F2096012386.mp4~hmac=512de8a65c342b6077d3e65ee522bc164e21dceeb1a8f2b0b520c72bee22cd3b/vimeo-transcode-storage-prod-us-east1-h264-540p/01/4190/18/470951878/2096012386.mp4"
BUT, newly loaded files to vimeo, has always this array empty, they are public but... don't has the progressive file available, that's why there is exception in Your code in line
E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.vimeoplayer, PID: 20899 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.get(ArrayList.java:437) at com.example.vimeoplayer.ui.MainActivity$1.onResponse(MainActivity.java:105) at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$1.run(ExecutorCallAdapterFactory.java:70) at android.os.Handler.handleCallback(Handler.java:808) at android.os.Handler.dispatchMessage(Handler.java:101) at android.os.Looper.loop(Looper.java:166) at android.app.ActivityThread.main(ActivityThread.java:7529) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
In Your app I've just changed this line: private static final String VIMDEO_ID = "470951878"; (original was): // private static final String VIMDEO_ID = "820802856"; (Main Activity line 40)
I just need to play for exaple this video: 470951878
it's playing from this url: https://player.vimeo.com/video/820802856
has a correct /config url: https://player.vimeo.com/video/820802856/config
but progressive array is empty...
Any idea? Please for help...