aboutsummaryrefslogblamecommitdiff
path: root/app/src/main/java/ml/docilealligator/infinityforreddit/thing/StreamableVideo.java
blob: 64caa01396c80076ae97766766527662a771ac23 (plain) (tree)
1
                                                   



























                                                                                          
package ml.docilealligator.infinityforreddit.thing;

import androidx.annotation.Nullable;

public class StreamableVideo {
    public String title;
    @Nullable
    public Media mp4;
    @Nullable
    public Media mp4Mobile;

    public StreamableVideo(String title, @Nullable Media mp4, @Nullable Media mp4Mobile) {
        this.title = title;
        this.mp4 = mp4;
        this.mp4Mobile = mp4Mobile;
    }

    public static class Media {
        public String url;
        public int width;
        public int height;

        public Media(String url, int width, int height) {
            this.url = url;
            this.width = width;
            this.height = height;
        }
    }
}