-
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
267 additions
and
143 deletions.
There are no files selected for viewing
44 changes: 0 additions & 44 deletions
44
src/main/java/com/github/kiulian/downloader/Constants.java
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
src/main/java/com/github/kiulian/downloader/YoutubeDownloadCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.github.kiulian.downloader; | ||
|
||
import java.io.File; | ||
|
||
public interface YoutubeDownloadCallback { | ||
|
||
void onDownloading(int progress); | ||
|
||
void onFinished(File file); | ||
|
||
void onError(Throwable throwable); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/com/github/kiulian/downloader/model/Extension.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.github.kiulian.downloader.model; | ||
|
||
public class Extension { | ||
|
||
public static final Extension MP4 = new Extension("mp4"); | ||
public static final Extension WEBM = new Extension("webm"); | ||
public static final Extension THREEGP = new Extension("3gp"); | ||
public static final Extension FLV = new Extension("flv"); | ||
public static final Extension HLS = new Extension("hls"); | ||
public static final Extension M4A = new Extension("m4a"); | ||
public static final Extension UNKNOWN = new Extension("unknown"); | ||
|
||
private final String value; | ||
|
||
private Extension(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String value() { | ||
return value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.