Global Notifications
VideoKitCore offers a variety of global notifications sent through NSNotification that give you the flexibility to react on certain events.
#
.VKSessionStateChangedThis notification is fired after the session state changed. This could be the case after an authentication attempt or logout.
Register an observer for session state changes:
React on changed states:
#
.VKVideoUploadsUpdatedTriggered after video uploading has made some progress (upload started, progress, or finished). Userinfo is empty.
You can access all uploads through VKUploads.shared.uploads
.
Use this notification if your app can have multiple uploads at the same time and you want to handle their progress simultaneously.
#
.VKVideoUploadProgressRetrieve uploading progress for each video upload individually:
#
Notification.userInfo#
.VKVideoUploadCompleteUpload is complete:
#
Notification.userInfo#
.VKVideoUploadFailed#
Notification.userInfo#
.VKVideoUploadCanceled#
Notification.userInfo#
.VKVideoIsUploaded#
Notification.userInfo#
.VKVideoUploadStarted#
Notification.userInfo#
.VKVideoRecordingFailed#
.VKPlaylistUpdatedCalled if any of our Playlists (VKPlaylist
) are updated with new videos.
#
Notification.userInfo#
.VKVideoPlaybackFailedCalled if VKPlayerViewController
has trouble playing the video.
#
Notification.userInfo#
.VKMetadataValidationErrorTriggered if you change the metadata for VKVideo and validation failed.
#
.VKVideoClipsWereMergedTriggered after the recorder merged your video clips.
Only triggered if auto merging is active, not if you manually trigger mergeClips()
#
Notification.userInfo#
.VKStreamCreatedTriggered after the stream was created
#
Notification.userInfo#
.VKStreamDeletedTriggered after the stream was removed