提交 072942b6 编写于 作者: J johnwenjunwu

refactor(las): replace "manifest.las" with "ijklas:"

上级 b9dd6f64
......@@ -256,7 +256,7 @@ public class IjkVideoView extends FrameLayout implements MediaController.MediaPl
public void setVideoPath(String path) {
if (path.contains("adaptationSet")){
mManifestString = path;
setVideoURI(Uri.parse("manifest.las"));
setVideoURI(Uri.parse("ijklas:"));
} else {
setVideoURI(Uri.parse(path));
}
......
......@@ -1758,7 +1758,7 @@ static int las_close(AVFormatContext* s) {
}
static int las_probe(AVProbeData* p) {
if (p->filename && strstr(p->filename, "manifest.las"))
if (p->filename && av_strstart(p->filename, "ijklas:", NULL))
return AVPROBE_SCORE_MAX;
return 0;
......
......@@ -39,7 +39,7 @@
- (instancetype)initWithManifest: (NSString*)manifest_string {
self = [self initWithNibName:@"IJKMoviePlayerViewController" bundle:nil];
if (self) {
self.url = [NSURL URLWithString:@"manifest.las"];
self.url = [NSURL URLWithString:@"ijklas:"];
self.manifest = manifest_string;
}
return self;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册