# CPF.Vlc **Repository Path**: csharpui/cpf.vlc ## Basic Information - **Project Name**: CPF.Vlc - **Description**: 使用CPF对vlc的封装 - **Primary Language**: Unknown - **License**: LGPL-2.1 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 15 - **Forks**: 12 - **Created**: 2023-11-23 - **Last Updated**: 2024-11-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # C#跨平台UI框架CPF https://gitee.com/csharpui/CPF ## CPF.Vlc #### 介绍 使用CPF对vlc的封装 使用了LibVLCSharp的包 Vlc封装参考 https://github.com/videolan/libvlcsharp Windows Nuget 安装 VideoLAN.LibVLC.Windows Mac Nuget 安装 VideoLAN.LibVLC.Mac Linux上需要安装 For ubuntu: apt-get install libvlc-dev apt-get install vlc #### 使用说明 视频播放控件,Nuget 安装Xhm.CPF.Vcl 然后使用VideoView控件,控件初始化之后使用MediaPlayer属性来对播放器进行详细控制。VideoView. LibVLC一些对象构造需要 new VideoView { Name = "player", PresenterFor=this, MarginBottom=0, MarginLeft=0, MarginRight=0, MarginTop=0, } player.Play(new Uri(@"http://*****.mp4"));//播放 player.MediaPlayer.Pause();//暂停