Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPV (idea: python-mpv) #67

Open
silvioprog opened this issue Dec 9, 2022 · 1 comment
Open

MPV (idea: python-mpv) #67

silvioprog opened this issue Dec 9, 2022 · 1 comment

Comments

@silvioprog
Copy link

It would be nice a module like this in Deno: https://github.com/jaseg/python-mpv

Playing video in:

import mpv
player = mpv.MPV(ytdl=True)
player.play('https://youtu.be/DOmdB7D-pUU')
player.wait_for_playback()

and an audio (online radio):

import mpv
player = mpv.MPV()
player.play('http://s1.myradiostream.com:12508/listen.mp3')
player.wait_for_playback()
@eliassjogreen
Copy link

Well, considering the python module already exists you could do the following using my deno_python module:

Playing video in:

import { python } from "https://deno.land/x/python/mod.ts";

const mpv = python.import("mpv");
const player = new mpv.MPV(ytdl=True);
player.play('https://youtu.be/dQw4w9WgXcQ');
player.wait_for_playback();

and an audio (online radio):

import { python } from "https://deno.land/x/python/mod.ts";

const mpv = python.import("mpv");

player = mpv.MPV();
player.play('http://s1.myradiostream.com:12508/listen.mp3')
player.wait_for_playback();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants