Я пытался воспроизвести видео с помощью vlckit для Mac OS X, используя приведенный ниже код, но я не могу увидеть видео, после компиляции у меня черный экран, но видео не воспроизводится.
здесь a.mp4 - мое видео внутри основного пакета, я проверил, что путь к видео правильный.дайте мне знать, в чем проблема, почему я не могу видеть видео на экране.
// Set up a videoView by hand. You can also do that in the nib file
videoView = [[VLCVideoView alloc] initWithFrame:NSMakeRect(0, 0, 400, 400)];
[self.view addSubview:videoView];
[videoView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
// Init the player object
player = [[VLCMediaPlayer alloc] initWithVideoView:videoView];
[player setMedia:[VLCMedia mediaWithPath:@"/Users/gurpalrajput/Desktop/demoVlc Player/demoVlc Player/a.mp4"]];
[player play];