Documentation

Services

Account
Expand all / Collapse all

This service allows you control account session.

Properties

appIdString
Current application identifier
authTokenString
Authorization session token
secretTokenString
Secret application token (should be used only for testing purposes)
accountStateAccountState
Current state of account session

Methods

startSession()startSession(parameters, [callback])
Starts VKit session using passed parameters(appId and one of tokens are required). This method can be called multiple time during runtime if you want to change used application or tokens.
Arguments
parameters

Object *required

Session parameters
parameters.appId

String *required

Application id
parameters.authToken

String *required

Authorization session token
parameters.secretToken

String

Secret application token (should be used only for testing purposes)
callback

Function

Callback function
Return
Promise<Account> - Promise object, returns Account object in resolution
Example
Copy
Account.startSession({
  appId: 'YOUR_APP_ID',
  authToken: 'AUTH_TOKEN'
})
stopSession()stopSession()
Stop session and reset current appId and tokens.
subscribe()subscribe(event, callback)
Subscribes on event.
Arguments
event

String *required

This string can contain: event name, namespace of event name, list of event names separated by a space or '*' to subscribe on all events
callback

Function *required

Callback function
unsubscribe()unsubscribe(event, callback)
Unsubscribes from event.
Arguments
event

String *required

This string can contain: event name, namespace of event name, list of event names separated by a space or '*' to unsubscribe from all events
callback

Function *required

Callback function

Events

statechange
Triggered when account state has been changed.
error
Triggered when error has been occurred during session start.
Data
Error - Error object describing the problem

VideoStore
Expand all / Collapse all

This service allows you to manage video.io videos.

Methods

getVideo()getVideo(id, [callback])
Returns video by id.
Arguments
id

String *required

Video id
callback

Function

Callback function
Return
Promise<VideoObject> - Promise object, returns video object in resolution
Example
Copy
VideoStore.getVideo('548f048c-6170-691f-a206-3e0000000000').then(function(video) {});
getVideos()getVideos(parameters, [callback])
Returns list of videos in accordance with passed parameters.
Arguments
parameters

Object *required

Search parameters
parameters.ids

Array

List of video ids
parameters.metadata

Object

Object with metadata
parameters.tags

Array

List of tags
parameters.toDate

String

Date in ISO 8601 format, could be used for search of videos which were created before this date
parameters.fromDate

String

Date in ISO 8601 format, could be used for search of videos which were created after this date
parameters.sortOrder

String (By default: asc)

Sort order of search result (asc|desc)
parameters.page

Number (By default: 1)

Number of page of search results
parameters.perPage

Number (By default: 20)

Amount of videos per page
callback

Function

Callback function
Return
Promise<VideoObject[]> - Promise object, returns list of video objects in resolution
Example
Copy
 // Return list of videos by ids
 VideoStore.getVideos({
     ids: [
         'e6775b95-c930-4823-8181-fc7cb1a9e358',
         'af0d5cba-9986-4e37-b5f7-9552220be822'
     ]
 }).then(function(videos) {});

 // Return 50 first videos that contain specified metadata
 VideoStorage.getVideos({
     metadata: {
         itemId: '548f0460-6170-691f-a2be-070000000000'
     }
 }).then(function(videos) {});

 // Return 50 last videos that have tag `dogs`
 VideoStorage.getVideos({
     tag: 'dogs',
     sortOrder: 'desc'
 }).then(function(videos) {});

 // Return first 30 videos that were created before specified date
 VideoStorage.getVideos({
     toDate: '2016-10-11T13:50:27.730490Z',
     page: 1,
     perPage: 30
 }).then(function(videos) {});

 // Return next page with 30 videos that were created after specified date
 VideoStorage.getVideos({
     fromDate: '2016-10-11T13:50:27.730490Z',
     page: 2,
     perPage: 30
 }).then(function(videos) {});
createVideo()createVideo(data, [callback])
Creates new video.
Arguments
data

Object *required

Video data
data.title

String

Video title
data.metadata

Object

Object with metadata
data.tags

Array

List of tags
callback

Function

Callback function
Return
Promise<VideoObject> - Promise object, returns created video object in resolution
Example
Copy
 VideoStore.createVideo({
     title: 'My new video',
     tags: ['cats']
 }).then(function(video) {});
updateVideo()updateVideo(id, data, [callback])
Updates specified video.
Arguments
id

String *required

Id of video to update
video

Object *required

Video data
video.title

String

Video title
video.metadata

