Jump to content
Posted

Hello,

I want to send Kodi via PSE action Module to Pause or Play the movie.

Her is my File but it doesn´t work. I think that file is wrong. Can anybody help me with the file?

Thanks in advance...

I write in my action file:

POST:http://192.168.xx.xx:8080/jsonrpc -u kodi:password -d {"jsonrpc":"2.0","method":"Player.PlayPause","params":{"playerid":0,"play":false},"id":1}

  • Replies 21
  • Views 1.7k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Dreamaxx Premium Cinema
    Dreamaxx Premium Cinema

    I test a little bit and Matts pseaction file is running perfect. My fault, I test first with the default Sequence and that doesn´t work. If I test it with a new Sequence everything is running perfekt.

  • I think that the file you want to edit is DialogNotification.xml.  

Posted Images

Featured Replies

  • PreShow Supporter

Is there a reason why you want to use an action file to play/pause and not the remote (or phone/keyboard)?

  • Author

I would like to automatically pause the player after a specified time and start it again after a certain time.

I do it a few years ago. but since Kodi 18 I think the http funktion doesn´t work. But I think there is a chance.

 

  • Author

Basically, I had built in a 10 minute break for longer films. A notification was displayed, the projector was switched to sleep mode and the light was dimmed slightly. It would be a shame if it didn't work anymore. Actually, it can't be that difficult to send a command to Kodi via PSE.

  • Administrator

The code that you want is something along the lines of:

sleep://3600000

http://username:password@ip#:8080/jsonrpc
{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"playpause"},"id":0}

sleep://600000

http://username:password@ip#:8080/jsonrpc
{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"playpause"},"id":0}

Add other functions a you want. 

Make sure you have your system set up to allow this in settings > services > control.

  • Author

Hello, Now I finally got around to testing the script.

I put it in front of the feature in PSE as a script.pseaction file. If I go to action and test in edit sequence, it shows that everything is ok.

But if I let it run with a film, the pause doesn't work. Nothing happens.

 

I have enabled “Allow control via http” in Kodi. Have I perhaps forgotten something? Have you an Idea?

 

Another question would be, is it possible to display a reference to the break as an image.jpg before the break? Something Like this:

sleep://3600000

http://username:password@ip#:8080/jsonrpc
{"jsonrpc":"2.0","method":"GUI.ShowNotification","params": {"image":"image://test//hdr10.png", "displaytime":5000 },"id":"0}

sleep://2000

http://username:password@ip#:8080/jsonrpc
{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"playpause"},"id":0}

sleep://600000

http://username:password@ip#:8080/jsonrpc
{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"playpause"},"id":0}
  • Author

I test a little bit and Matts pseaction file is running perfect. My fault, I test first with the default Sequence and that doesn´t work. If I test it with a new Sequence everything is running perfekt. I can also show a notification, but if anyone has an idea, how to show a image.jpg, I´m absolutely happy.😃


Here is the pseaction Test with Notification before the Pause:

sleep://20000

http://kodi:kodi@192.0.0.0:8080/jsonrpc
{"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"Pause","message":"10 Minuten","displaytime":7000},"id":0}

sleep://2000

http://kodi:kodi@192.0.0.0:8080/jsonrpc
{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"playpause"},"id":0}

sleep://20000

http://kodi:kodi@192.0.0.0:8080/jsonrpc
{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"playpause"},"id":0}

 

  • Author
Can someone at least tell me where I can find the KaiDialogToast.xml? Or, if this doesn't exist, as in my case, tell me what the xml is called with which I can influence the GUI.ShowNotification.

In any case, KaiDialogToast.xml cannot be found under: \\SHIELD\internal\Android\data\org.xbmc.kodi\files\.kodi\addons\skin.estuary\xml.

Thank you
  • Administrator

Are you trying to show an image for the intermission with GUI.ShowNotification?  If so, I think that the only image in the notification is the icon.  

Ah okay, thanks for this Info. And where can I find the Image and what‘s the name of the Image? 

  • 9 months later...
  • Author

Hello,

This script worked perfectly about a year ago and faded in the pause in longer films.

#Movie Pause

http://kodi:kodi@192.xxx.xxx.xx:8080/jsonrpc

{"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"Pause","message":"10 Minutes","displaytime":8000},"id":0}

I hadn't used it for a while and wanted to use it again in an action file in the Function for Middle Chapter, but it no longer shows up. Is it possible that something has changed in PSE or Kodi with an update that does not allow the display? If I activate the file in the test it works and shows me the notification. I think it's now running in the background in Kodi when playing a movie.

  • Administrator

Do you have a skin that disables the notification? If you use a skin that hides the loading icon it also removes the notification.

That's my best guess as to what's happening. Switch to the default Kodi skin and see if it works.

  • Author

I had already thought of that too. I got Skin Estuary from the downloads section here. The loading circle when buffering is actually not displayed. I'll try it.

The funny thing is that sometimes before the audio format bumper and after the audio format bumper the attached image pops up for a very quick look. that is not hidden then. strange right? PSE is loading something or what could it be?

IMG_7202.JPEG

  • Administrator

The audio format module shows videos using the youtube addon if you don't have a local video for that format. I'd need to see a log and your sequence file to tell more.

  • Author

I sent the log and the sequence file via PM.

Note: I had deactivated YouTube adon because I didn't need it and had assigned a video file for the audio format bumper. Then at this point pse stopped in front of the audio format bumper and wanted youtube adon to be installed, otherwise it wouldn't be executable.

  • Author

Thank you in advance.

I have to say that if the plugin runs without errors, it leaves nothing to be desired, the function with the action sequence in the middle and last chapter is brilliant. Thank you for your work.🙏

Create an account or sign in to comment

Topics