Tabnine Logo
PlayerSurfaceHolder.attach
Code IndexAdd Tabnine to your IDE (free)

How to use
attach
method
in
com.novoda.noplayer.PlayerSurfaceHolder

Best Java code snippets using com.novoda.noplayer.PlayerSurfaceHolder.attach (Showing top 4 results out of 315)

origin: novoda/no-player

private void attachToSurface(PlayerSurfaceHolder playerSurfaceHolder) {
  playerSurfaceHolder.attach(exoPlayer);
}
origin: novoda/no-player

@Test
public void givenPlayerSurfaceHolderContainsTextureView_whenAttachingVideoPlayer_thenSetsVideoTextureView() {
  PlayerSurfaceHolder playerSurfaceHolder = PlayerSurfaceHolder.create(textureView);
  playerSurfaceHolder.attach(videoPlayer);
  verify(videoPlayer).setVideoTextureView(textureView);
}
origin: novoda/no-player

@Test
public void givenPlayerSurfaceHolderContainsSurfaceView_whenAttachingVideoPlayer_thenSetsVideoSurfaceView() {
  PlayerSurfaceHolder playerSurfaceHolder = PlayerSurfaceHolder.create(surfaceView);
  playerSurfaceHolder.attach(videoPlayer);
  verify(videoPlayer).setVideoSurfaceView(surfaceView);
}
origin: novoda/no-player

  @Test
  public void givenPlayerSurfaceHolderContainsNoView_whenAttachingVideoPlayer_thenThrowsException() {
    thrown.expect(IllegalArgumentException.class);

    PlayerSurfaceHolder playerSurfaceHolder = new PlayerSurfaceHolder(null, null, null);

    playerSurfaceHolder.attach(videoPlayer);
  }
}
com.novoda.noplayerPlayerSurfaceHolderattach

Popular methods of PlayerSurfaceHolder

  • <init>
  • create
  • getSurfaceRequester
  • containsSurfaceView
  • containsTextureView

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Table (org.hibernate.mapping)
    A relational table
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now