Object

Object with metadata
video.tags

Array

List of tags
callback

Function

Callback function
Return
Promise<VideoObject> - Promise object, returns updated video object in resolution
Example
Copy
 VideoStore.updateVideo('523b2185-874c-4c7f-9a41-ad651737f047', {
     title: 'New video title',
     tags: ['dogs']
 }).then(function(video) {});
removeVideo()removeVideo(id, [callback])
Deletes specified video.
Arguments
id

String *required

Video id
callback

Function

Callback function
Return
Promise<Boolean> - Promise object, returns Boolean with result of operation in resolution
Example
Copy
 VideoStore.removeVideo('523b2185-874c-4c7f-9a41-ad651737f047').then(function(response) {});
uploadVideo()uploadVideo(file, progressCallback, [callback])
Uploads video file to the server, creates and returns new video.
Arguments
file

File *required

File object that will be used for uploading. Supported mime types: video/mpeg, video/mp4, video/quicktime, video/avi.
progressCallback

Function

Callback function that will be called with progress update. Will be called with progress argument indicating current upload progress from 0 to 100.
callback

Function

Callback function
Return
Promise<VideoObject> - Promise object, returns new video object in resolution
Example
Copy
 VideoStore.uploadVideo(file, progress => console.log(`Uploaded: ${progress}%`)).then(function(video) {});
subscribeOnNewVideos()subscribeOnNewVideos([params], handler)
Creates subscription on new videos with passed params.
Arguments
parameters

Object

Video parameters, should contain at least one parameter
parameters.tags

Array

Tags of new video
parameters.metadata

Object

Metadata of new video
handler

Function(VideoObject) *required

Handler function, will be called with video object of new video
Return
Function - Unsubscribe function, calling of this function will remove current subscription on new videos
Example
Copy
 VideoStore.subscribeOnNewVideos({
     metadata: {
         item_id: '4929382374812'
     }
 }, function(video) {});

 VideoStore.subscribeOnNewVideos({
     tags: ['cats']
 }, function(video) {});
subscribe()subscribe(event, callback)
Subscribes on event.
Arguments
event

String *required

This string can contain: event name, namespace of event name, list of event names separated by a space or '*' to subscribe on all events
callback

Function *required

Callback function
Return
Function - Function that cancels current subscription
Example
Copy
VideoStore.subscribe(event, callback);
unsubscribe()unsubscribe(event, callback)
Unsubscribes from event.
Arguments
event

String *required

This string can contain: event name, namespace of event name, list of event names separated by a space or '*' to unsubscribe from all events
callback

Function *required

Callback function
Example
Copy
VideoStore.unsubscribe(event, callback);

Events

create
Triggered when video has been created in the current application.
Data
Object - Created video data

{
  id: 'CREATED_VIDEO_ID'
}
delete
Triggered when video from the current application has been deleted.
Data
Object - Deleted video data

{
  id: 'DELETED_VIDEO_ID'
}
update
Triggered when video from the current application has been updated.
Data
Object - Updated video data

{
  id: 'UPDATED_VIDEO_ID',
  changes: {
    'CHANGED_VIDEO_PROPERTY': 'NEW_VALUE'
  }
}

Classes

VideoObject
Expand all / Collapse all

This class represents video object.

Properties

idString
The unique ID identifying this video.
titleString
The title of this video.
tagsString[]
The tags that describes this video.
metadataObject
The metadata that describes this video.
widthNumber
The width of this video.
heightNumber
The height of this video.
durationNumber
The length of this video in seconds.
latitudeNumber
The latitude of geolocation to which this video was taken.
longitudeNumber
The longitude of geolocation to which this video was taken.
lowMP4UrlString
The url to low quality mp4 file for this video.
mediumMP4UrlString
The url to medium quality mp4 file for this video.
highMP4UrlString
The url to high quality mp4 file for this video.
posterImageUrlString
The poster image URL for this video.
subtitlesUrlString
The WebVTT subtitles URL for this video.
liveStreamUrlString
The live stream url for this video.
isLiveBoolean
The flag indicating whether this video live or not.
videoAnalysisVideoAnalysis | null
The video analysis object for this video
createdAtDate
The creation date of this video.
shotOnDate
The shot date of this video.

Methods

constructor()constructor(data)
Creates new VideoObject instance.
Arguments
data

Object *required

JSON representation of video object
Return
VideoObject - VideoObject instance
getJSON()getJSON()
Returns JSON representation of video object. Useful to store video object.
Return
Object - JSON representation of video object

