com.google.android.exoplayer2.Format.equals()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(167)

本文整理了Java中com.google.android.exoplayer2.Format.equals()方法的一些代码示例,展示了Format.equals()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Format.equals()方法的具体详情如下:
包路径:com.google.android.exoplayer2.Format
类名称:Format
方法名:equals

Format.equals介绍

暂无

代码示例

代码示例来源:origin: google/ExoPlayer

private void maybeNotifyPrimaryTrackFormatChanged(int mediaChunkReadIndex) {
 BaseMediaChunk currentChunk = mediaChunks.get(mediaChunkReadIndex);
 Format trackFormat = currentChunk.trackFormat;
 if (!trackFormat.equals(primaryDownstreamTrackFormat)) {
  eventDispatcher.downstreamFormatChanged(primaryTrackType, trackFormat,
    currentChunk.trackSelectionReason, currentChunk.trackSelectionData,
    currentChunk.startTimeUs);
 }
 primaryDownstreamTrackFormat = trackFormat;
}

代码示例来源:origin: google/ExoPlayer

HlsMediaChunk currentChunk = mediaChunks.get(0);
Format trackFormat = currentChunk.trackFormat;
if (!trackFormat.equals(downstreamTrackFormat)) {
 eventDispatcher.downstreamFormatChanged(trackType, trackFormat,
   currentChunk.trackSelectionReason, currentChunk.trackSelectionData,

代码示例来源:origin: google/ExoPlayer

if (!testSampleFormat.equals(format)) {

代码示例来源:origin: google/ExoPlayer

Format.NO_VALUE, Format.NO_VALUE, channelCount, sampleRateHz,
  Collections.singletonList(initData), null, 0, language);
if (!format.equals(this.format)) {
 this.format = format;
 sampleDurationUs = (C.MICROS_PER_SECOND * 1024) / format.sampleRate;

相关文章