#import @interface ViewController () @property (strong, nonatomic) MPMoviePlayerController *streamPlayer; @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; NSURL *streamURL = [NSURL URLWithString:@"https://list.iptvcat.com/my_list/s/08b8eebede43066d49d8e98940b026a2.m3u8"]; _streamPlayer = [[MPMoviePlayerController alloc] initWithContentURL:streamURL]; // depending on your implementation your view may not have it's bounds set here // in that case consider calling the following 4 msgs later [self.streamPlayer.view setFrame: self.view.bounds]; self.streamPlayer.controlStyle = MPMovieControlStyleEmbedded; [self.view addSubview: self.streamPlayer.view]; [self.streamPlayer play]; } - (void)dealloc { // if non-ARC // [_streamPlayer release]; // [super dealloc]; } @end