Java Code Examples for com.google.android.exoplayer2.util.Util#readBoolean()

The following examples show how to use com.google.android.exoplayer2.util.Util#readBoolean() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DefaultTrackSelector.java    From TelePlus-Android with GNU General Public License v2.0 6 votes vote down vote up
Parameters(Parcel in) {
  this.selectionOverrides = readSelectionOverrides(in);
  this.rendererDisabledFlags = in.readSparseBooleanArray();
  this.preferredAudioLanguage = in.readString();
  this.preferredTextLanguage = in.readString();
  this.selectUndeterminedTextLanguage = Util.readBoolean(in);
  this.disabledTextTrackSelectionFlags = in.readInt();
  this.forceLowestBitrate = Util.readBoolean(in);
  this.allowMixedMimeAdaptiveness = Util.readBoolean(in);
  this.allowNonSeamlessAdaptiveness = Util.readBoolean(in);
  this.maxVideoWidth = in.readInt();
  this.maxVideoHeight = in.readInt();
  this.maxVideoBitrate = in.readInt();
  this.exceedVideoConstraintsIfNecessary = Util.readBoolean(in);
  this.exceedRendererCapabilitiesIfNecessary = Util.readBoolean(in);
  this.viewportWidth = in.readInt();
  this.viewportHeight = in.readInt();
  this.viewportOrientationMayChange = Util.readBoolean(in);
  this.tunnelingAudioSessionId = in.readInt();
}
 
Example 2
Source File: DefaultTrackSelector.java    From TelePlus-Android with GNU General Public License v2.0 6 votes vote down vote up
Parameters(Parcel in) {
  this.selectionOverrides = readSelectionOverrides(in);
  this.rendererDisabledFlags = in.readSparseBooleanArray();
  this.preferredAudioLanguage = in.readString();
  this.preferredTextLanguage = in.readString();
  this.selectUndeterminedTextLanguage = Util.readBoolean(in);
  this.disabledTextTrackSelectionFlags = in.readInt();
  this.forceLowestBitrate = Util.readBoolean(in);
  this.allowMixedMimeAdaptiveness = Util.readBoolean(in);
  this.allowNonSeamlessAdaptiveness = Util.readBoolean(in);
  this.maxVideoWidth = in.readInt();
  this.maxVideoHeight = in.readInt();
  this.maxVideoBitrate = in.readInt();
  this.exceedVideoConstraintsIfNecessary = Util.readBoolean(in);
  this.exceedRendererCapabilitiesIfNecessary = Util.readBoolean(in);
  this.viewportWidth = in.readInt();
  this.viewportHeight = in.readInt();
  this.viewportOrientationMayChange = Util.readBoolean(in);
  this.tunnelingAudioSessionId = in.readInt();
}
 
Example 3
Source File: ColorInfo.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
@SuppressWarnings("ResourceType")
/* package */ ColorInfo(Parcel in) {
  colorSpace = in.readInt();
  colorRange = in.readInt();
  colorTransfer = in.readInt();
  boolean hasHdrStaticInfo = Util.readBoolean(in);
  hdrStaticInfo = hasHdrStaticInfo ? in.createByteArray() : null;
}
 
Example 4
Source File: IcyHeaders.java    From Telegram with GNU General Public License v2.0 5 votes vote down vote up
IcyHeaders(Parcel in) {
  bitrate = in.readInt();
  genre = in.readString();
  name = in.readString();
  url = in.readString();
  isPublic = Util.readBoolean(in);
  metadataInterval = in.readInt();
}
 
