mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 11:24:02 +03:00
add play_rtmpdump_stream()
This commit is contained in:
parent
94b99128a5
commit
6dd119436b
@ -679,7 +679,8 @@ def download_rtmp_url(url, playpath, title, ext, total_size=0, output_dir='.', r
|
||||
return
|
||||
|
||||
if player:
|
||||
launch_player(player, url)
|
||||
from .processor.rtmpdump import play_rtmpdump_stream
|
||||
play_rtmpdump_stream(player, url, playpath)
|
||||
return
|
||||
|
||||
from .processor.rtmpdump import has_rtmpdump_installed, download_rtmpdump_stream
|
||||
|
@ -29,3 +29,7 @@ def download_rtmpdump_stream(url, playpath, title, ext, output_dir='.'):
|
||||
|
||||
subprocess.call(params)
|
||||
return
|
||||
|
||||
def play_rtmpdump_stream(player, url, playpath):
|
||||
os.system("rtmpdump -r '%s' -y '%s' -o - | %s -" % (url, playpath, player))
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user