VideoAnalysis
Expand all / Collapse all

This class represents an analysis of video content using deep learning algorithms.

Properties

descriptionString | null
General video description.
classifiedVideoUrlString | null
The video url with classification labels on top of recognized objects.
classificationsVKVideoClassification[] | null
List of classification objects in the video
transcriptionString | null
Transcription of recognized speech in the video
transcriptionPartsVKTranscriptionPart[] | null
List of transcription parts recognized in speech of the video
inappropriateContentBoolean
The flag indicating whether the video contains inappropriate content

VideoClassification
Expand all / Collapse all

This class represents a classification of object detected in a video using deep learning algorithms.

Properties

titleString
Classification title
startTimeNumber
The time in milliseconds the classified object appears in the video.
endTimeNumber
The time in milliseconds the classified object disappears in the video.
positionMapObject
Position map of classified object, represents map of time to rect area where classified object was located at corresponding time

TranscriptionPart
Expand all / Collapse all

This class represents a part of video transcription.

Properties

textString
Text of transcription part
startTimeNumber
The time in milliseconds when transcription part has started in the video.
endTimeNumber
The time in milliseconds when transcription part has ended in the video.

VideoPlaylist
Expand all / Collapse all

This class represents a playlist of videos.

Example

 // Creates playlist with all application videos
 new VideoPlaylist();

 // Creates playlist with videos containing tag `cat`
 new VideoPlaylist({ tags: ['cats'] });

 // Creates playlist with 2 specified videos
 new VideoPlaylist({
     ids: [
         '1b541eed-1926-44da-8a89-330c9b9fff09',
         '7da00b80-0b6a-4c51-8561-9e4b6d32b1db'
     ]
 });

Properties

tagsString[]
Tags that defines this playlist.
metadataObject
Metadata that defines this playlist.
idsString[]
List of video ids.
sortOrderString
Sort order of videos in playlist
countNumber
The total number of videos that's in this playlist.

Methods

constructor()constructor(parameters)
Creates new VideoPlaylist instance.
Arguments
parameters

Object

Playlist parameters. If nothing present will load all videos from application.
parameters.ids

String[]

List of video ids.
parameters.tags

String[]

Tags that defines this playlist.
parameters.metadata

Object

Metadata that defines this playlist.
parameters.sortOrder

String (By default: asc)

Sort order of videos in playlist.
Return
VideoPlaylist - VideoPlaylist instance
itemAtIndex()itemAtIndex(index, [callback])
Returns the video object at index.
Arguments
index

Number *required

Index of item to request.
callback

Function

Callback function
Return
Promise<VideoObject> - Promise object, returns video object in resolution
itemAtIndexCached()itemAtIndexCached(index)
Returns the video object from cache at index.
Arguments
index

Number *required

Index of item to request.
Return
VideoObject | null - Video object at index if it's exist in cache

UI Components

UI
Expand all / Collapse all

UI is utility that helps to work with UI components. It can generate new components, initialize new components created using special HTML tags in specific container or entire document and can return instance of UI compoment by its root element or id.

UI()UI(componentName, parentContainer, parameters)
Creates UI component.
Arguments
componentName

String *required

Name of UI component
parentContainer

HTMLElement *required

Element that will contain UI component
parameters

Object *required

Parameters of UI component
UI.init()UI.init([container])
Initializes new ui components found in specified html container.
Arguments
container

HTMLElement

Container where need to initialize new ui components. If nothing specified uses entire document.
Example
Copy
 UI.init(document.body);
UI.getInstance()UI.getInstance(element)
Returns instance of ui component.
Arguments
element

Number | String | HTMLElement *required

Root element or id of ui component
Return
Object - Instance of ui component
Example
Copy
UI.getInstance(document.querySelector('.v-player'));

Player
Expand all / Collapse all

Player component that provides a facility to play single video or video playlist. Player has built-in controls created as separate modules:

  • progress - create playback control
  • rate - create rate control
  • volume - create volume control
  • fullscreen - create fullscreen control, that allows you to toggle browser fullscreen mode
  • navigation - create navigation control, that allows you to navigate between playlist videos (applies only for playlist playback)
  • videoInfo - create block with information about current video (date, owner and location)

Parameters

video

VideoObject | String

Video object or video id to play
playlist

VideoPlaylist

Video playlist to play
modules

PlayerModule[] (By default: all)

