导航菜单

页面标题

页面副标题

Zepto v25.1.4 - EventMessage.java 源代码

正在查看: Zepto v25.1.4 应用的 EventMessage.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.appsamurai.storyly.exoplayer2.extractor.metadata.emsg;

import android.os.Parcel;
import android.os.Parcelable;
import com.appsamurai.storyly.exoplayer2.common.Format;
import com.appsamurai.storyly.exoplayer2.common.MediaMetadata;
import com.appsamurai.storyly.exoplayer2.common.metadata.Metadata;
import com.appsamurai.storyly.exoplayer2.common.util.Util;
import java.util.Arrays;

public final class EventMessage implements Metadata.Entry {
    public static final Parcelable.Creator<EventMessage> CREATOR;
    public static final Format g;
    public static final Format h;

    public final String f9498a;

    public final String f9499b;

    public final long f9500c;
    public final long d;
    public final byte[] e;
    public int f;

    public class AnonymousClass1 implements Parcelable.Creator<EventMessage> {
        @Override
        public final EventMessage createFromParcel(Parcel parcel) {
            return new EventMessage(parcel);
        }

        @Override
        public final EventMessage[] newArray(int i) {
            return new EventMessage[i];
        }
    }

    static {
        Format.Builder builder = new Format.Builder();
        builder.k = "application/id3";
        g = builder.a();
        Format.Builder builder2 = new Format.Builder();
        builder2.k = "application/x-scte35";
        h = builder2.a();
        CREATOR = new AnonymousClass1();
    }

    public EventMessage(String str, String str2, long j, long j2, byte[] bArr) {
        this.f9498a = str;
        this.f9499b = str2;
        this.f9500c = j;
        this.d = j2;
        this.e = bArr;
    }

    @Override
    public final byte[] J1() {
        if (z() != null) {
            return this.e;
        }
        return null;
    }

    @Override
    public final void Mb(MediaMetadata.Builder builder) {
    }

    @Override
    public final int describeContents() {
        return 0;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || EventMessage.class != obj.getClass()) {
            return false;
        }
        EventMessage eventMessage = (EventMessage) obj;
        return this.f9500c == eventMessage.f9500c && this.d == eventMessage.d && Util.a(this.f9498a, eventMessage.f9498a) && Util.a(this.f9499b, eventMessage.f9499b) && Arrays.equals(this.e, eventMessage.e);
    }

    public final int hashCode() {
        if (this.f == 0) {
            String str = this.f9498a;
            int hashCode = (527 + (str != null ? str.hashCode() : 0)) * 31;
            String str2 = this.f9499b;
            int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
            long j = this.f9500c;
            int i = (hashCode2 + ((int) (j ^ (j >>> 32)))) * 31;
            long j2 = this.d;
            this.f = Arrays.hashCode(this.e) + ((i + ((int) (j2 ^ (j2 >>> 32)))) * 31);
        }
        return this.f;
    }

    public final String toString() {
        return "EMSG: scheme=" + this.f9498a + ", id=" + this.d + ", durationMs=" + this.f9500c + ", value=" + this.f9499b;
    }

    @Override
    public final void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.f9498a);
        parcel.writeString(this.f9499b);
        parcel.writeLong(this.f9500c);
        parcel.writeLong(this.d);
        parcel.writeByteArray(this.e);
    }

    @Override
    public final Format z() {
        String str = this.f9498a;
        str.getClass();
        switch (str) {
            case "urn:scte:scte35:2014:bin":
                return h;
            case "https://aomedia.org/emsg/ID3":
            case "https://developer.apple.com/streaming/emsg-id3":
                return g;
            default:
                return null;
        }
    }

    public EventMessage(Parcel parcel) {
        String readString = parcel.readString();
        int i = Util.f8310a;
        this.f9498a = readString;
        this.f9499b = parcel.readString();
        this.f9500c = parcel.readLong();
        this.d = parcel.readLong();
        this.e = parcel.createByteArray();
    }
}