MediaPlayer.SetDataSourceAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetDataSourceAsync(Context, Uri, IDictionary<String,String>, IList<HttpCookie>)
public System.Threading.Tasks.Task SetDataSourceAsync (Android.Content.Context context, Android.Net.Uri uri, System.Collections.Generic.IDictionary<string,string>? headers, System.Collections.Generic.IList<Java.Net.HttpCookie>? cookies);
member this.SetDataSourceAsync : Android.Content.Context * Android.Net.Uri * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IList<Java.Net.HttpCookie> -> System.Threading.Tasks.Task
Parameters
- context
- Context
- uri
- Uri
- headers
- IDictionary<String,String>
- cookies
- IList<HttpCookie>
Returns
Remarks
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
SetDataSourceAsync(FileDescriptor, Int64, Int64)
public System.Threading.Tasks.Task SetDataSourceAsync (Java.IO.FileDescriptor? fd, long offset, long length);
member this.SetDataSourceAsync : Java.IO.FileDescriptor * int64 * int64 -> System.Threading.Tasks.Task
Parameters
- offset
- Int64
- length
- Int64
Returns
Remarks
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
SetDataSourceAsync(Context, Uri, IDictionary<String,String>)
public System.Threading.Tasks.Task SetDataSourceAsync (Android.Content.Context context, Android.Net.Uri uri, System.Collections.Generic.IDictionary<string,string>? headers);
member this.SetDataSourceAsync : Android.Content.Context * Android.Net.Uri * System.Collections.Generic.IDictionary<string, string> -> System.Threading.Tasks.Task
Parameters
- context
- Context
- uri
- Uri
- headers
- IDictionary<String,String>
Returns
Remarks
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
SetDataSourceAsync(Context, Uri)
public System.Threading.Tasks.Task SetDataSourceAsync (Android.Content.Context context, Android.Net.Uri uri);
member this.SetDataSourceAsync : Android.Content.Context * Android.Net.Uri -> System.Threading.Tasks.Task
Parameters
- context
- Context
- uri
- Uri
Returns
Remarks
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
SetDataSourceAsync(String)
public System.Threading.Tasks.Task SetDataSourceAsync (string? path);
member this.SetDataSourceAsync : string -> System.Threading.Tasks.Task
Parameters
- path
- String
Returns
Remarks
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
SetDataSourceAsync(FileDescriptor)
public System.Threading.Tasks.Task SetDataSourceAsync (Java.IO.FileDescriptor? fd);
member this.SetDataSourceAsync : Java.IO.FileDescriptor -> System.Threading.Tasks.Task
Parameters
Returns
Remarks
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
SetDataSourceAsync(MediaDataSource)
public System.Threading.Tasks.Task SetDataSourceAsync (Android.Media.MediaDataSource? dataSource);
member this.SetDataSourceAsync : Android.Media.MediaDataSource -> System.Threading.Tasks.Task
Parameters
- dataSource
- MediaDataSource
Returns
Remarks
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
SetDataSourceAsync(AssetFileDescriptor)
public System.Threading.Tasks.Task SetDataSourceAsync (Android.Content.Res.AssetFileDescriptor afd);
member this.SetDataSourceAsync : Android.Content.Res.AssetFileDescriptor -> System.Threading.Tasks.Task
Parameters
Returns
Remarks
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.