List of modules that should be included in player instance
loop

Boolean (By default: false)

Whether player should loop playing of video
showSubtitles

Boolean (By default: false)

Enable the showing of auto generated subtitles.
autoPlay

Boolean (By default: false)

Whether player should start playing of video as soon as it is loaded
playOnFocus

Boolean (By default: false)

Whether player should start playing of video when video is in the middle of the screen
volume

Number (By default: 50)

Player init volume
rate

Number (By default: 1)

Player playback rate
size

String | Object | Function

By default, player inherits width of container element and height will be calculated in accordance with video ratio. To customize player sizes available 3 options:
  • 'parent', in this case width and height will be inherited from parent container element
  • object with width and height parameters (values should be in pixels)
  • function that returns object with width and height. Function will be called with current video object as the first argument
aspectMode

AspectMode (By default: AspectMode.RESIZE_ASPECT_FILL)

Parameter that define players aspect mode
template

String

Custom template for ui component
templateData

Function

Function that return data for custom template

Example

 // Creates new player instance which will load video by passed id and will automatically start play it
 new Player({
     video: VIDEO_ID,
     autoPlay: true
 });

 // Creates new player instance with specified UI modules which will be appended to #player element and will automatically start play passed video 
 new Player(document.getElementById('player'), {
     video: VIDEO_OBJECT,
     modules: [
          PlayerModule.PROGRESS,
          PlayerModule.VOLUME,
          PlayerModule.FULLSCREEN
     ],
     loop: true,
     autoPlay: true,
     volume: 100
 });

 // Creates new player instance with navigation control which will be appended to #player element and will automatically start play videos from passed playlist 
 new Player(document.getElementById('player'), {
     playlist: new VideoPlaylist({ tags: ['sport'] }),
     modules: [PlayerModule.NAVIGATION],
     autoPlay: true,
     aspectMode: AspectMode.RESIZE_ASPECT
 });

Properties

elementHTMLElement
Root HTML element of player component

Methods

getState()getState()
Returns player playback state.
Return
PlayState - Player playback state
play()play([params])
Starts playback of current video.
Arguments
params

Object

Playback params (e.g. currentTime)
pause()pause()
Pauses playback of current video.
getVideo()getVideo()
Returns current video.
Return
VideoObject - Video object of the current video
setVideo()setVideo(video)
Sets new video to player.
Arguments
video

VideoObject | String *required

Video object or video id
getPlaylist()getPlaylist()
Returns current video playlist, if you use playlist for playback.
Return
VideoPlaylist | null - Current video playlist
getPlaylistIndex()getPlaylist()
Returns index of current video in playlist, if you use playlist for playback.
Return
Number | null - Index of current video in current playlist
setPlaylist()setPlaylist(playlist, index)
Sets new video playlist to player.
Arguments
playlist

VideoPlaylist *required

Video playlist to play
index

Number (By default: 0)

Video index from playlist to play
setPlaylistIndex()setPlaylistIndex(index)
Sets new video from playlist at specified index.
Arguments
index

Number *required

Video index from playlist to play
playNextVideo()playNextVideo()
Plays next video from playlist if it's presented.
playPreviousVideo()playPreviousVideo()
Plays previous video from playlist if it's presented.
getVolume()getVolume()
Returns current volume value.
Return
Number - Current volume value
setVolume()setVolume(volume)
Sets new volume value.
Arguments
volume

Number *required

Volume value (from 0 to 1)
getCurrentTime()getCurrentTime()
Returns current time of playback.
Return
Number - Current time of playback in seconds
setCurrentTime()setCurrentTime(currentTime)
Sets current time of playback
Arguments
currentTime

Number *required

Current time of playback
getPlaybackRate()getPlaybackRate()
Returns current playback rate.
Return
Number - Playback rate
setPlaybackRate()setPlaybackRate(rate)
Sets current playback rate.
Arguments
rate

Number *required

Playback rate
getLoop()getLoop()
Returns player loop flag.
Return
Boolean - Value of loop flag
setLoop()setLoop(loop)
Sets player loop flag.
Arguments
loop

Boolean *required

Whether player should loop playing of video
getAspectMode()getAspectMode()
Returns player aspect mode.
Return
AspectMode - Aspect mode value
setAspectMode()setAspectMode(aspectMode)
Sets player aspect mode.
Arguments
aspectMode

AspectMode *required

