getVideo

fun getVideo(    id: String,     listener: ArcXPContentCallback? = null,     shouldIgnoreCache: Boolean = false): LiveData<Either<ArcXPException, ArcXPContentElement>>

This function requests a video result by ANS ID

returns result with ans type = "video" either through callback interface or livedata

Return

LiveData subscribe to this livedata for successful results (or use callback interface) Note: this returns the same live data as all other generic content calls, so can subscribe directly to contentLiveData once

Parameters

id

ANS ID

listener

Callback interface for optional callback override ArcXPContentCallback.onGetContentSuccess for success override ArcXPContentCallback.onError for failure or leave listener null and use livedata result stream and error livedata stream