Search found 11 matches

Go to advanced search

by GuitarExtended
13 Jun 2013 10:04
Forum: Development around libVLC
Topic: Proper way of changing the media ?
Replies: 9
Views: 4031

Re: Proper way of changing the media ?

Hi, Problem solved ! I didn't know I could make an explicit mainloop outside cherrypy. I have replaced cherrypy.quickstart(something) by cherrypy.tree.mount(something) cherrypy.engine.start() to be able to enter a mainloop i put immediately after : while 1: time.sleep(1) if flag==1: Player.loadsub()...
by GuitarExtended
11 Jun 2013 22:07
Forum: Development around libVLC
Topic: Proper way of changing the media ?
Replies: 9
Views: 4031

Re: Proper way of changing the media ?

Hi Olivier, I'm still confused... :( In my end_reached method I call a method of my cherrypy site (site.load_sub()), in which I call the method from my VLC object (VLC_player.loadSub()). This doesn't work. Perhaps this is because the VLC_player and site objects are instanciated in the same thread ? ...
by GuitarExtended
03 May 2013 09:28
Forum: Development around libVLC
Topic: Proper way of changing the media ?
Replies: 9
Views: 4031

Re: Proper way of changing the media ?

Hi Olivier, end_reached() calls loadSub(). def end_reached(self): print("End reached!") VLC_player.loadSub() VLC_player is an instance of my MediaPlayer class. My whole code looks like this : (Declarations) (some functions) def end_reached() ... class website(object) ... class MediaPlayer(...
by GuitarExtended
02 May 2013 16:12
Forum: Development around libVLC
Topic: Proper way of changing the media ?
Replies: 9
Views: 4031

Re: Proper way of changing the media ?

Hi, I've tried what Olivier suggested, but i'm stuck with a seemingly obscure problem. I use the "endreached" event handler to load sub-elements in a playlist. I can trigger the event indefinitely (by trying many different playlist one after the other) as long as the method called doesn't ...
by GuitarExtended
11 Apr 2013 11:41
Forum: Development around libVLC
Topic: Proper way of changing the media ?
Replies: 9
Views: 4031

Re: Proper way of changing the media ?

Hi Olivier,
Thank you very much for your reply. After running into more problems (stuck in waiting loop, etc.) I realized that I indeed needed to create a class. I haven't had time to change my code yet, so your advice is very timely and most welcome !

Cheers.
by GuitarExtended
03 Apr 2013 20:58
Forum: Development around libVLC
Topic: Proper way of changing the media ?
Replies: 9
Views: 4031

Re: Proper way of changing the media ?

This topic doesn't stir much interest it seems, but just for future reference in case somebody runs into this kind of problem, I solved this problem by assigning the event_manager() to a global variable. It seems like Python's garbage collection got rid of the event manager after entering the main l...
by GuitarExtended
28 Mar 2013 11:08
Forum: Development around libVLC
Topic: Proper way of changing the media ?
Replies: 9
Views: 4031

Proper way of changing the media ?

Hi, I use libVLC with the python bindings. Thanks to the help of someone in this forum I managed to get it to play a webradio. It requires playing the playlist first, waiting for it to finish, and then playing the first subitem. This works fine right now. The problem I have is when I want to change ...
by GuitarExtended
27 Mar 2013 11:24
Forum: Development around libVLC
Topic: LibVLC can't read stream from network
Replies: 7
Views: 5101

Re: LibVLC can't read stream from network

Hurrah, it's working ! Thank you very much for your help. I paste my code below for future readers because I haven't seen many examples for Python bindings on the web. import vlc import time url="http://tvradio.ert.gr/radio/liveradio/asx/net.asx" global flag flag = 0 def end_reached(self):...
by GuitarExtended
26 Mar 2013 18:24
Forum: Development around libVLC
Topic: LibVLC can't read stream from network
Replies: 7
Views: 5101

Re: LibVLC can't read stream from network

Hi, i'm sorry, i don't think i understand. I try a few things to no avail. Do I need to use media_list_player, or would media_player be enough ? Do I need to put the url in a media_list, or simply in a media ? The "finished" event doesn't seem to exist (not with this name at least). When i...
by GuitarExtended
26 Mar 2013 09:04
Forum: Development around libVLC
Topic: LibVLC can't read stream from network
Replies: 7
Views: 5101

Re: LibVLC can't read stream from network

Hi, thank you first of all for your reply. I have tried with these 2 urls : http://tvradio.ert.gr/radio/liveradio/asx/trito.asx http://www.tv-radio.com/station/fip_mp3/fip_mp3-128k.m3u If i simply use ".set_media(url)' on the MediaPlayer, it won't play. What do I need to do ? Create a MediaList...
by GuitarExtended
25 Mar 2013 22:34
Forum: Development around libVLC
Topic: LibVLC can't read stream from network
Replies: 7
Views: 5101

LibVLC can't read stream from network

Hi, This is my first post here. I'm new to libVLC. I want to use it with Python, using the bindings with vlc.py. I followed this example (the one with the wrapper classes) : http://git.videolan.org/?p=vlc/bindings/python.git;a=blob;f=README It all works fine when I try to play a local file, but it d...

Go to advanced search