mirror of https://github.com/FongMi/TV.git
parent
740a25b5f9
commit
dbc00bec0c
@ -0,0 +1,24 @@ |
||||
package com.fongmi.android.tv.player.extractor; |
||||
|
||||
import com.fongmi.android.tv.player.Source; |
||||
|
||||
public class Sniffer implements Source.Extractor { |
||||
|
||||
@Override |
||||
public boolean match(String scheme, String host) { |
||||
return scheme.equals("video"); |
||||
} |
||||
|
||||
@Override |
||||
public String fetch(String url) throws Exception { |
||||
return url.substring(8); |
||||
} |
||||
|
||||
@Override |
||||
public void stop() { |
||||
} |
||||
|
||||
@Override |
||||
public void exit() { |
||||
} |
||||
} |
||||
Loading…
Reference in new issue