Kodular ExoPlayer Extension – AddMediaSource error at runtime

Hi everyone, I’m trying to use the ExoPlayer Extension in Kodular to play a video from a Google Spreadsheet.

I already added ExoplayerCore.aix and ExoplayerUI.aix, and I’m calling AddMediaSource and CreateStyledPlayer.
But when I run the app, I get this error:

pgsql

CopyEdit

invoke: no method named `AddMediaSource` in class java.lang.Boolean

I double-checked the video URL and it looks correct.
Does anyone know why this error happens? Am I using the blocks incorrectly?

Thank you for your help!

Do IT results list blocks to find errors

So, what block should I use/connect?

Use a correct path to the file
See also

And learn to debug… use Do it…

Use the companion app and Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools

Taifun

1 Like