2024-09-12から1日間の記事一覧
参照の追加 「参照の追加」→「アセンブリ」で下記の参照を追加する。 System.Windows.Forms System.Drawing ソース using System; using System.Windows; using System.Windows.Media; using System.Windows.Forms; namespace DualMonitor2 { public partial…
MediaElementを使う。【参照】 C#のFormアプリで動画再生の速度を制御 - 滴了庵日録 MainWindow.xaml <Window x:Class="MoviePlayer2.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Video Speed Control" Height="350" Width="525"> <Grid> </grid></window>
Windows Media Playerを使う。 Windows Media PlayerのCOMコンポーネントを追加 ツールボックスウィンドウで右クリックして「アイテムの選択」を選択 「COMコンポーネント」タブで「Windows Media Player」にチェック ツールボックスに追加された「Windows M…
using System; using System.Drawing; using System.Windows.Forms; namespace DualMonitor { public partial class Form1 : Form { public Form1() { InitializeComponent(); const int MONITOR1 = 0; const int MONITOR2 = 1; if(Screen.AllScreens.Length …
VLC media playerのインストール sudo apt update sudo apt install vlc VLC media playerの起動 vlc 引数でファイルやカメラを指定 vlc hoge.mp4 vlc v4l2:///dev/video0