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

[Q] "Stream" button #17

Closed
nodiscc opened this issue Nov 16, 2014 · 4 comments
Closed

[Q] "Stream" button #17

nodiscc opened this issue Nov 16, 2014 · 4 comments

Comments

@nodiscc
Copy link
Collaborator

nodiscc commented Nov 16, 2014

Hi, how easy/hard is it to add a Stream button to GUI that passes the video/audio URL to a media player?

I use youtube-dl --get-url http://youtube.com/example | xargs mplayer or vlc in the shell, I imagine this is easy to add with a subprocess call. The part I don't get is how to add a new button that calls this on the first playlist item.

@MrS0m30n3 can you point me to the right part of the code? Thanks
Very nice tool

@MrS0m30n3
Copy link
Owner

If i understand you need a way to stream the URL into VLC for example without downloading the video right? I don't really know if i want to implement this feature. Anyway, if you want to take the first item from the URL list you need something like this on Mainframe.py:

def get_first_item(self):
        return self.url_list.GetValue().split('\n')[0]

But right now i am trying to refactor the code so there is gonna be lot of changes after the refactoring.

@nodiscc
Copy link
Collaborator Author

nodiscc commented Nov 20, 2014

Good @MrS0m30n3 I'll have a look at this once you push the refactored code (else I'll have to to it twice...). Thanks for your help.

@MrS0m30n3
Copy link
Owner

I will probably push the refactored code in 2-3 weeks (don't take my word :P). Then you can make a pull request and we can discuss it there. I will leave this issue open.

@nodiscc
Copy link
Collaborator Author

nodiscc commented Jul 12, 2017

I can stream media from youtube-dl supported sites without problem thanks to mpv, a really clean media player which has youtube-dl integration. Closing.

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

No branches or pull requests

2 participants