Pixel Fusion v1.0.2版本的 MD5 值为:7c04c460c2996569d4ad075cd671a946
以下内容为反编译后的 EventMessage.java 源代码,内容仅作参考
package io.bidmachine.media3.extractor.metadata.emsg;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import com.json.mediationsdk.logger.IronSourceError;
import io.bidmachine.media3.common.DCACcAdddc;
import io.bidmachine.media3.common.Format;
import io.bidmachine.media3.common.MediaMetadata;
import io.bidmachine.media3.common.Metadata;
import io.bidmachine.media3.common.util.UnstableApi;
import io.bidmachine.media3.common.util.Util;
import java.util.Arrays;
@UnstableApi
public final class EventMessage implements Metadata.Entry {
@VisibleForTesting
public static final String ID3_SCHEME_ID_AOM = "https://aomedia.org/emsg/ID3";
private static final String ID3_SCHEME_ID_APPLE = "https://developer.apple.com/streaming/emsg-id3";
@VisibleForTesting
public static final String SCTE35_SCHEME_ID = "urn:scte:scte35:2014:bin";
public final long durationMs;
private int hashCode;
public final long id;
public final byte[] messageData;
public final String schemeIdUri;
public final String value;
private static final Format ID3_FORMAT = new Format.Builder().setSampleMimeType("application/id3").build();
private static final Format SCTE35_FORMAT = new Format.Builder().setSampleMimeType("application/x-scte35").build();
public static final Parcelable.Creator<EventMessage> CREATOR = new BbdcDCacCa();
public class BbdcDCacCa implements Parcelable.Creator<EventMessage> {
@Override
public EventMessage createFromParcel(Parcel parcel) {
return new EventMessage(parcel);
}
@Override
public EventMessage[] newArray(int i) {
return new EventMessage[i];
}
}
public EventMessage(String str, String str2, long j, long j2, byte[] bArr) {
this.schemeIdUri = str;
this.value = str2;
this.durationMs = j;
this.id = j2;
this.messageData = bArr;
}
@Override
public int describeContents() {
return 0;
}
public boolean equals(@Nullable Object obj) {
if (this == obj) {
return true;
}
if (obj == null || EventMessage.class != obj.getClass()) {
return false;
}
EventMessage eventMessage = (EventMessage) obj;
if (this.durationMs == eventMessage.durationMs && this.id == eventMessage.id && Util.areEqual(this.schemeIdUri, eventMessage.schemeIdUri) && Util.areEqual(this.value, eventMessage.value) && Arrays.equals(this.messageData, eventMessage.messageData)) {
return true;
}
return false;
}
@Override
@Nullable
public byte[] getWrappedMetadataBytes() {
if (getWrappedMetadataFormat() != null) {
return this.messageData;
}
return null;
}
@Override
@Nullable
public Format getWrappedMetadataFormat() {
String str = this.schemeIdUri;
str.getClass();
char c = 65535;
switch (str.hashCode()) {
case -1468477611:
if (str.equals("urn:scte:scte35:2014:bin")) {
c = 0;
break;
}
break;
case -795945609:
if (str.equals("https://aomedia.org/emsg/ID3")) {
c = 1;
break;
}
break;
case 1303648457:
if (str.equals("https://developer.apple.com/streaming/emsg-id3")) {
c = 2;
break;
}
break;
}
switch (c) {
case 0:
return SCTE35_FORMAT;
case 1:
case 2:
return ID3_FORMAT;
default:
return null;
}
}
public int hashCode() {
int i;
if (this.hashCode == 0) {
String str = this.schemeIdUri;
int i2 = 0;
if (str != null) {
i = str.hashCode();
} else {
i = 0;
}
int i3 = (IronSourceError.ERROR_NON_EXISTENT_INSTANCE + i) * 31;
String str2 = this.value;
if (str2 != null) {
i2 = str2.hashCode();
}
long j = this.durationMs;
int i4 = (((i3 + i2) * 31) + ((int) (j ^ (j >>> 32)))) * 31;
long j2 = this.id;
this.hashCode = Arrays.hashCode(this.messageData) + ((i4 + ((int) (j2 ^ (j2 >>> 32)))) * 31);
}
return this.hashCode;
}
@Override
public void populateMediaMetadata(MediaMetadata.Builder builder) {
DCACcAdddc.babbDABcB(this, builder);
}
public String toString() {
return "EMSG: scheme=" + this.schemeIdUri + ", id=" + this.id + ", durationMs=" + this.durationMs + ", value=" + this.value;
}
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeString(this.schemeIdUri);
parcel.writeString(this.value);
parcel.writeLong(this.durationMs);
parcel.writeLong(this.id);
parcel.writeByteArray(this.messageData);
}
public EventMessage(Parcel parcel) {
this.schemeIdUri = (String) Util.castNonNull(parcel.readString());
this.value = (String) Util.castNonNull(parcel.readString());
this.durationMs = parcel.readLong();
this.id = parcel.readLong();
this.messageData = (byte[]) Util.castNonNull(parcel.createByteArray());
}
}