getStreamCount

Gets the number of media streams in the media resource.

virtual int getStreamCount(int64_t& count) = 0;
Note: Before calling this method, call the open method and wait for the onPlayerSourceStateChanged callback to report the PLAYER_STATE_OPEN_COMPLETED state.

Parameters

count
Output parameter, the number of media streams in the media resource. See int64_t

Return Values