0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

vlc.media_list_player の画面を基本画面に埋め込む方法

Posted at

目的

vlc.media_list_player の画面を tkinter の基本画面に表示するプログラムです。
イベント処理も含めています。

実行環境

python
tkinter
python-vlc

プログラム

要点のみのコードです。

Media List Player
    Instance = vlc.Instance()
    list_player = Instance.media_list_player_new()
    player = Instance.media_player_new()
    list_player.set_media_player(player)

    if platform.system() == 'Windows':
        player.set_hwnd(frame.winfo_id())
    else:
        player.set_xwindow(frame.GetHandle())

    events = player.event_manager()
    events.event_attach(EventType.MediaPlayerMediaChanged, MediaChanged)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?