Java 类com.google.android.exoplayer2.metadata.scte35.SpliceInfoDecoder 实例源码

项目:Exoplayer2Radio    文件:MetadataDecoderFactory.java   
@Override
public MetadataDecoder createDecoder(Format format) {
  switch (format.sampleMimeType) {
    case MimeTypes.APPLICATION_ID3:
      return new Id3Decoder();
    case MimeTypes.APPLICATION_EMSG:
      return new EventMessageDecoder();
    case MimeTypes.APPLICATION_SCTE35:
      return new SpliceInfoDecoder();
    default:
      throw new IllegalArgumentException("Attempted to create decoder for unsupported format");
  }
}
项目:transistor    文件:MetadataDecoderFactory.java   
@Override
public MetadataDecoder createDecoder(Format format) {
  switch (format.sampleMimeType) {
    case MimeTypes.APPLICATION_ID3:
      return new Id3Decoder();
    case MimeTypes.APPLICATION_EMSG:
      return new EventMessageDecoder();
    case MimeTypes.APPLICATION_SCTE35:
      return new SpliceInfoDecoder();
    default:
      throw new IllegalArgumentException("Attempted to create decoder for unsupported format");
  }
}