No video, only controls and sound on Android

Hello,

I’m trying to write a CoronaSDK plugin using the Kaltura player. I’ve managed to load the player and load a video, but I only see the controls and hear the sound.

I use this code to add Kaltura to Corona:

public int show(LuaState L) {
    // Fetch a reference to the Corona activity.
    // Note: Will be null if the end-user has just backed out of the activity.
    CoronaActivity activity = CoronaEnvironment.getCoronaActivity();
    if (activity == null) {
        return 0;
    }
    // Fetch the first argument from the called Lua function.
    String the_id = L.checkString( 1 );
    if ( null == the_id ) {
        the_id = "1_sf5ovm7u";
    }
    // Create web view on the main UI thread.
    if (activity != null) {
        final String video_id =  the_id;
        activity.runOnUiThread(new Runnable() {
            @Override
            public void run() {
                // Fetch a reference to the Corona activity.
                // Note: Will be null if the end-user has just backed out of the activity.
                CoronaActivity activity = CoronaEnvironment.getCoronaActivity();
                if (activity == null) {
                    return;
                }
                if ( null == mPlayerView ) {
                    mPlayerView = new PlayerViewController(activity);
                    mPlayerView.loadPlayerIntoActivity(activity);

                    CoronaEnvironment.getCoronaActivity().getOverlayView().addView( mPlayerView );
                }
                KPPlayerConfig config = new KPPlayerConfig("http://cdnapi.kaltura.com", "29030452", "1868701");
                config.setEntryId(video_id);
                mPlayerView.initWithConfiguration(config);
                
            }
        });
    }
    return 0;
}

What am I missing here?
Thanks,
Arthur Schenk

Hey @arthur_schenk,

Try to use our demo repo:

Let us know if you have more questions.

Best,
Eliza