VLCKit - streaming
Posted: 07 Nov 2010 11:23
Hi,
I have some problems with getting a stream displayed.
I want to stream a http-stream but do not have an clou how to start.
I tried something like (wich does not work)
It would be fantastic if someone could give me a short hint how to get it up and running.
I have some problems with getting a stream displayed.
I want to stream a http-stream but do not have an clou how to start.
I tried something like (wich does not work)
Code: Select all
VLCVideoView *videoView;
VLCMediaPlayer *player;
videoView = [[VLCVideoView alloc] initWithFrame:[[window contentView] bounds]];
[[window contentView] addSubview:videoView];
[videoView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
// Init the player object
player = [[VLCMediaPlayer alloc] initWithVideoView:videoView];
NSString *streamingUrl = @"http://hypothalamus:8001/1:0:1:7080:443:1:C00000:0:0:0:";
[player setMedia:[VLCMedia mediaWithURL:[NSURL URLWithString:streamingUrl]]];
[player play];