Playback behavior question (Emby for Kodi dev)

Sorry if I chose the wrong category.

Working on a new playback approach for Emby for Kodi that does not involve plugin paths.

Everything works well, but there’s one thing that causes issue on CE only. LE doesn’t seem to behave the same way.

When calling xbmc.Player().play() to play a playlist, OnStop is triggered? Kodi on other platforms do not trigger OnStop. Why is this happening and can it be avoided?

The first line is when xbmc.Player().play() is called, while there’s a video already playing.

2019-02-20 22:56:10.359 T:3231740784 NOTICE: EMBY.webservice -> [ playback starting/0 ] 2019-02-20 22:56:10.397 T:3122598768 NOTICE: CVideoPlayer::OnExit() 2019-02-20 22:56:10.397 T:3122598768 NOTICE: VideoPlayer: eof, waiting for queues to empty 2019-02-20 22:56:10.397 T:3122598768 NOTICE: Closing stream player 2 2019-02-20 22:56:10.397 T:3122598768 NOTICE: waiting for video thread to exit 2019-02-20 22:56:10.421 T:4092121008 NOTICE: VideoPlayer::OpenFile: http://path/to/file

Thanks for your time!

Ok, it seems to only happen when there’s a resume point, I’ll do more investigation. I guess this topic can be closed.