Android.Widget.VideoView Class
Displays a video file.

See Also: VideoView Members

Syntax

[Android.Runtime.Register("android/widget/VideoView", DoNotGenerateAcw=true)]
public class VideoView : Android.Views.SurfaceView, MediaController.IMediaPlayerControl, IDisposable

Remarks

Displays a video file. The VideoView class can load images from various sources (such as resources or content providers), takes care of computing its measurement from the video so that it can be used in any layout manager, and provides various display options such as scaling and tinting.

Note: VideoView does not retain its full state when going into the background. In particular, it does not restore the current play state, play position, selected tracks, or any subtitle tracks added via VideoView.AddSubtitleSource(System.IO.Stream, Android.Media.MediaFormat). Applications should save and restore these on their own in Android.App.Activity.OnSaveInstanceState(Android.OS.Bundle) and Android.App.Activity.OnRestoreInstanceState(Android.OS.Bundle).

Also note that the audio session id (from VideoView.AudioSessionId) may change from its previously returned value when the VideoView is restored.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1