Rabbit-R1/android (non root)/java/sources/com/google/android/exoplayer2/text/CueEncoder.java

22 lines
678 B
Java
Raw Permalink Normal View History

2024-05-21 21:08:36 +00:00
package com.google.android.exoplayer2.text;
import android.os.Bundle;
import android.os.Parcel;
import com.google.android.exoplayer2.util.BundleableUtil;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes2.dex */
public final class CueEncoder {
public byte[] encode(List<Cue> list) {
ArrayList<Bundle> bundleArrayList = BundleableUtil.toBundleArrayList(list);
Bundle bundle = new Bundle();
bundle.putParcelableArrayList("c", bundleArrayList);
Parcel obtain = Parcel.obtain();
obtain.writeBundle(bundle);
byte[] marshall = obtain.marshall();
obtain.recycle();
return marshall;
}
}