Beispiel #1
0
 /// <summary>
 /// 设置是否全屏
 /// </summary>
 /// <param name="istrue"></param>
 public void SetFullScreen(bool istrue)
 {
     LibVlcAPI.libvlc_set_fullscreen(libvlc_media_player_, istrue ? 1 : 0);
 }
Beispiel #2
0
 /// <summary>
 /// 设置音量
 /// </summary>
 /// <param name="volume"></param>
 public void SetVolume(int volume)
 {
     LibVlcAPI.libvlc_audio_set_volume(libvlc_media_player_, volume);
 }
Beispiel #3
0
 /// <summary>
 /// 设置播放时间
 /// </summary>
 /// <param name="seekTime"></param>
 public void SetPlayTime(double seekTime)
 {
     LibVlcAPI.libvlc_media_player_set_time(libvlc_media_player_, (Int64)(seekTime * 1000));
 }
Beispiel #4
0
 /// <summary>
 /// 获取音量
 /// </summary>
 /// <returns></returns>
 public int GetVolume()
 {
     return(LibVlcAPI.libvlc_audio_get_volume(libvlc_media_player_));
 }
Beispiel #5
0
 /// <summary>
 /// 获取播放时间进度
 /// </summary>
 /// <returns></returns>
 public double GetPlayTime()
 {
     return(LibVlcAPI.libvlc_media_player_get_time(libvlc_media_player_) / 1000.0);
 }