To access all videos in the library, we have a class called
VKVideos that allows you to query all your videos.
To access anything in the video store you must have a session in place by calling
You must ensure the connection state is
VKSessionState.connected. This can be checked through
For making queries against our API you can use
VKVideos.shared.get() method, it will return
VKVideosResponse with list of videos and total videos count in their completion block.
Here are some examples:.
Get all videos:
Get videos with tags:
Get videos with metadata:
Get some user videos:
Get second page of videos and limit by 20:
Get videos by ids:
Get only videos that passed the content filter:
Please make sure that your app token and project has content filtering enabled. Content filtering flags inappropriate content (e.g. gore or nudity).
Available since Version 1.0.8