Hi,
Im trying to make my own playlist addon but im having a problem with stopping the "video" again when i play one
Code:
def play(url, name):
print '--- Playing "{0}". {1}'.format(url, name)
listitem = xbmcgui.ListItem(path=url, thumbnailImage=iconimage)
listitem.setInfo(type="Video", infoLabels={ "Title": name })
xbmc.Player().play(url, listitem)
this is the kode im using it is playing the addon and everything but i cant seam to go back to my list and play a new video, it just starts the first video i play when i try stop it.
anyone know what im doing wrong?
*EDIT i can post my whole code if needed just let me know
i dont know if it is importend but this is what the log says when i try and "stop" the video
Code:
14:27:48 T:9668 NOTICE: CDVDPlayer::CloseFile()
14:27:48 T:9668 NOTICE: DVDPlayer: waiting for threads to exit
14:27:48 T:8604 NOTICE: CDVDPlayer::OnExit()
14:27:48 T:8604 NOTICE: Closing stream player 1
14:27:48 T:8604 NOTICE: Waiting for audio thread to exit
14:27:48 T:7248 NOTICE: thread end: CDVDPlayerAudio::OnExit()
14:27:48 T:8604 NOTICE: Closing audio device
14:27:48 T:8604 NOTICE: Deleting audio codec
14:27:48 T:8604 NOTICE: Closing stream player 2
14:27:48 T:8604 NOTICE: waiting for video thread to exit
14:27:48 T:1200 NOTICE: thread end: video_thread
14:27:48 T:8604 NOTICE: deleting video codec
14:27:48 T:8604 NOTICE: DXVA::CDecoder::Close - closing decoder
14:27:48 T:8604 NOTICE: DXVA::Close - closing decoder context
14:27:48 T:9668 NOTICE: DVDPlayer: finished waiting
14:27:48 T:8560 NOTICE: Thread LanguageInvoker start, auto delete: false
14:27:48 T:8560 NOTICE: -->Python Interpreter Initialized<--
14:27:48 T:9668 NOTICE: CDVDPlayer::CloseFile()
14:27:48 T:9668 NOTICE: DVDPlayer: waiting for threads to exit
14:27:48 T:9668 NOTICE: DVDPlayer: finished waiting
14:27:48 T:9668 NOTICE: CDVDPlayer::CloseFile()
14:27:48 T:9668 NOTICE: DVDPlayer: waiting for threads to exit
14:27:48 T:9668 NOTICE: DVDPlayer: finished waiting
14:27:48 T:1092 NOTICE: Thread JobWorker start, auto delete: true
14:27:48 T:9668 ERROR: Control 50 in window 10025 has been asked to focus, but it can't
14:27:48 T:8560 NOTICE: Mode: 50
14:27:48 T:8560 NOTICE: URL: http://dr01-lh.akamaihd.net/i/dr01_0@147054/master.m3u8
14:27:48 T:8560 NOTICE: Name: [COLOR white]1[/COLOR] - [COLOR skyblue]Dr 1[/COLOR]
14:27:48 T:8560 NOTICE: --- Playing "http://dr01-lh.akamaihd.net/i/dr01_0@147054/master.m3u8". [COLOR white]1[/COLOR] - [COLOR skyblue]Dr 1[/COLOR]
14:27:48 T:6324 NOTICE: Thread BackgroundLoader start, auto delete: false
14:27:48 T:9668 NOTICE: DVDPlayer: Opening: http://dr01-lh.akamaihd.net/i/dr01_0@147054/master.m3u8
14:27:48 T:9668 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:27:48 T:8412 NOTICE: Thread DVDPlayer start, auto delete: false
14:27:48 T:8412 NOTICE: Creating InputStream
14:27:48 T:3320 NOTICE: Thread FileCache start, auto delete: false
14:27:48 T:8412 NOTICE: Creating Demuxer
14:27:48 T:8412 ERROR: CCurlFile::GetCookies - invalid cookie: '#HttpOnly_.blacktvlive.in TRUE / FALSE 1614498316 vs '
14:27:48 T:8412 ERROR: CCurlFile::GetCookies - invalid cookie: '#HttpOnly_.xbmc.org TRUE / FALSE 1487957099 __cfdui '
14:27:48 T:8412 ERROR: CCurlFile::GetCookies - invalid cookie: '#HttpOnly_.ibrod.tv TRUE / FALSE 1488354316 __ '
14:27:48 T:8412 ERROR: CCurlFile::GetCookies - invalid cookie: '#HttpOnly_.xbmc.org TRUE / FALSE 1487957099 _ '
14:27:48 T:8412 ERROR: CCurlFile::GetCookies - invalid cookie: '#HttpOnly_.usachannels.tv TRUE / FALSE 1488354392 _ '
14:27:48 T:8412 ERROR: CCurlFile::GetCookies - invalid cookie: '.rg TRUE / FALSE 1487957099 __ '
14:27:49 T:8412 NOTICE: Opening stream: 0 source: 256
14:27:49 T:8412 NOTICE: Creating video codec with codec id: 28
14:27:49 T:8412 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
14:27:49 T:8412 NOTICE: Creating video thread
14:27:49 T:8412 NOTICE: Opening stream: 1 source: 256
14:27:49 T:8412 NOTICE: Finding audio codec for: 86018
14:27:49 T:8420 NOTICE: Thread DVDPlayerVideo start, auto delete: false
14:27:49 T:8420 NOTICE: running thread: video_thread
14:27:49 T:8412 NOTICE: Creating audio thread
14:27:49 T:6328 NOTICE: Thread DVDPlayerAudio start, auto delete: false
14:27:49 T:6328 NOTICE: running thread: CDVDPlayerAudio::Process()
14:27:49 T:8420 NOTICE: CDVDVideoCodecFFmpeg::GetFormat - Creating DXVA(1280x720)
14:27:49 T:6328 NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 48000, no pass-through)
14:27:49 T:6328 NOTICE: CDVDPlayerAudio::OutputPacket duplicate 1 packets of duration 21
14:27:49 T:8420 NOTICE: fps: 25.000000, pwidth: 1280, pheight: 720, dwidth: 1280, dheight: 720
14:27:49 T:8420 NOTICE: Display resolution DESKTOP : 1920x1080@ 59.94 - Full Screen (16)
14:27:49 T:8420 NOTICE: D3D: rendering method forced to DXVA processor
14:27:49 T:9668 WARNING: CWinRenderer::UpdateVideoFilter - chosen scaling method 1 is not supported by renderer
14:27:49 T:6328 NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 21
14:27:51 T:8420 NOTICE: Previous line repeats 2 times.
14:27:51 T:8420 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer