Page 1 of 1

VLCKit - streaming

Posted: 07 Nov 2010 11:23
by hirnschmalz
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)

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];
It would be fantastic if someone could give me a short hint how to get it up and running.

Re: VLCKit - streaming

Posted: 17 Nov 2010 22:09
by rogerdpack
you want to get it working on the command line then use "similar" parameters for libvlc (I think so, anyway...)