Example 5
Source File: DefaultTrackSelector.java    From Telegram with GNU General Public License v2.0 5 votes vote down vote up
Parameters(Parcel in) {
  super(in);
  // Video
  this.maxVideoWidth = in.readInt();
  this.maxVideoHeight = in.readInt();
  this.maxVideoFrameRate = in.readInt();
  this.maxVideoBitrate = in.readInt();
  this.exceedVideoConstraintsIfNecessary = Util.readBoolean(in);
  this.allowVideoMixedMimeTypeAdaptiveness = Util.readBoolean(in);
  this.allowVideoNonSeamlessAdaptiveness = Util.readBoolean(in);
  this.viewportWidth = in.readInt();
  this.viewportHeight = in.readInt();
  this.viewportOrientationMayChange = Util.readBoolean(in);
  // Audio
  this.maxAudioChannelCount = in.readInt();
  this.maxAudioBitrate = in.readInt();
  this.exceedAudioConstraintsIfNecessary = Util.readBoolean(in);
  this.allowAudioMixedMimeTypeAdaptiveness = Util.readBoolean(in);
  this.allowAudioMixedSampleRateAdaptiveness = Util.readBoolean(in);
  this.allowAudioMixedChannelCountAdaptiveness = Util.readBoolean(in);
  // General
  this.forceLowestBitrate = Util.readBoolean(in);
  this.forceHighestSupportedBitrate = Util.readBoolean(in);
  this.exceedRendererCapabilitiesIfNecessary = Util.readBoolean(in);
  this.tunnelingAudioSessionId = in.readInt();
  // Overrides
  this.selectionOverrides = readSelectionOverrides(in);
  this.rendererDisabledFlags = Util.castNonNull(in.readSparseBooleanArray());
  // Deprecated fields.
  this.allowMixedMimeAdaptiveness = allowVideoMixedMimeTypeAdaptiveness;
  this.allowNonSeamlessAdaptiveness = allowVideoNonSeamlessAdaptiveness;
}
 
Example 6
Source File: TrackSelectionParameters.java    From Telegram with GNU General Public License v2.0 5 votes vote down vote up
TrackSelectionParameters(Parcel in) {
  // Audio
  this.preferredAudioLanguage = in.readString();
  // Text
  this.preferredTextLanguage = in.readString();
  this.preferredTextRoleFlags = in.readInt();
  this.selectUndeterminedTextLanguage = Util.readBoolean(in);
  this.disabledTextTrackSelectionFlags = in.readInt();
}
 
Example 7
Source File: ColorInfo.java    From Telegram-FOSS with GNU General Public License v2.0 5 votes vote down vote up
@SuppressWarnings("ResourceType")
/* package */ ColorInfo(Parcel in) {
  colorSpace = in.readInt();
  colorRange = in.readInt();
  colorTransfer = in.readInt();
  boolean hasHdrStaticInfo = Util.readBoolean(in);
  hdrStaticInfo = hasHdrStaticInfo ? in.createByteArray() : null;
}
 
Example 8
Source File: IcyHeaders.java    From Telegram-FOSS with GNU General Public License v2.0 5 votes vote down vote up
IcyHeaders(Parcel in) {
  bitrate = in.readInt();
  genre = in.readString();
  name = in.readString();
  url = in.readString();
  isPublic = Util.readBoolean(in);
  metadataInterval = in.readInt();
}
 
Example 9
Source File: DefaultTrackSelector.java    From Telegram-FOSS with GNU General Public License v2.0 5 votes vote down vote up
Parameters(Parcel in) {
  super(in);
  // Video
  this.maxVideoWidth = in.readInt();
  this.maxVideoHeight = in.readInt();
  this.maxVideoFrameRate = in.readInt();
  this.maxVideoBitrate = in.readInt();
  this.exceedVideoConstraintsIfNecessary = Util.readBoolean(in);
  this.allowVideoMixedMimeTypeAdaptiveness = Util.readBoolean(in);
  this.allowVideoNonSeamlessAdaptiveness = Util.readBoolean(in);
  this.viewportWidth = in.readInt();
  this.viewportHeight = in.readInt();
  this.viewportOrientationMayChange = Util.readBoolean(in);
  // Audio
  this.maxAudioChannelCount = in.readInt();
  this.maxAudioBitrate = in.readInt();
  this.exceedAudioConstraintsIfNecessary = Util.readBoolean(in);
  this.allowAudioMixedMimeTypeAdaptiveness = Util.readBoolean(in);
  this.allowAudioMixedSampleRateAdaptiveness = Util.readBoolean(in);
  this.allowAudioMixedChannelCountAdaptiveness = Util.readBoolean(in);
  // General
  this.forceLowestBitrate = Util.readBoolean(in);
  this.forceHighestSupportedBitrate = Util.readBoolean(in);
  this.exceedRendererCapabilitiesIfNecessary = Util.readBoolean(in);
  this.tunnelingAudioSessionId = in.readInt();
  // Overrides
  this.selectionOverrides = readSelectionOverrides(in);
  this.rendererDisabledFlags = Util.castNonNull(in.readSparseBooleanArray());
  // Deprecated fields.
  this.allowMixedMimeAdaptiveness = allowVideoMixedMimeTypeAdaptiveness;
  this.allowNonSeamlessAdaptiveness = allowVideoNonSeamlessAdaptiveness;
}
 
