mirror of https://github.com/FongMi/TV.git
parent
a2c8779872
commit
4ee089eae1
@ -0,0 +1,25 @@ |
||||
package com.fongmi.android.tv.player.extractor; |
||||
|
||||
import com.fongmi.android.tv.player.Source; |
||||
import com.fongmi.android.tv.utils.UrlUtil; |
||||
|
||||
public class Proxy implements Source.Extractor { |
||||
|
||||
@Override |
||||
public boolean match(String scheme, String host) { |
||||
return scheme.equals("proxy"); |
||||
} |
||||
|
||||
@Override |
||||
public String fetch(String url) throws Exception { |
||||
return UrlUtil.convert(url); |
||||
} |
||||
|
||||
@Override |
||||
public void stop() { |
||||
} |
||||
|
||||
@Override |
||||
public void exit() { |
||||
} |
||||
} |
||||
Loading…
Reference in new issue