addCaptions

open fun addCaptions(video: Video, languageCodeCaptionsMap: Map<String, String>): Boolean

Adds the CAPTION_SOURCES video property with the languageCodeCaptionsMap, if and on only if, the CAPTION_SOURCES doesn't exist.

Return

true if the captions were added to the video

Parameters

video

The video to add the captions to.

languageCodeCaptionsMap

A map of language code to caption urls.