Open ShapesGraphicStudio opened 11 years ago
Here's what my main view files look like :
// ViewController.h
@interface ViewController : UIViewController
@property (nonatomic) BOOL fullScreenToggled;
@end
// ViewController.m
@interface ViewController ()
@property (nonatomic, strong) VideoPlayerKit *ViewController;
@end
@implementation ViewController
// Fullscreen / minimize without need for user's input
(void)playVideo {
NSURL *url = [NSURL URLWithString:@"http://mystream.m3u8"];
self.ViewController = [VideoPlayerKit videoPlayerWithContainingViewController:self optionalTopView:NO hideTopViewWithControls:YES];
[self.ViewController playVideoWithTitle:@"Title" URL:url videoID:nil shareURL:nil isStreaming:NO playInFullScreen:YES];
}
@end
Anyone any idea of what I'm missing here ? Or what I'm doing wrong ?
Hoping for answers, Best regards.
Hello,
First, this player looks great ! Exactly what I need. I managed to make a project work with the player, with the github files. On app main view I have blank view with the button to launch video, it works fine.
But I'm looking for some help / code / example to have the same view than the first snapshot : the inline / embedded player with video controls, and table view beneath.
Do you know where I could find some help, files or tips ? I made some tries, but can't get it done.
Hoping for answers, Best regards.