I'm looking to see if I can make the app support static image URL's that change over time, for example this is a traffic cam url that the image changes regularly:
http://www.kandrive.org/cameras/cam307015920.jpg
When I load it in desktop VLC it displays the image and refreshes it every 10 seconds or so, when I try to load it inside VLCKit I get nothing.
I would like to replicate the VLC Desktop behaviour in my app, this is the code I'm using to load up the RTSP URL's which works fine, but doesn't work for jpg streams.
Code: Select all
NSString *url = @"http://www.kandrive.org/cameras/cam307015920.jpg";
VLCMedia *media = [VLCMedia mediaWithURL:[NSURL URLWithString:url]];
cameraPlayer = [[VLCMediaPlayer alloc] init];
cameraPlayer.drawable = cameraButton;
cameraPlayer.media = media;
cameraPlayer.delegate = self;
[cameraPlayer play];
[self.view addSubview:cameraButton];
Many Thanks in advance!
Plasma