amazon-chime-sdk / com.amazonaws.services.chime.sdk.meetings.audiovideo / DefaultAudioVideoFacade / startContentShare

startContentShare

fun startContentShare(source: ContentShareSource): Unit

Start sharing the content of a given ContentShareSource.

Once sharing has started successfully, ContentShareObserver.onContentShareStarted will be invoked. If sharing fails or stops, ContentShareObserver.onContentShareStopped will be invoked with ContentShareStatus as the cause.

This will call VideoSource.addVideoSink on the provided source and VideoSource.removeVideoSink on the previously provided source.

Calling this function repeatedly will replace the previous ContentShareSource as the one being transmitted.

Parameters

source - : ContentShareSource - The source of content to be shared.

fun startContentShare(source: ContentShareSource, config: LocalVideoConfiguration): Unit

Start sharing the content of a given ContentShareSource with configuration.

Once sharing has started successfully, ContentShareObserver.onContentShareStarted will be invoked. If sharing fails or stops, ContentShareObserver.onContentShareStopped will be invoked with ContentShareStatus as the cause.

This will call VideoSource.addVideoSink on the provided source and VideoSource.removeVideoSink on the previously provided source.

Calling this function repeatedly will replace the previous ContentShareSource as the one being transmitted, will update the content share configuration, e.g. maxBitRateKbps.

Parameters

source - : ContentShareSource - The source of content to be shared.

config - : LocalVideoConfiguration - The configuration of emitted video stream, e.g. maxBitRateKbps