VideoKitCore uses WebSockets to inform you about new videos that are being uploaded (from other users) or being processed by our backend.
The realtime connection is established automatically after starting your Session.
In Version 1.0.3, realtime notifications are internally observable using NotificationCenter.
NotificationCenter is posting a .VKVideoCreated event with the following data structure:
Whereas video is the newly created video object (VKVideo).
Listen to the event:
Handle the notification:
After the video has been uploaded, at 0:18 you can see the realtime notification coming in and the video is getting added to the local device (that recorded it) as well as the two Simulator devices.
In case a video gets updated, this usually means we finished processing and encoding it, you will receive a .VKVideoUpdated notification you can listen to. The event has the following data structure:
videoID is the id of updated video and
changes is dictionary with the changes of the video.
In case a video gets deleted from our backend you will receive a .VKVideoDeleted notification.