VLCKit not displaying URL's with pictures in .jpg format
Posted: 14 Aug 2020 13:45
I'm using VLCKit in an iOS and tvOS project via Cocoapods to display RTSP Streams from various places, works great!
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.
Am I missing something obvious here, do I need to set some specific options when I init the player or is the feature in Desktop VLC not using the standard VLCKit player?
Many Thanks in advance!
Plasma
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