|
|
|
@ -54,7 +54,6 @@ class Cast(wx.Frame):
|
|
|
|
|
args=(),
|
|
|
|
|
kwargs={})
|
|
|
|
|
self.m_vlc = Instance()
|
|
|
|
|
self.m_vlc_medialist = self.m_vlc.media_list_new()
|
|
|
|
|
self.m_vlc_listplayer = self.m_vlc.media_list_player_new()
|
|
|
|
|
self.m_chromecast_thr.start()
|
|
|
|
|
self.m_sizer: wx.Sizer = wx.BoxSizer(wx.VERTICAL)
|
|
|
|
@ -347,8 +346,10 @@ class Cast(wx.Frame):
|
|
|
|
|
:param uri str: the link to the video stream
|
|
|
|
|
"""
|
|
|
|
|
media = self.m_vlc.media_new(uri)
|
|
|
|
|
self.m_vlc_medialist.add_media(media)
|
|
|
|
|
self.m_vlc_listplayer.set_media_list(self.m_vlc_medialist)
|
|
|
|
|
medialist = self.m_vlc.media_list_new()
|
|
|
|
|
|
|
|
|
|
medialist.add_media(media)
|
|
|
|
|
self.m_vlc_listplayer.set_media_list(medialist)
|
|
|
|
|
|
|
|
|
|
self.m_sizer.Clear(delete_windows=True)
|
|
|
|
|
self.m_sizer = wx.BoxSizer(wx.VERTICAL)
|
|
|
|
|