SKVideo

class SKVideo(url: String, playingInitial: Boolean, soundInitial: Boolean) : SKComponent<SKVideoVC>

A Video Component Based on ExoPlayer for Android no iOs Version at this time

Parameters

url

url of video you want play

playingInitial

indicate if the video should play automatically when ready

soundInitial

indicate if the soud should be on or of

Constructors

SKVideo
Link copied to clipboard
fun SKVideo(url: String, playingInitial: Boolean = true, soundInitial: Boolean = false)

Functions

computeItemId
Link copied to clipboard
open fun computeItemId(): Any
doWithPermission
Link copied to clipboard
fun doWithPermission(permission: SKPermission, onKo: () -> Unit?, onOk: () -> Unit)
hasPermission
Link copied to clipboard
fun hasPermission(vararg permission: SKPermission): Boolean
launchWithLoaderAndErrors
Link copied to clipboard
fun launchWithLoaderAndErrors(context: CoroutineContext, start: CoroutineStart, errorMessage: String?, block: suspend CoroutineScope.() -> Unit): Job
launchWithOptions
Link copied to clipboard
fun launchWithOptions(context: CoroutineContext, start: CoroutineStart, withLoader: Boolean, specificErrorTreatment: (ex: Exception) -> Unit?, errorMessage: String?, block: suspend CoroutineScope.() -> Unit): Job
logD
Link copied to clipboard
fun logD(message: Any?)
logE
Link copied to clipboard
fun logE(throwable: Throwable, message: Any?)
observe
Link copied to clipboard
fun observe(poker: Poker, onPoke: () -> Unit)
onChange
Link copied to clipboard
fun <D> SKData<D>.onChange(lambda: (D) -> Unit)
onData
Link copied to clipboard
fun <D> SKData<D>.onData(validity: Long?, withLoaderForFirstData: Boolean, fallBackDataBeforeFirstDataLoaded: Boolean, fallBackDataIfError: Boolean, treatErrors: Boolean, defaultErrorMessage: String?, block: (D) -> Unit)
onPause
Link copied to clipboard
fun onPause()
onRemove
Link copied to clipboard
open fun onRemove()
onResume
Link copied to clipboard
fun onResume()
plus
Link copied to clipboard
operator fun plus(otherComponents: List<SKComponent<*>>?): List<SKComponent<*>>
operator fun plus(otherComponent: SKComponent<*>?): List<SKComponent<*>>
requestPermissions
Link copied to clipboard
fun requestPermissions(permissions: List<SKPermission>, onResult: (grantedPermissions: List<SKPermission>) -> Unit)
treatError
Link copied to clipboard
open fun treatError(exception: Exception, errorMessage: String?)

Properties

coroutineContext
Link copied to clipboard
override val coroutineContext: CoroutineContext
loader
Link copied to clipboard
open val loader: SKLoader?
onSwipe
Link copied to clipboard
open val onSwipe: () -> Unit?
playing
Link copied to clipboard
var playing: Boolean

indicate if the video should play, play if true, pause if false

sound
Link copied to clipboard
var sound: Boolean
view
Link copied to clipboard
open override val view: SKVideoVC