getStreamCount

Gets the number of media streams in the media resource.

int getStreamCount();
Note: Before calling this method, call the open method and wait for the onPlayerStateChanged callback to report the OPEN_COMPLETED state.

Return Values

  • If the method call succeeds, returns the number of media streams in the media resource.
  • < 0: If the method call fails. See MediaPlayerReason.