python-vlc and http streaming

This forum is about all development around libVLC.
poloizovbv
New Cone
New Cone
Posts: 1
Joined: 13 Aug 2016 09:27

python-vlc and http streaming

Postby poloizovbv » 13 Aug 2016 09:43

hello, i use python-vlc with pyqt5 for fun project.
I try to catch vlc.EventType.MediaPlayerEndReached on ending http stream from twitch. in callback method i try to stop playing, but i get loop in vlc with HTTP errors and cant break it.
what can I do with this problem?

Code: Select all

self.vlc = vlc.Instance("") # media player object self.mediaplayer = self.vlc.media_player_new() # EndCatcher self.event_manager = self.mediaplayer.event_manager() self.event_manager.event_attach(vlc.EventType.MediaPlayerEndReached, self.http_error, None) .... @vlc.callbackmethod def http_error(self,event, data): self.mediaplayer.stop() app.tray.showMessage("Twitch Player", "Channel is offline", 10000) return 0
error loop

Code: Select all

[00007fc598001858] http access error: error: HTTP/1.1 404 Not Found [00007fc598001858] http access error: error: HTTP/1.1 404 Not Found [00007fc598001858] access_mms access error: error: HTTP/1.1 404 Not Found [00007fc5dc004348] core stream error: no suitable access module for `http://video-edge-7ea5dc.sjc01.hls.ttvnw.net/hls-8361d4/wisptheone_22805506976_499820826/chunked/index-live.m3u8?token=id=4463352493398758422,bid=22805506976,exp=1471160260,node=video-edge-7ea5dc.sjc01,nname=video-edge-7ea5dc.sjc01,fmt=chunked&sig=03fdbbb644accd4b473a7c826dd65954cd174df6' [00007fc5dc004348] httplive stream error: reloading playlist failed [00007fc598000ad8] http access error: error: HTTP/1.1 404 Not Found [00007fc598000ad8] http access error: error: HTTP/1.1 404 Not Found [00007fc598000ad8] access_mms access error: error: HTTP/1.1 404 Not Found [00007fc5dc004348] core stream error: no suitable access module for `http://video-edge-7ea5dc.sjc01.hls.ttvnw.net/hls-8361d4/wisptheone_22805506976_499820826/chunked/index-live.m3u8?token=id=4463352493398758422,bid=22805506976,exp=1471160260,node=video-edge-7ea5dc.sjc01,nname=video-edge-7ea5dc.sjc01,fmt=chunked&sig=03fdbbb644accd4b473a7c826dd65954cd174df6' [00007fc5dc004348] httplive stream error: reloading playlist failed [00007fc598000ad8] http access error: error: HTTP/1.1 404 Not Found [00007fc598000ad8] http access error: error: HTTP/1.1 404 Not Found [00007fc598000ad8] access_mms access error: error: HTTP/1.1 404 Not Found
thanks all for help :)

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 23 guests