added external player redirection
This commit is contained in:
@@ -29,10 +29,12 @@ public class ExternalLinkHandler{
|
||||
);
|
||||
private static final Map<String, String> qualities = new HashMap<>();
|
||||
|
||||
public static boolean parseVideoFile(VideoFile file, Context context){
|
||||
public static boolean parseVideoFile(VideoFile file){
|
||||
var context = getContext();
|
||||
if (checkYoutubeLink(file)) {
|
||||
try {
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
intent.setData(Uri.parse(file.G));
|
||||
context.startActivity(intent);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user