Posts: 564
Joined: Nov 2011
Reputation:
10
2019-01-18, 04:02
(This post was last modified: 2019-01-18, 04:04 by R.O.H..)
hi, can someone tell me where I can find the code which starts a video/.strm when I press play in Kodi? In what file is it stored?
Specifically: What does the syntax look like?
Thank you a lot!
3000
Posts: 564
Joined: Nov 2011
Reputation:
10
2019-01-18, 12:02
(This post was last modified: 2019-01-18, 12:02 by R.O.H..)
this should not be so hard to answer.
Please help guys
Posts: 14,208
Joined: Nov 2009
Reputation:
711
Klojum
Lost connection
Posts: 14,208
Is there a fire somewhere, bumping your own thread after 7.5 hours?
Posts: 564
Joined: Nov 2011
Reputation:
10
So, you like to see your posting number go up, I get. DON'T USE ME.
Posts: 564
Joined: Nov 2011
Reputation:
10
so back to topic:
hi, can someone tell me where I can find the code which starts a video/.strm when I press play in Kodi? In what file is it stored?
Specifically: What does the syntax look like?
Thank you a lot!
3000
Posts: 6,255
Joined: Jun 2009
Reputation:
115
da-anda
Team-Kodi Member
Posts: 6,255
you could write a python service that monitors f.e. the "onplaybackstarted" signal and then call your script in the background
Posts: 6,255
Joined: Jun 2009
Reputation:
115
da-anda
Team-Kodi Member
Posts: 6,255
you should be able to do whatever you want in your add-on. But since I'm no python dev, it's better to ask for help in the python add-on development section. Also having a look at our wiki should help to get you going with creating your own add-on
Posts: 9
Joined: Jul 2019
Reputation:
0
2019-07-28, 18:42
(This post was last modified: 2019-07-28, 19:05 by Klojum.)
I found one video about code which starts a video
*REMOVED BY MODERATOR*
I hope can help you
Posts: 834
Joined: Jan 2014
Reputation:
262
xbmc/cores/videoplayer/videoplayer.cpp
Find: void CVideoPlayer::OnStartup()
{
Add your script here.
}