Aspect mode value
isSubtitlesShown()isSubtitlesShown()
Returns the flag indicating whether subtitles is shown.
Return
Boolean - Flag indicating whether subtitles is shown
toggleSubtitles()toggleSubtitles(show)
Toggles auto-generated subtitles.
Arguments
show

Boolean *required

Whether player should show subtitles
isFullScreen()isFullScreen()
Returns flag whether player is in the fullscreen mode.
Return
Boolean - Boolean flag
toggleFullScreen()toggleFullScreen()
Toggles fullscreen mode (should be called only in callback of user event).
updateSize()updateSize()
Updates player sizes.
subscribe()subscribe(event, callback)
Subscribes on component event.
Arguments
event

String *required

Event name
callback

Function *required

Callback function
unsubscribe()unsubscribe(event, callback)
Unsubscribes from component event.
Arguments
event

String *required

Event name
callback

Function *required

Callback function
destroy()destroy()
Destroys component instance and removes it from the DOM.

Events

ended
Triggered when playback of video is ended.
enterfullscreen
Triggered when player entered to fullscreen mode.
error
Triggered when some error occurred.
Data
Error - Error object describing the problem
exitfullscreen
Triggered when player exited from fullscreen mode.
loaded
Triggered when current video has been fully loaded.
pause
Triggered when video has been paused.
play
Triggered when video has been started or is no longer paused.
playing
Triggered when video is playing after having been paused or stopped for buffering.
progress
Triggered when progress of downloading of current video has been changed.
Data
Number - Progress of video downloading (from 0 to 1)
rateupdate
Triggered when player rate has been changed.
Data
Number - Current (from 0 to 2)
timeupdate
Triggered when time of playback has been updated.
Data
Number - Current time in seconds
volumeupdate
Triggered when player volume has been changed.
Data
Number - Current volume (from 0 to 100)

Upload
Expand all / Collapse all

This component allows you to upload new videos. Workflow of component contains several steps: first of all user selects a file to upload, then component creates new video entity. After that it starts uploading the video file to the storage. When uploading is done, it starts processing of the uploaded file and after that new video is ready to watch.

Parameters

tags

Array

List of tags, that will be added to new video
metadata

Object

Metadata, that will be added to new video

Example

 new Upload({
     tags: ['TAG']
 });

 new Upload(document.getElementById('upload'), {
     metadata: {
         KEY: 'VALUE'
     }
 });

Properties

elementHTMLElement
Root HTML element of upload component

Methods

updateParams()updateParams(params)
Updates component parameters.
Arguments
parameters

Object *required

Component parameters
parameters.tags

Array

List of tags, that will be added to new video
parameters.metadata

Object

Metadata, that will be added to new video
getState()getState()
Returns current state of upload component.
Return
UploadState - Current state of upload component
setState()setState(state)
Sets state of upload component.
Arguments
state

UploadState *required

State of upload component
getProgress()getProgress()
Returns value of upload progress.
Return
Number - Value of upload progress (from 0 to 100)
getVideo()getVideo()
Returns video object of uploaded video.
Return
Object | null - Video object or null if video has not been created
subscribe()subscribe(event, callback)
Subscribes on component event.
Arguments
event

String *required

Event name
callback

Function *required

Callback function
unsubscribe()unsubscribe(event, callback)
Unsubscribes from component event.
Arguments
event

String *required

Event name
callback

Function *required

Callback function
destroy()destroy()
Destroys component instance and removes it from the DOM.

Events

processing.ended
Triggered when processing of uploaded video has been ended.
processing.start
Triggered when processing has been started.
upload.ended
Triggered when upload has been ended.
upload.error
Triggered when occurs error during of upload.
Data
Error - Error object describing the problem
upload.progress
Triggered when progress of uploading has been changed.
Data
Number - Progress of uploading (from 0 to 100)
upload.start
Triggered when uploading has been started.
video.create
Triggered when new video has been created.
Data
Object - Video object
watch
Triggered when watch link has been clicked.
Data
Object - Video object

QR code
Expand all / Collapse all

Since JS VKit doesn't support video recording at the moment, you can use this component to pass recording functionality to mobile SDKs. This component generates QR code with encoded video data, that you want to use for recording of video. Then you can scan this code using mobile SDK recorder. The recorder will recognize video data encoded in QR code and will use it for recording of new video.

Parameters

title

String

QR code title, this title will be shown in mobile VKit after QR code recognition
tags

Array

List of tags for new video
metadata

Object

Metadata for new video
size

Number (By default: 200)

Size of component in pixels

