Showing and Hiding the Action Bar
To display the action bar, the game should call playAI.showActionBar()
. This call should be made when a game starts. This is important because we do not want to record the game's loading screens or menus.
Depending on whether the user has a PlayAI account or not, the action bar will show a recording button or an onboarding button. Users can click on the onboarding button to create an account or the recording button to start recording.
When the user initiates recording, the game container is forced into fullscreen mode. This ensures that the game is recorded at the highest possible quality. If the game container selector is invalid, the SDK will throw an error.
To hide the action bar, the game can call playAI.hideActionBar()
.
Last updated