Example 10
Source File: TrackSelectionParameters.java    From Telegram-FOSS with GNU General Public License v2.0 5 votes vote down vote up
TrackSelectionParameters(Parcel in) {
  // Audio
  this.preferredAudioLanguage = in.readString();
  // Text
  this.preferredTextLanguage = in.readString();
  this.preferredTextRoleFlags = in.readInt();
  this.selectUndeterminedTextLanguage = Util.readBoolean(in);
  this.disabledTextTrackSelectionFlags = in.readInt();
}
 
Example 11
Source File: Format.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
@SuppressWarnings("ResourceType")
/* package */ Format(Parcel in) {
  id = in.readString();
  label = in.readString();
  containerMimeType = in.readString();
  sampleMimeType = in.readString();
  codecs = in.readString();
  bitrate = in.readInt();
  maxInputSize = in.readInt();
  width = in.readInt();
  height = in.readInt();
  frameRate = in.readFloat();
  rotationDegrees = in.readInt();
  pixelWidthHeightRatio = in.readFloat();
  boolean hasProjectionData = Util.readBoolean(in);
  projectionData = hasProjectionData ? in.createByteArray() : null;
  stereoMode = in.readInt();
  colorInfo = in.readParcelable(ColorInfo.class.getClassLoader());
  channelCount = in.readInt();
  sampleRate = in.readInt();
  pcmEncoding = in.readInt();
  encoderDelay = in.readInt();
  encoderPadding = in.readInt();
  selectionFlags = in.readInt();
  language = in.readString();
  accessibilityChannel = in.readInt();
  subsampleOffsetUs = in.readLong();
  int initializationDataSize = in.readInt();
  initializationData = new ArrayList<>(initializationDataSize);
  for (int i = 0; i < initializationDataSize; i++) {
    initializationData.add(in.createByteArray());
  }
  drmInitData = in.readParcelable(DrmInitData.class.getClassLoader());
  metadata = in.readParcelable(Metadata.class.getClassLoader());
}
 
Example 12
Source File: ColorInfo.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
@SuppressWarnings("ResourceType")
/* package */ ColorInfo(Parcel in) {
  colorSpace = in.readInt();
  colorRange = in.readInt();
  colorTransfer = in.readInt();
  boolean hasHdrStaticInfo = Util.readBoolean(in);
  hdrStaticInfo = hasHdrStaticInfo ? in.createByteArray() : null;
}
 
Example 13
Source File: ColorInfo.java    From Telegram with GNU General Public License v2.0 5 votes vote down vote up
@SuppressWarnings("ResourceType")
/* package */ ColorInfo(Parcel in) {
  colorSpace = in.readInt();
  colorRange = in.readInt();
  colorTransfer = in.readInt();
  boolean hasHdrStaticInfo = Util.readBoolean(in);
  hdrStaticInfo = hasHdrStaticInfo ? in.createByteArray() : null;
}
 
