package com.jarvanmo.exoplayerview.ui;

/**
 * Created by mo on 16-11-30.
 * this package is com.jarvanmo.exoplayerview.ui
 */

public class SimpleMediaSource {

    private String displayName;

    private String url = "";

    public SimpleMediaSource(String url){
        this.url = url;
    }

    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public String getUrl() {
        return url;
    }

}

@@ -33,16 +33,73 @@
 ew.ui;%0A%0A
+import android.os.Parcel;%0Aimport android.os.Parcelable;%0A%0A
 /**%0A * C
@@ -209,16 +209,38 @@
 aSource 
+implements Parcelable 
 %7B%0A%0A    p
@@ -598,10 +598,777 @@
 %0A    %7D%0A%0A
+    @Override%0A    public int describeContents() %7B%0A        return 0;%0A    %7D%0A%0A    @Override%0A    public void writeToParcel(Parcel dest, int flags) %7B%0A        dest.writeString(this.displayName);%0A        dest.writeString(this.url);%0A    %7D%0A%0A    protected SimpleMediaSource(Parcel in) %7B%0A        this.displayName = in.readString();%0A        this.url = in.readString();%0A    %7D%0A%0A    public static final Parcelable.Creator%3CSimpleMediaSource%3E CREATOR = new Parcelable.Creator%3CSimpleMediaSource%3E() %7B%0A        @Override%0A        public SimpleMediaSource createFromParcel(Parcel source) %7B%0A            return new SimpleMediaSource(source);%0A        %7D%0A%0A        @Override%0A        public SimpleMediaSource%5B%5D newArray(int size) %7B%0A            return new SimpleMediaSource%5Bsize%5D;%0A        %7D%0A    %7D;%0A
 %7D%0A

make SimpleMediaSource Pracelable