Share via


MbmsStreamingSession.StartStreaming Method

Definition

Starts streaming a requested service, reporting status to the indicated callback.

[Android.Runtime.Register("startStreaming", "(Landroid/telephony/mbms/StreamingServiceInfo;Ljava/util/concurrent/Executor;Landroid/telephony/mbms/StreamingServiceCallback;)Landroid/telephony/mbms/StreamingService;", "GetStartStreaming_Landroid_telephony_mbms_StreamingServiceInfo_Ljava_util_concurrent_Executor_Landroid_telephony_mbms_StreamingServiceCallback_Handler", ApiSince=28)]
public virtual Android.Telephony.Mbms.StreamingService? StartStreaming (Android.Telephony.Mbms.StreamingServiceInfo? serviceInfo, Java.Util.Concurrent.IExecutor executor, Android.Telephony.Mbms.StreamingServiceCallback? callback);
[<Android.Runtime.Register("startStreaming", "(Landroid/telephony/mbms/StreamingServiceInfo;Ljava/util/concurrent/Executor;Landroid/telephony/mbms/StreamingServiceCallback;)Landroid/telephony/mbms/StreamingService;", "GetStartStreaming_Landroid_telephony_mbms_StreamingServiceInfo_Ljava_util_concurrent_Executor_Landroid_telephony_mbms_StreamingServiceCallback_Handler", ApiSince=28)>]
abstract member StartStreaming : Android.Telephony.Mbms.StreamingServiceInfo * Java.Util.Concurrent.IExecutor * Android.Telephony.Mbms.StreamingServiceCallback -> Android.Telephony.Mbms.StreamingService
override this.StartStreaming : Android.Telephony.Mbms.StreamingServiceInfo * Java.Util.Concurrent.IExecutor * Android.Telephony.Mbms.StreamingServiceCallback -> Android.Telephony.Mbms.StreamingService

Parameters

serviceInfo
StreamingServiceInfo

The information about the service to stream.

executor
IExecutor

The executor on which you wish to execute callbacks for this stream.

callback
StreamingServiceCallback

A callback that'll be called when something about the stream changes.

Returns

An instance of StreamingService through which the stream can be controlled. May be null if an error occurred.

Attributes

Remarks

Starts streaming a requested service, reporting status to the indicated callback. Returns an object used to control that stream. The stream may not be ready for consumption immediately upon return from this method -- wait until the streaming state has been reported via android.telephony.mbms.StreamingServiceCallback#onStreamStateUpdated(int, int)

May throw an IllegalArgumentException or an IllegalStateException

Asynchronous errors through the callback include any of the errors in MbmsErrors.GeneralErrors or MbmsErrors.StreamingErrors.

Java documentation for android.telephony.MbmsStreamingSession.startStreaming(android.telephony.mbms.StreamingServiceInfo, java.util.concurrent.Executor, android.telephony.mbms.StreamingServiceCallback).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to