Example 14
Source File: ColorInfo.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("ResourceType")
/* package */ ColorInfo(Parcel in) {
  colorSpace = in.readInt();
  colorRange = in.readInt();
  colorTransfer = in.readInt();
  boolean hasHdrStaticInfo = Util.readBoolean(in);
  hdrStaticInfo = hasHdrStaticInfo ? in.createByteArray() : null;
}
 
Example 15
Source File: IcyHeaders.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
IcyHeaders(Parcel in) {
  bitrate = in.readInt();
  genre = in.readString();
  name = in.readString();
  url = in.readString();
  isPublic = Util.readBoolean(in);
  metadataInterval = in.readInt();
}
 
Example 16
Source File: DefaultTrackSelector.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
Parameters(Parcel in) {
  super(in);
  // Video
  this.maxVideoWidth = in.readInt();
  this.maxVideoHeight = in.readInt();
  this.maxVideoFrameRate = in.readInt();
  this.maxVideoBitrate = in.readInt();
  this.exceedVideoConstraintsIfNecessary = Util.readBoolean(in);
  this.allowVideoMixedMimeTypeAdaptiveness = Util.readBoolean(in);
  this.allowVideoNonSeamlessAdaptiveness = Util.readBoolean(in);
  this.viewportWidth = in.readInt();
  this.viewportHeight = in.readInt();
  this.viewportOrientationMayChange = Util.readBoolean(in);
  // Audio
  this.maxAudioChannelCount = in.readInt();
  this.maxAudioBitrate = in.readInt();
  this.exceedAudioConstraintsIfNecessary = Util.readBoolean(in);
  this.allowAudioMixedMimeTypeAdaptiveness = Util.readBoolean(in);
  this.allowAudioMixedSampleRateAdaptiveness = Util.readBoolean(in);
  this.allowAudioMixedChannelCountAdaptiveness = Util.readBoolean(in);
  // General
  this.forceLowestBitrate = Util.readBoolean(in);
  this.forceHighestSupportedBitrate = Util.readBoolean(in);
  this.exceedRendererCapabilitiesIfNecessary = Util.readBoolean(in);
  this.tunnelingAudioSessionId = in.readInt();
  // Overrides
  this.selectionOverrides = readSelectionOverrides(in);
  this.rendererDisabledFlags = Util.castNonNull(in.readSparseBooleanArray());
  // Deprecated fields.
  this.allowMixedMimeAdaptiveness = allowVideoMixedMimeTypeAdaptiveness;
  this.allowNonSeamlessAdaptiveness = allowVideoNonSeamlessAdaptiveness;
}
 
Example 17
Source File: TrackSelectionParameters.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
TrackSelectionParameters(Parcel in) {
  this.preferredAudioLanguage = in.readString();
  this.preferredTextLanguage = in.readString();
  this.preferredTextRoleFlags = in.readInt();
  this.selectUndeterminedTextLanguage = Util.readBoolean(in);
  this.disabledTextTrackSelectionFlags = in.readInt();
}
 
Example 18
Source File: Format.java    From MediaSDK with Apache License 2.0 4 votes vote down vote up
@SuppressWarnings("ResourceType")
/* package */ Format(Parcel in) {
  id = in.readString();
  label = in.readString();
  selectionFlags = in.readInt();
  roleFlags = in.readInt();
  bitrate = in.readInt();
  codecs = in.readString();
  metadata = in.readParcelable(Metadata.class.getClassLoader());
  // Container specific.
  containerMimeType = in.readString();
  // Elementary stream specific.
  sampleMimeType = in.readString();
  maxInputSize = in.readInt();
  int initializationDataSize = in.readInt();
  initializationData = new ArrayList<>(initializationDataSize);
  for (int i = 0; i < initializationDataSize; i++) {
    initializationData.add(in.createByteArray());
  }
  drmInitData = in.readParcelable(DrmInitData.class.getClassLoader());
  subsampleOffsetUs = in.readLong();
  // Video specific.
  width = in.readInt();
  height = in.readInt();
  frameRate = in.readFloat();
  rotationDegrees = in.readInt();
  pixelWidthHeightRatio = in.readFloat();
  boolean hasProjectionData = Util.readBoolean(in);
  projectionData = hasProjectionData ? in.createByteArray() : null;
  stereoMode = in.readInt();
  colorInfo = in.readParcelable(ColorInfo.class.getClassLoader());
  // Audio specific.
  channelCount = in.readInt();
  sampleRate = in.readInt();
  pcmEncoding = in.readInt();
  encoderDelay = in.readInt();
  encoderPadding = in.readInt();
  // Audio and text specific.
  language = in.readString();
  accessibilityChannel = in.readInt();
  // Provided by source.
  exoMediaCryptoType = null;
}
 
