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