Hello. I want to play an IPTV playlist with vlc and python. Evrything is ok, but when I want to change the playlist or play an other file, cannot release the memory used by vlc for playing the playlist:
#importing vlc:
import vlc
#Creating Instance:
i=vlc.Instance("-q")
#Creating media player object:
#media_player=i.media_player_new()
#setting volume of media player to 50
media_player.audio_set_volume(50)
#creating media list from a file and media list player:
media_list=i.media_list_new(["playlist.m3u"])
media_list_player=i.media_list_player_new()
#setting media list and media player object to media list player
media_list_player.set_media_player(media_player)
media_list_player.set_media_list(media_list)
#Evrything is ok until here, but when i want to play the list, memory start to increase.
media_list_player.play()
#trying to release the memory.
#stopping playlist, doesn't work:
media_list_player.stop()
#release the media list player:
media_list_player.release()
#release the media list:
media_list.release()
But not any effect.