Ziggeo / android-sdk-demo

Ziggeo's Android Client SDK 2.0
Apache License 2.0
8 stars 5 forks source link

Cannot play video in v2.4.1 #38

Closed objectorientedperson closed 3 years ago

objectorientedperson commented 3 years ago

Hi,

SDK throws exception when I try to play an uploaded video:

D/OkHttp: <-- 200 OK https://embed.ziggeo.com/v1/applications/bc90c5d7ed6f42fb08d3c8cb5e54875e/videos/7dbc6f70358ec226bca1825117d97e65 (231ms) Access-Control-Allow-Credentials: true D/OkHttp: Access-Control-Allow-Methods: PUT, GET, POST, DELETE, OPTIONS Access-Control-Allow-Origin: * Content-Type: application/json Date: Fri, 15 Oct 2021 23:00:14 GMT Server: Apache Vary: Accept-Encoding,User-Agent X-Content-Type-Options: nosniff X-Powered-By: PHP/7.1.33 Connection: keep-alive <-- END HTTP E/ZVideoView: java.io.IOException: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1330 path $.effect_profile at com.ziggeo.androidsdk.net.callbacks.BaseRxRequestCallback.onResponse(BaseRxRequestCallback.java:50) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:174) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:929)

Can you please take a look into this? Thanks.

3akat commented 3 years ago

@objectorientedperson please take a look at the v2.4.2

objectorientedperson commented 3 years ago

@3akat issue fixed on v2.4.2. Thanks for the update.