Example

 QRCode(document.getElementById('qrcode'), {
     title: 'QR title',
     tags: ['TAG'],
     metadata: {
         KEY: 'VALUE'
     },
     size: 200
 });

Properties

elementHTMLElement
Root HTML element of QR code component

Methods

updateParams()updateParams(params, [title])
Updates component parameters and rebuild QR code.
Arguments
params

Object *required

Component parameters
title

String

QR code title, this title will be shown in mobile VKit after QR code recognition
params.tags

Array

List of tags for new video
params.metadata

Object

Metadata for new video
params.size

Number

Size of component in pixels
subscribe()subscribe(event, callback)
Subscribes on component event.
Arguments
event

String *required

Event name
callback

Function *required

Callback function
unsubscribe()unsubscribe(event, callback)
Unsubscribes from component event.
Arguments
event

String *required

Event name
callback

Function *required

Callback function
destroy()destroy()
Destroys component instance and removes it from the DOM.

Managers

PlayersManager
Expand all / Collapse all

This component created for convenient preloading and prerendering of videos for custom playback experience. To make it works you only need to pass list of video ids in an order you're going to play it in your interface and keep it in actual state using addVideoIds and removeVideoIds methods. After that you only need to call getPlayerFor with video id to get prepared video player instance as you need to show or play it.

Example

const manager = new PlayersManager(5, 10);

Methods

constructor()constructor([prerenderDistance], [preloadDistance])
Creates new PlayersManager instance.
Arguments
prerenderDistance

Number (By default: 5)

Number of players that will be used for pre rendering of videos closest to the current video
preloadDistance

Array (By default: 10)

Number of videos closest to the current video, which should be preloaded.
Return
PlayersManager - New instance of PlayersManager
addVideoIds()addVideoIds(videoIds, [atIndex])
Adds new video ids to manager to specified position.
Arguments
videoIds

Array *required

List of video ids you want to add to manager
atIndex

Number (By default: -1)

Position where you want to add new videos (if set -1 will be added to the end of the list)
removeVideoIds()removeVideoIds(videoIds)
Removes passed video ids.
Arguments
videoIds

Array *required

List of video ids you want to remove from manager.
reset()reset()
Reset manager to initial state.
getPlayerFor()getPlayerFor(videoId)
Returns prepared video player for passed video id.
Arguments
videoId

String *required

Id of video you need a player for
Return
Player - Prepared player component instance
destroy()destroy()
Destroys component instance and removes it from the DOM.

Enums

AccountState
Expand all / Collapse all

Current account state.

Values

CONNECTED
VKit session is started.
CONNECTING
VKit is connecting to server for session validation.
DISCONNECTED
VKit session is stopped.

PlayerModule
Expand all / Collapse all

Available player modules.

Values

PROGRESS
Playback progress control, shows current playback position and allows to change it.
RATE
Rate control, allows you change rate of playback.
VOLUME
Volume control, allows you change volume.
FULLSCREEN
Fullscreen control, allows you to toggle browser fullscreen mode.
NAVIGATION
Playlist navigation control, allows navigate between playlist video. Applies only for playlist playback.
VIDEO_INFO
Block with date and location of current video.

PlayState
Expand all / Collapse all

Player playback state.

Values

PLAYING
Player is playing video.
PAUSED
Player is paused.

AspectMode
Expand all / Collapse all

Player aspect mode.

Values

RESIZE_ASPECT
The aspect ratio of video is respected and the entire video frame could be seen.
RESIZE_ASPECT_FILL
The aspect ratio of video is respected but the video frame would fill the entire player block.
RESIZE
The aspect ratio of video is not respected but the entire video frame would fill the player block.

UploadState
Expand all / Collapse all

State of upload component.

Values

READY
Upload component is ready for upload.
UPLOADING
Upload component is uploading file to the server.
PROCESSING
The video.io server is processing uploaded file.
DONE
Uploaded video is ready to play.

Errors

VKit Errors
Expand all / Collapse all

InvalidApplicationId
Application id is invalid.
InvalidToken
Session or secret token is invalid.
VideoNotFound
Requested video is not found.
VideoBadRequest
Invalid video data.
VideoPermissionDenied
Has no write access for this video.
VideoUploadFailed
Unable to upload video to server because of connectivity issues.
VideoNotSupportedFormat
Video format is not supported.
VideoLoadFailed
Unable to load video because of connectivity issues.
VideoDecodeFailed
Unable to decode video.