victordiaz / PHONK

PHONK is a coding playground for new and old Android devices
https://phonk.app
GNU General Public License v3.0
457 stars 27 forks source link

orientation: app.conf #101

Open 42loop opened 3 years ago

42loop commented 3 years ago

use case: have a osc controlled videoplayer in fullscreen landscape orientation

as soon as i use an app.conf file to set orientation & fullscreen, my video player shows the first frame, is even controllable by the osc client (sound plays) but videoplayer image never gets updated

there is some suspicious bogus code in AppRunnerActivity.java at line 170:

        // and init the AppRunner in onConfigurationChanged
        if (!orientationChanged) initAppRunner();

while orientationChanged is set to false in line 112 and never gets changed...

also: using an empty app.conf (just the curly brackets) crashes phonk

Android version: 10 GO

[my workaround is now to use portrait mode and rotate the video by 90 deg ;-)]

victordiaz commented 3 years ago

I just had a quick check and fullscreen+landscape video works for me. I took the examples/media/Video and added the same app.conf from examples/Advanced/App Config and changed the orientation property to landscape.

Android sometimes is a bit picky with the video encoding format and sizes. Could you try maybe with some of the file formats listed here? https://developer.android.com/guide/topics/media/media-formats