Overlay Visibility Guide

Overlay Visibility Handling Guide

Implementation of the overlay visibility will largely depend on the interaction of your app's interface and the SDK. In certain cases, you may need to hide certain interface elements and/or resize the video.

Below is an example of the delegate methods implementation:

SLRVideoPlayer: SLROverlayDelegate {
  
  public func handleActionShown(_ action: SLRActionShown) {
    if action.source == .overlay {
      if action.isShown {
        print("overlay opened")
      } else {
        print("overlay closed")
      }
    }
  }

}