From 47183910560fc1df2c1037159651f864bba19e69 Mon Sep 17 00:00:00 2001 From: Zhang Chen Date: Fri, 11 Nov 2016 14:01:47 +0800 Subject: [PATCH] Add support for urls with rtmp scheme --- ios/IJKMediaDemo/IJKMediaDemo/IJKDemoInputURLViewController.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ios/IJKMediaDemo/IJKMediaDemo/IJKDemoInputURLViewController.m b/ios/IJKMediaDemo/IJKMediaDemo/IJKDemoInputURLViewController.m index e0e3b6540a..79f0563491 100644 --- a/ios/IJKMediaDemo/IJKMediaDemo/IJKDemoInputURLViewController.m +++ b/ios/IJKMediaDemo/IJKMediaDemo/IJKDemoInputURLViewController.m @@ -43,7 +43,9 @@ - (void)onClickPlayButton { NSURL *url = [NSURL URLWithString:self.textView.text]; NSString *scheme = [[url scheme] lowercaseString]; - if ([scheme isEqualToString:@"http"] || [scheme isEqualToString:@"https"]) { + if ([scheme isEqualToString:@"http"] + || [scheme isEqualToString:@"https"] + || [scheme isEqualToString:@"rtmp"]) { [IJKVideoViewController presentFromViewController:self withTitle:[NSString stringWithFormat:@"URL: %@", url] URL:url completion:^{ // [self.navigationController popViewControllerAnimated:NO]; }];