예제 #1
0
 public VideoViewExtends(Context context, string path)
     : base(context)
 {
     this.context = context;
     this.state   = new VideoViewState();
     this.SetVideoPath(path);
     this.InitPicture();
     this.SetEventOnTouch();
 }
예제 #2
0
 public VideoViewExtends(Context context)
     : base(context)
 {
     this.context = context;
     this.state   = new VideoViewState();
 }
예제 #3
0
 public void OnResume()
 {
     this.SeekTo(this.CurrentPosition);
     this.Start();
     this.state = VideoViewState.Playing;
 }
예제 #4
0
 public void OnStop()
 {
     this.SeekTo(0);
     this.Start();
     this.state = VideoViewState.Stop;
 }
예제 #5
0
 public void OnPause()
 {
     this.Pause();
     this.state = VideoViewState.Resume;
 }
예제 #6
0
 public void OnStart()
 {
     this.Start();
     this.state = VideoViewState.Playing;
 }