Solved strm files - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Video Support (https://forum.kodi.tv/forumdisplay.php?fid=264) +--- Thread: Solved strm files (/showthread.php?tid=329366) |
strm files - angelblue05 - 2018-03-09 Ticket: https://trac.kodi.tv/ticket/17799 I wasn't sure where to post this small issue concerning Kodi Leia. I imported strm files into my Kodi library which is mixed with regular videos. Strm files are no longer working with the option "Play next video automatically". I noticed some changes in Leia, where it seems to be doing something similar to music now, instead of creating a playlist like in Krypton, it calls a special url that points directly to the db entry videodb://tvshows/titles/2/24/169?season=24&tvshowid=2 Because this is sent directly to the video player, it never gets to open the strm file to get the file path from it... That breaks behavior of all strm files imported with that option enabled. I get an error: Quote:16:13:31.645 T:7924 NOTICE: VideoPlayer::OpenFile: videodb://tvshows/titles/2/24/169?season=24&tvshowid=2 When "Play next automatically" is not enabled, strm files work as intended. Is it something that can be fixed? strm files - angelblue05 - 2018-03-11 @Koying Let me know if there's anything more I can do/provide to get this resolved. RE: strm files - Koying - 2018-03-11 There is along-standing issue with subtitle, and I suspect this is related: https://github.com/xbmc/xbmc/pull/12311 If you could provide me with a couple random strm files to random videos, it'll help me test your specific test case. strm files - angelblue05 - 2018-03-11 Any type of strm file does this. To test, I even put a plugin path into the strm file. Nothing gets redirected or called. It really seems as if the video player is trying to play the .strm file directly. If you still need it, I'll be able to provide you a test strm later today. RE: strm files - angelblue05 - 2018-03-12 @Koying Here are the strm files. It gives the error One or more items failed to play, but play fine when play next is disabled. Strm with plugin: https://www.dropbox.com/s/d8wwcs1bgt5wm8s/America%27s%20Next%20Top%20Model%20-%2024x08%20Beauty%20Is%20Social.strm?dl=0 Strm with local path: https://www.dropbox.com/s/gjtrenfawlajgnc/America%27s%20Next%20Top%20Model%20-%2024x09%20Beauty%20Is%20Movement.strm?dl=0 This is what I see with debug enabled + play next disabled: Quote:20:04:18.396 T:14096 DEBUG: CGUIWindowVideoBase::OnPlayMedia T:\TV\America's Next Top Model\Season 24\America's Next Top Model - 24x09 Beauty Is Movement.strmSame strm with play next enabled. CGUIWindowVideoBase::OnPlayMedia is not triggered in this scenario. I hope this helps: Quote:20:01:58.951 T:14096 DEBUG: CPlayerCoreFactory::GetPlayers(videodb://tvshows/titles/2/24/172?season=24&tvshowid=2) RE: strm files - FernetMenta - 2018-03-12 The problem is that CPlaylistPlayer does not recognize db items as playlists. If you play a single item or create a playlist, db fileItems are changed to ones that have the real path. But this can't be done for MediaWindow's listitems. strm files - angelblue05 - 2018-03-12 Well you know best Is there hope is really what I want to know. RE: strm files - Koying - 2018-03-12 Actually, I'm surprised that it ever worked (and have difficulties reproducing). strm files seems considered as playlists (for strange reasons): https://github.com/xbmc/xbmc/blob/master/xbmc/playlists/PlayListFactory.cpp#L138 And playlist cannot be added to playlists... In your case, as it's coming from db, they have "videodb://" urls, so I understand they pass the cut and are included, but they shouldn't be at all afaict RE: strm files - FernetMenta - 2018-03-12 (2018-03-12, 16:10)Koying Wrote: And playlist cannot be added to playlists...Wrong, they get expanded into playlists: https://github.com/xbmc/xbmc/blob/master/xbmc/PlayListPlayer.cpp#L298 If an item is added to an existing playlist, we do this: https://github.com/xbmc/xbmc/blob/d7aea79779ad880f0232f942768f24cd63205baf/xbmc/video/windows/GUIWindowVideoBase.cpp#L546 But for listitems this can't be done. It's a hack anyway btw. Solutiuon: videodb needs to set dynPath and playlistplayer needs to look at dynpath too. strm files - angelblue05 - 2018-03-12 Well I thought it was a bug, because this used to work fine prior to Leia. But now I understand that it was working because of hacks/workaround. Awesome, so there might be a workable solution, that's great. I'd be forever grateful if this worked again. And would it also allow for plugin:// contained inside strm to resolve to it's final path as well? strm files - Koying - 2018-03-13 @fernet Well, I tested with some strm (not from DB, so unrelated to videodb) with "play next" and it just didn't work for me. Playback stopped after the first because the others were not enqueued. RE: strm files - FernetMenta - 2018-03-13 (2018-03-13, 09:52)Koying Wrote: @fernet Well, I tested with some strm (not from DB, so unrelated to videodb) with "play next" and it just didn't work for me. Playback stopped after the first because the others were not enqueued.this is all very inconsistent and hacky. so if you click on a playlist as first item, "play next" is ignored and only this single playlist is queued. Code: if (autoplay && !g_partyModeManager.IsEnabled() && RE: strm files - FernetMenta - 2018-03-14 here is a fix for video strm files: https://github.com/xbmc/xbmc/pull/13648 RE: strm files - angelblue05 - 2018-03-15 Wow that was quick, I would love to test it but I have no idea how to compile Kodi. @Koying Thank you so much for fixing this @FernetMenta RE: strm files - jjd-uk - 2018-03-16 The fix has been merged so will be included in tomorrows nightly builds. |