Example 19
Source File: Format.java    From Telegram-FOSS with GNU General Public License v2.0 4 votes vote down vote up
@SuppressWarnings("ResourceType")
/* package */ Format(Parcel in) {
  id = in.readString();
  label = in.readString();
  selectionFlags = in.readInt();
  roleFlags = in.readInt();
  bitrate = in.readInt();
  codecs = in.readString();
  metadata = in.readParcelable(Metadata.class.getClassLoader());
  // Container specific.
  containerMimeType = in.readString();
  // Elementary stream specific.
  sampleMimeType = in.readString();
  maxInputSize = in.readInt();
  int initializationDataSize = in.readInt();
  initializationData = new ArrayList<>(initializationDataSize);
  for (int i = 0; i < initializationDataSize; i++) {
    initializationData.add(in.createByteArray());
  }
  drmInitData = in.readParcelable(DrmInitData.class.getClassLoader());
  subsampleOffsetUs = in.readLong();
  // Video specific.
  width = in.readInt();
  height = in.readInt();
  frameRate = in.readFloat();
  rotationDegrees = in.readInt();
  pixelWidthHeightRatio = in.readFloat();
  boolean hasProjectionData = Util.readBoolean(in);
  projectionData = hasProjectionData ? in.createByteArray() : null;
  stereoMode = in.readInt();
  colorInfo = in.readParcelable(ColorInfo.class.getClassLoader());
  // Audio specific.
  channelCount = in.readInt();
  sampleRate = in.readInt();
  pcmEncoding = in.readInt();
  encoderDelay = in.readInt();
  encoderPadding = in.readInt();
  // Audio and text specific.
  language = in.readString();
  accessibilityChannel = in.readInt();
}
 
Example 20
Source File: Format.java    From Telegram with GNU General Public License v2.0 4 votes vote down vote up
@SuppressWarnings("ResourceType")
/* package */ Format(Parcel in) {
  id = in.readString();
  label = in.readString();
  selectionFlags = in.readInt();
  roleFlags = in.readInt();
  bitrate = in.readInt();
  codecs = in.readString();
  metadata = in.readParcelable(Metadata.class.getClassLoader());
  // Container specific.
  containerMimeType = in.readString();
  // Elementary stream specific.
  sampleMimeType = in.readString();
  maxInputSize = in.readInt();
  int initializationDataSize = in.readInt();
  initializationData = new ArrayList<>(initializationDataSize);
  for (int i = 0; i < initializationDataSize; i++) {
    initializationData.add(in.createByteArray());
  }
  drmInitData = in.readParcelable(DrmInitData.class.getClassLoader());
  subsampleOffsetUs = in.readLong();
  // Video specific.
  width = in.readInt();
  height = in.readInt();
  frameRate = in.readFloat();
  rotationDegrees = in.readInt();
  pixelWidthHeightRatio = in.readFloat();
  boolean hasProjectionData = Util.readBoolean(in);
  projectionData = hasProjectionData ? in.createByteArray() : null;
  stereoMode = in.readInt();
  colorInfo = in.readParcelable(ColorInfo.class.getClassLoader());
  // Audio specific.
  channelCount = in.readInt();
  sampleRate = in.readInt();
  pcmEncoding = in.readInt();
  encoderDelay = in.readInt();
  encoderPadding = in.readInt();
  // Audio and text specific.
  language = in.readString();
  accessibilityChannel = in.readInt();
}