J jkhazraji Active Member Licensed User Longtime User Jul 31, 2022 #1 Hi everybody, Hi @Erel What are the parameters for 'createAudioSampleFormat' as for 'createTextSampleFormat' in the following code to create an audio resource B4X: Copy 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: Copy Array(Null, "application/x-subrip", 1, "en") to get an audio resource Please.. Last edited: Jul 31, 2022
Hi everybody, Hi @Erel What are the parameters for 'createAudioSampleFormat' as for 'createTextSampleFormat' in the following code to create an audio resource B4X: Copy 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: Copy Array(Null, "application/x-subrip", 1, "en") to get an audio resource Please..
LucaMs Expert Licensed User Longtime User Jul 31, 2022 #2 https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/Format.html Upvote 0
J jkhazraji Active Member Licensed User Longtime User Aug 1, 2022 #3 LucaMs said: https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/Format.html View attachment 131967 Click to expand... I am grateful for your reply, Sir. The JavaObject statement above is already using the format builder with 'initializeStatic' B4X: Copy format = format.InitializeStatic(. . . . . but what 'string' parameters suitable for B4A to come after it is what I am asking for. Upvote 0
LucaMs said: https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/Format.html View attachment 131967 Click to expand... I am grateful for your reply, Sir. The JavaObject statement above is already using the format builder with 'initializeStatic' B4X: Copy format = format.InitializeStatic(. . . . . but what 'string' parameters suitable for B4A to come after it is what I am asking for.