•   over 2 years ago

Error with the android p2p lib

Hi,
I’m integrating theta P2P Android SDK with ExoPlayer.
val streamConfig = new ThetaConfig(
"video_url_example", // Video URL
"user_id_example", // Unique User Id
);
My question is regarding this user_id_example - is this supposed to be the user wallet’s address or some other ID?

Another question :
I’m getting an error when initialising ThetaHlsDataSourceFactory, might be again related to the user_id because I’m passing an address.
java.lang.NoSuchMethodError: No direct method (Landroid/content/Context;Lcom/google/android/exoplayer2/upstream/TransferListener;Lcom/google/android/exoplayer2/upstream/DataSource;)V in class Lcom/google/android/exoplayer2/upstream/DefaultDataSource; or its super classes (declaration of 'com.google.android.exoplayer2.upstream.DefaultDataSource' appears in /data/app/~~cvcmi6K2DbCJlXXraMgTWw==/com.intootv-ovxpGHVlOzyUvqcdwkj8Xw==/base.apk)
at org.theta.deliverysdk.datasource.ThetaHlsDataSourceFactory.createDataSource(Unknown Source:12)
at org.theta.deliverysdk.datasource.ThetaHlsDataSourceFactory.createDataSource(Unknown Source:0)
Can someone please advise on this integration?
Thanks.

  • 0 comments

Comments are closed.