Android Question What are the 'RunMethod' parameters for createAudioSampleFormat?

jkhazraji

Active Member
Licensed User
Longtime User
Hi everybody,
Hi @Erel
What are the parameters for 'createAudioSampleFormat' as for 'createTextSampleFormat' in the following code to create an audio resource
B4X:
    Dim format As JavaObject

   format = format.InitializeStatic("com.google.android.exoplayer2.Format").RunMethod("createTextSampleFormat", Array(Null, "application/x-subrip", 1, "en"))
i.e, What is the replacement of
B4X:
Array(Null, "application/x-subrip", 1, "en")
to get an audio resource
Please..
 
Last edited:

LucaMs

Expert
Licensed User
Longtime User
https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/Format.html

1659307186182.png
 
Upvote 0

jkhazraji

Active Member
Licensed User
Longtime User
Upvote 0
Top