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

Android niggles #34

Closed
5 tasks done
potatoeggy opened this issue Jan 14, 2022 · 1 comment
Closed
5 tasks done

Android niggles #34

potatoeggy opened this issue Jan 14, 2022 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@potatoeggy
Copy link
Owner

potatoeggy commented Jan 14, 2022

To reach parity with the Electron version, the Android app should:

  • Force landscape mode
  • Remove the notification bar
  • Remove the video player transition
  • Add clicking sounds to switching mobile banner headers
  • Appropriately resize the video by zooming it out
@potatoeggy potatoeggy added the bug Something isn't working label Jan 14, 2022
@potatoeggy potatoeggy added this to the 1.3.0 milestone Feb 21, 2022
@potatoeggy
Copy link
Owner Author

To remove the Android poster gray play button for video, replace the contents of /android/app/src/main/java/me/eggworld/primoprod/MainActivity.java with the following:

package me.eggworld.primoprod;

import android.graphics.Bitmap;

import com.getcapacitor.BridgeActivity;
import com.getcapacitor.BridgeWebChromeClient;

public class MainActivity extends BridgeActivity {

    @Override
    public void onStart() {
        super.onStart();

        // disables the ugly default video tag poster image
        this.getBridge().getWebView().setWebChromeClient(new BridgeWebChromeClient(bridge) {
            @Override
            public Bitmap getDefaultVideoPoster() {
                return Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888);
            }
        });
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant