Interface VideoSurfaceAdapter

All Superinterfaces:
Serializable
All Known Implementing Classes:
LinuxVideoSurfaceAdapter, OsxVideoSurfaceAdapter, WindowsVideoSurfaceAdapter

public interface VideoSurfaceAdapter extends Serializable
Specification for a component that can attach a video surface to a native media player instance.

An adapter is needed since attaching a video surface uses an operating system-specific implementation.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    attach(MediaPlayer mediaPlayer, long componentId)
    Attach a video surface to a media player.
  • Method Details

    • attach

      void attach(MediaPlayer mediaPlayer, long componentId)
      Attach a video surface to a media player.
      Parameters:
      mediaPlayer - media player instance
      componentId - native id of the video surface component