Menu

Remove all buttons from the screen while recording video

Q&A
Anonymous
2020-02-18
2020-08-16
  • Anonymous

    Anonymous - 2020-02-18

    Hey guys,

    I am trying to find a way to remove all buttons from the screen while being
    in video recording mode. Can anyone help me on this matter?

    Thanks for your time and support!

    Best,
    Paul

     
    • Mark

      Mark - 2020-02-18

      Does Settings/On screen GUI/"Immersive mode" help?

       
      • Anonymous

        Anonymous - 2020-08-10

        Hi Mark! Thanks for the excellent app!

        I want to use it in a streaming setup, where I'm mostly interested in live preview from the phone through HDMI to a capture card and so on. The phone considers the HDMI display as an external display and either offers to mirror or extend the display.

        If I try mirror the immersive mode kicks in, but the output has the black stripe for where the buttons are. And in extended display mode the immersive mode never kicks in.

        Is there a timer or a button based option to hide all GUI without relying on the immersive mode?

         
        • Oleg

          Oleg - 2020-08-10

          I just wanted to login to subscribe to this thread, the previous post got somehow anonymous.

           
          • Oleg

            Oleg - 2020-08-16

            @mark-h I've looked at the code a little bit, and I think something like below would work for such use case.

            I used the volume buttons actions to toggle hiding/showing UI. I piggy-backed on the immersive mode (which I suspect isn't correct, but worked).

            I'd be very happy if something like this would get into the official release. Do you think a merge request with this would be interesting?

            Thanks a lot!

            git diff
            diff --git a/app/src/main/java/net/sourceforge/opencamera/ui/MainUI.java b/app/src/main/java/net/sourceforge/opencamera/ui/MainUI.java
            index c6f48bff..82f8df3b 100644
            --- a/app/src/main/java/net/sourceforge/opencamera/ui/MainUI.java
            +++ b/app/src/main/java/net/sourceforge/opencamera/ui/MainUI.java
            @@ -2532,6 +2532,9 @@ public class MainUI {
                                         main_activity.getPreview().showToast(main_activity.getChangedAutoStabiliseToastBoxer(), R.string.auto_stabilise_
                                     }
                                     return true;
            +                    case "volume_toggle_hide_ui":
            +                        setImmersiveMode(!this.immersive_mode);
            +                        return true;
                                 case "volume_really_nothing":
                                     // do nothing, but still return true so we don't change volume either
                                     return true;
            diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml
            index 29a5ea27..ee4bdc49 100644
            --- a/app/src/main/res/values/arrays.xml
            +++ b/app/src/main/res/values/arrays.xml
            @@ -95,6 +95,7 @@
                     <item>Zoom in/out</item>
                     <item>Change exposure level</item>
                     <item>Switch auto-level on/off</item>
            +        <item>Toggle hiding UI</item>
                     <item>Change device volume</item>
                     <item>Do nothing</item>
                 </string-array>
            @@ -104,6 +105,7 @@
                     <item>volume_zoom</item>
                     <item>volume_exposure</item>
                     <item>volume_auto_stabilise</item>
            +        <item>volume_toggle_hide_ui</item>
                     <item>volume_nothing</item><!-- actually means change device volume! -->
                     <item>volume_really_nothing</item>
                 </string-array>
            
             

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.