Skip to content

Commit

Permalink
demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
libobjc committed Aug 14, 2019
1 parent 8f63a80 commit 6b5cf50
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions demo/demo-ios/demo-ios/SGPlayViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ - (void)viewDidLoad
[super viewDidLoad];

self.player.videoRenderer.view = self.view;
self.player.readyHandler = ^(SGPlayer *player) {
[player play];
};
[self.player replaceWithAsset:self.asset];
[self.player play];
}

#pragma mark - SGPlayer Notifications
Expand Down

0 comments on commit 6b5cf50

Please sign in to comment.