Start a new topic

ArchitectView

ArchitectView


Hello people i just want to know if exist any method or function in the ArchitectView for know if the video is playing or not?

 

Because i want to put some buttons when the video it's on.

 

Sergio Zorrilla

 

Yes there are. Please look at the API reference that comes with the SDK it has more info on the triggers. You want to look at:

onLoaded

onPlaybackStarted

onFinishedPlaying

 

triggers.

 

Additionally we already include an example (6_Video_2_Playback States) that displays buttons based on the current video state.

Thanks Wolfgang. 

 

I like to know when I can call ArchitectView.setSystemUiVisibility in 08_PointOfInterest_1_PoiAtLocation.example?

I still see border both at the top and below.

Hi Jai,


Can you please share a screenshot of the view?


Thx and greetings

Nicola

image


OK, I borrow the code from EPSON BT300 and it works on the smartphones.


@Override

    public void onWindowFocusChanged(boolean hasFocus) {

        super.onWindowFocusChanged(hasFocus);

        if (hasFocus) {

            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {

                // Standard Android full-screen functionality.

                architectView.setSystemUiVisibility(

                        View.SYSTEM_UI_FLAG_LAYOUT_STABLE

                                | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION

                                | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN

                                | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION

                                | View.SYSTEM_UI_FLAG_FULLSCREEN

                                | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);

                getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

            }

        }

    }

Login or Signup to post a comment