Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
MPRISのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
MPRIS
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:Multimedia]] [[en:MPRIS]] [https://specifications.freedesktop.org/mpris-spec/latest/ MPRIS] (Media Player Remote Interfacing Specification) はメディアプレイヤーを制御するための共通のプログラマティック API を提供することを目的とした標準 [[D-Bus]] インターフェイスです。 準拠するメディアプレイヤーの発見、問い合わせ、基本的な再生制御のためのメカニズムや、アクティブなメディアアイテムにコンテンキストを追加するために使用するトラックリストインターフェイスを提供します。 == サポートしているクライアント == * [[Chromium]] * [[Firefox]] * [[wikipedia:Dragon_Player|Dragon Player]] * [[mpv#mpv-mpris]] * [[Music Player Daemon/Tips and tricks#MPRIS support]] * {{AUR|rage}} * [[Spotify#MPRIS]] * {{AUR|ncspot}} * [[Telegram]] * [[VLC]] * {{Pkg|celluloid}} == コントロールユーティリティ == {{Tip|Create a [[キーバインド]] for common control commands and multimedia keys such as {{ic|XF86AudioPlay}}, {{ic|XF86AudioStop}}, {{ic|XF86AudioPrev}} and {{ic|XF86AudioNext}}.}} === Playerctl === The {{Pkg|playerctl}} utility provides a command line tool to send commands to MPRIS clients. The most common commands are {{ic|play-pause}}, {{ic|next}} and {{ic|previous}}: $ playerctl play-pause $ playerctl next $ playerctl previous ''playerctl'' will send the command to the first player it finds. To select a player manually, use the {{ic|--player}} option, e.g. {{ic|1=--player=vlc}}. === mpris-player-control === The [https://gitlab.com/axdsop/nix-dotfiles/tree/master/Configs/polybar/scripts/mpris_player mpris_player_control] is a shell script which integrates {{ic|dbus-send}} and {{ic|pactl}} to control MPRIS clients. It supports the Play, Pause, PlayPause and Stop actions and sink volume control (mute/unmute/up/down) for [[Spotify]]. Run {{ic|mpris_player_control -h}} to show basic script usage. === D-Bus === An alternative to the above is to manually use [[D-Bus]], which should be available by default as it is a dependency of [[systemd]]. For example, the following commands can be used to control [[Spotify]]: $ dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause $ dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next $ dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous $ dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop == Bluetooth == Media control from bluetooth headsets and similar devices may be forwarded to MPRIS. {{Note|Some headphones such as Sony WH-1000XM3 provide an AVRCP interface. For these types ''mpris-proxy'' is not required. Just make sure you have [[キーバインド]] set up for media keys.}} [[インストール]] the {{Pkg|bluez-utils}} package and run {{ic|mpris-proxy}}. In order to start up ''mpris-proxy'' in the background and/or when your system starts, you may create a [[systemd/ユーザー]] service: {{hc|~/.config/systemd/user/mpris-proxy.service|<nowiki> [Unit] Description=Forward bluetooth media controls to MPRIS [Service] Type=simple ExecStart=/usr/bin/mpris-proxy [Install] WantedBy=default.target </nowiki>}} Then [[起動]]/[[有効化]] the service with the {{ic|--user}} flag.
このページで使用されているテンプレート:
テンプレート:AUR
(
ソースを閲覧
)
テンプレート:Hc
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:Note
(
ソースを閲覧
)
テンプレート:Pkg
(
ソースを閲覧
)
テンプレート:Tip
(
ソースを閲覧
)
MPRIS
に戻る。
検索
検索
MPRISのソースを表示
話題を追加