Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

orientation: app.conf #101

Open
42loop opened this issue Apr 6, 2021 · 1 comment
Open

orientation: app.conf #101

42loop opened this issue Apr 6, 2021 · 1 comment

Comments

@42loop
Copy link

42loop commented Apr 6, 2021

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants