Skip to content

Commit

Permalink
Add support for urls with rtmp scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchn committed Nov 11, 2016
1 parent a9603c9 commit 4718391
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}];
Expand Down

0 comments on commit 4718391

Please sign in to comment.