Announcement

Collapse
No announcement yet.

How to play an audio playlist from an Event

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • spud
    replied
    Originally posted by happnatious1 View Post
    Mar-31 11:17:00 PM Kodi DEBUG <--192.168.42.62:9090 { "id": 112, "jsonrpc": "2.0", "result": "pong" }
    Mar-31 11:17:00 PM Kodi DEBUG -->192.168.42.62:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 112 }
    Mar-31 11:17:00 PM Kodi DEBUG <--192.168.42.61:9090 { "id": 112, "jsonrpc": "2.0", "result": "pong" }
    Mar-31 11:17:00 PM Kodi DEBUG -->192.168.42.61:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 112 }
    Mar-31 11:17:00 PM Kodi DEBUG <--192.168.42.8:9090 { "id": 112, "jsonrpc": "2.0", "result": "pong" }
    Mar-31 11:17:00 PM Kodi DEBUG -->192.168.42.8:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 112 }
    Mar-31 11:16:00 PM Kodi DEBUG <--192.168.42.62:9090 { "id": 111, "jsonrpc": "2.0", "result": "pong" }
    Mar-31 11:16:00 PM Kodi DEBUG -->192.168.42.62:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 111 }
    Mar-31 11:16:00 PM Kodi DEBUG <--192.168.42.61:9090 { "id": 111, "jsonrpc": "2.0", "result": "pong" }
    Mar-31 11:16:00 PM Kodi DEBUG -->192.168.42.61:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 111 }
    Mar-31 11:16:00 PM Kodi DEBUG <--192.168.42.8:9090 { "id": 111, "jsonrpc": "2.0", "result": "pong" }
    Mar-31 11:16:00 PM Kodi DEBUG -->192.168.42.8:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 111 }
    Mar-31 11:15:28 PM Z-Wave Device: 1st Floor Porch Temperature Set to 51.26 (F)
    Mar-31 11:15:25 PM HSBuddy Cleanup thread removed 1255 entries from device history.
    Mar-31 11:15:14 PM Kodi ERROR System.Exception: { "code": -32602, "data": { "details": null }, "message": "Invalid params." } at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSu ccess (System.Threading.Tasks.Task task) <0x408cc420 + 0x000df> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSucc ess (System.Threading.Tasks.Task task) <0x408cc370 + 0x0009f> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x407e4980 + 0x0002b> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () <0x408085b0 + 0x00017> in :0 at HSPI_Kodi.KodiPlayer+d__120.MoveNext () <0x408832d0 + 0x0049b> in :0
    Mar-31 11:15:14 PM Kodi DEBUG <--192.168.42.8:8080 { "error": { "code": -32602, "data": { "details": null }, "message": "Invalid params." }, "id": 240, "jsonrpc": "2.0" }
    Mar-31 11:15:14 PM Kodi DEBUG -->192.168.42.8:8080 { "jsonrpc": "2.0", "method": "Files.PrepareDownload", "params": { "path": "" }, "id": 240 }
    Mar-31 11:15:14 PM Kodi DEBUG <--192.168.42.8:8080 { "id": 239, "jsonrpc": "2.0", "result": { "item": { "fanart": "", "genre": [ "Other" ], "id": 3637, "label": "Outhouse", "lyrics": "", "thumbnail": "image://%2fhome%2fwilliam%2fMusic%2fJimmie%27s%20Chicken%20Shack%2fP ushing%20the%20Salmanilla%20Envelope%2fFolder.jpg/", "title": "Outhouse", "type": "song" } } }
    Mar-31 11:15:14 PM Kodi DEBUG -->192.168.42.8:8080 { "jsonrpc": "2.0", "method": "Player.GetItem", "params": { "playerid": 0, "properties": [ "lyrics", "mpaa", "thumbnail", "genre", "title", "tvshowid", "showtitle", "season", "episode", "fanart", "streamdetails" ] }, "id": 239 }
    Mar-31 11:15:14 PM Kodi DEBUG <--192.168.42.8:8080 { "id": 238, "jsonrpc": "2.0", "result": { "canrepeat": true, "canshuffle": true, "repeat": "off", "shuffled": false, "speed": 1 } }
    Mar-31 11:15:14 PM Kodi DEBUG -->192.168.42.8:8080 { "jsonrpc": "2.0", "method": "Player.GetProperties", "params": { "playerid": 0, "properties": [ "canrepeat", "repeat", "canshuffle", "shuffled", "speed" ] }, "id":
    this problem has been fixed in version 3.0.1.5 available in the beta section of the updater

    Leave a comment:


  • happnatious1
    replied
    Mar-31 11:17:00 PM Kodi DEBUG <--192.168.42.62:9090 { "id": 112, "jsonrpc": "2.0", "result": "pong" }
    Mar-31 11:17:00 PM Kodi DEBUG -->192.168.42.62:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 112 }
    Mar-31 11:17:00 PM Kodi DEBUG <--192.168.42.61:9090 { "id": 112, "jsonrpc": "2.0", "result": "pong" }
    Mar-31 11:17:00 PM Kodi DEBUG -->192.168.42.61:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 112 }
    Mar-31 11:17:00 PM Kodi DEBUG <--192.168.42.8:9090 { "id": 112, "jsonrpc": "2.0", "result": "pong" }
    Mar-31 11:17:00 PM Kodi DEBUG -->192.168.42.8:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 112 }
    Mar-31 11:16:00 PM Kodi DEBUG <--192.168.42.62:9090 { "id": 111, "jsonrpc": "2.0", "result": "pong" }
    Mar-31 11:16:00 PM Kodi DEBUG -->192.168.42.62:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 111 }
    Mar-31 11:16:00 PM Kodi DEBUG <--192.168.42.61:9090 { "id": 111, "jsonrpc": "2.0", "result": "pong" }
    Mar-31 11:16:00 PM Kodi DEBUG -->192.168.42.61:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 111 }
    Mar-31 11:16:00 PM Kodi DEBUG <--192.168.42.8:9090 { "id": 111, "jsonrpc": "2.0", "result": "pong" }
    Mar-31 11:16:00 PM Kodi DEBUG -->192.168.42.8:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 111 }
    Mar-31 11:15:28 PM Z-Wave Device: 1st Floor Porch Temperature Set to 51.26 (F)
    Mar-31 11:15:25 PM HSBuddy Cleanup thread removed 1255 entries from device history.
    Mar-31 11:15:14 PM Kodi ERROR System.Exception: { "code": -32602, "data": { "details": null }, "message": "Invalid params." } at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSu ccess (System.Threading.Tasks.Task task) <0x408cc420 + 0x000df> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSucc ess (System.Threading.Tasks.Task task) <0x408cc370 + 0x0009f> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x407e4980 + 0x0002b> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () <0x408085b0 + 0x00017> in :0 at HSPI_Kodi.KodiPlayer+d__120.MoveNext () <0x408832d0 + 0x0049b> in :0
    Mar-31 11:15:14 PM Kodi DEBUG <--192.168.42.8:8080 { "error": { "code": -32602, "data": { "details": null }, "message": "Invalid params." }, "id": 240, "jsonrpc": "2.0" }
    Mar-31 11:15:14 PM Kodi DEBUG -->192.168.42.8:8080 { "jsonrpc": "2.0", "method": "Files.PrepareDownload", "params": { "path": "" }, "id": 240 }
    Mar-31 11:15:14 PM Kodi DEBUG <--192.168.42.8:8080 { "id": 239, "jsonrpc": "2.0", "result": { "item": { "fanart": "", "genre": [ "Other" ], "id": 3637, "label": "Outhouse", "lyrics": "", "thumbnail": "image://%2fhome%2fwilliam%2fMusic%2fJimmie%27s%20Chicken%20Shack%2fP ushing%20the%20Salmanilla%20Envelope%2fFolder.jpg/", "title": "Outhouse", "type": "song" } } }
    Mar-31 11:15:14 PM Kodi DEBUG -->192.168.42.8:8080 { "jsonrpc": "2.0", "method": "Player.GetItem", "params": { "playerid": 0, "properties": [ "lyrics", "mpaa", "thumbnail", "genre", "title", "tvshowid", "showtitle", "season", "episode", "fanart", "streamdetails" ] }, "id": 239 }
    Mar-31 11:15:14 PM Kodi DEBUG <--192.168.42.8:8080 { "id": 238, "jsonrpc": "2.0", "result": { "canrepeat": true, "canshuffle": true, "repeat": "off", "shuffled": false, "speed": 1 } }
    Mar-31 11:15:14 PM Kodi DEBUG -->192.168.42.8:8080 { "jsonrpc": "2.0", "method": "Player.GetProperties", "params": { "playerid": 0, "properties": [ "canrepeat", "repeat", "canshuffle", "shuffled", "speed" ] }, "id":

    Leave a comment:


  • spud
    replied
    can you set the log level to debug, please.

    Leave a comment:


  • happnatious1
    replied
    Mar-31 10:17:29 PM Kodi ERROR System.Exception: { "code": -32602, "data": { "details": null }, "message": "Invalid params." } at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSu ccess (System.Threading.Tasks.Task task) <0x408cc420 + 0x000df> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSucc ess (System.Threading.Tasks.Task task) <0x408cc370 + 0x0009f> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x407e4980 + 0x0002b> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () <0x408085b0 + 0x00017> in :0 at HSPI_Kodi.KodiPlayer+d__120.MoveNext () <0x408832d0 + 0x0049b> in :0
    Mar-31 10:15:25 PM HSBuddy Cleanup thread removed 564 entries from device history.
    Mar-31 10:15:00 PM Log Info The log database is currently 45.71MB in size.
    Mar-31 10:15:00 PM Event Running script in background:
    Mar-31 10:15:00 PM Event Event Trigger "Alarm Clock Check Alarm"
    Mar-31 10:14:52 PM Kodi ERROR System.Exception: { "code": -32602, "data": { "details": null }, "message": "Invalid params." } at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSu ccess (System.Threading.Tasks.Task task) <0x408cc420 + 0x000df> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSucc ess (System.Threading.Tasks.Task task) <0x408cc370 + 0x0009f> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x407e4980 + 0x0002b> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () <0x408085b0 + 0x00017> in :0 at HSPI_Kodi.KodiPlayer+d__120.MoveNext () <0x408832d0 + 0x0049b> in :0
    Mar-31 10:12:17 PM Kodi ERROR System.Exception: { "code": -32602, "data": { "details": null }, "message": "Invalid params." } at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSu ccess (System.Threading.Tasks.Task task) <0x408cc420 + 0x000df> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSucc ess (System.Threading.Tasks.Task task) <0x408cc370 + 0x0009f> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x407e4980 + 0x0002b> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () <0x408085b0 + 0x00017> in :0 at HSPI_Kodi.KodiPlayer+d__120.MoveNext () <0x408832d0 + 0x0049b> in :0
    Mar-31 10:12:17 PM Device Control Device: media Homeseer Status to Play/Pause (-3) by/from: CAPI Control Handler
    Mar-31 10:12:01 PM Kodi ERROR System.Exception: { "code": -32602, "data": { "details": null }, "message": "Invalid params." } at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSu ccess (System.Threading.Tasks.Task task) <0x408cc420 + 0x000df> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSucc ess (System.Threading.Tasks.Task task) <0x408cc370 + 0x0009f> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x407e4980 + 0x0002b> in :0 at Microsoft.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () <0x408085b0 + 0x00017> in :0 at HSPI_Kodi.KodiPlayer+d__120.MoveNext () <0x408832d0 + 0x0049b> in :0
    Mar-31 10:12:01 PM Device Control Device: media Homeseer Status to Play/Pause (-3) by/from: CAPI Control Handler

    Leave a comment:


  • happnatious1
    replied
    Trying to get some control of the Kodi plugin from HSTouch. triggering this causes an exception.
    Attached Files

    Leave a comment:


  • happnatious1
    replied
    interesting, thumbnails for music would not display until I added a movie library on that kodi instance.

    Leave a comment:


  • happnatious1
    replied
    Not a big deal, I can use the other method. just trying to understand how the plug-in works.

    Thanks for your help.

    Leave a comment:


  • spud
    replied
    Originally posted by happnatious1 View Post
    I have only created one playlist so far and added it to favorites. I'll create some more and give it a try.


    Mar-27 9:58:49 AM Kodi DEBUG <--192.168.42.8:8080 { "id": 236, "jsonrpc": "2.0", "result": { "favourites": [ { "title": "metal.m3u", "type": "window" } ], "limits": { "end": 1, "start": 0, "total": 1 } } }
    Mar-27 9:58:49 AM Kodi DEBUG -->192.168.42.8:8080 { "jsonrpc": "2.0", "method": "Favourites.GetFavourites", "params": { "properties": [ "path" ] }, "id": 236 }
    Mar-27 9:58:45 AM Kodi DEBUG <--192.168.42.8:8080 { "id": 235, "jsonrpc": "2.0", "result": { "favourites": [ { "title": "metal.m3u", "type": "window" } ], "limits": { "end": 1, "start": 0, "total": 1 } } }
    Mar-27 9:58:45 AM Kodi DEBUG -->192.168.42.8:8080 { "jsonrpc": "2.0", "method": "Favourites.GetFavourites", "params": { "properties": [ "path" ] }, "id": 235 }
    Mar-27 9:58:33 AM Kodi DEBUG <--192.168.42.61:9090 { "id": 928, "jsonrpc": "2.0", "result": "pong" }
    Mar-27 9:58:33 AM Kodi DEBUG -->192.168.42.61:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 928 }
    Mar-27 9:58:33 AM Kodi DEBUG <--192.168.42.62:9090 { "id": 928, "jsonrpc": "2.0", "result": "pong" }
    Mar-27 9:58:33 AM Kodi DEBUG -->192.168.42.62:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 928 }
    Mar-27 9:58:33 AM Kodi DEBUG <--192.168.42.8:9090 { "id": 928, "jsonrpc": "2.0", "result": "pong" }
    Mar-27 9:58:33 AM Kodi DEBUG -->192.168.42.8:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 928 }
    I see the problem, your favourite has the type "window" which means that when you open this favourite in Kodi, it opens the screen where you can see the content of your playlist, but it does not start to play it.
    The plug-in "Player Open Media" action can only open favourite of type "File".

    Why do you try to use the favourite in the first place to play the playlist from Kodi? You said it worked when using the "Player Open Media" action with the m3u file as explained in this thread, so why don't use that?

    Leave a comment:


  • happnatious1
    replied
    I have only created one playlist so far and added it to favorites. I'll create some more and give it a try.


    Mar-27 9:58:49 AM Kodi DEBUG <--192.168.42.8:8080 { "id": 236, "jsonrpc": "2.0", "result": { "favourites": [ { "title": "metal.m3u", "type": "window" } ], "limits": { "end": 1, "start": 0, "total": 1 } } }
    Mar-27 9:58:49 AM Kodi DEBUG -->192.168.42.8:8080 { "jsonrpc": "2.0", "method": "Favourites.GetFavourites", "params": { "properties": [ "path" ] }, "id": 236 }
    Mar-27 9:58:45 AM Kodi DEBUG <--192.168.42.8:8080 { "id": 235, "jsonrpc": "2.0", "result": { "favourites": [ { "title": "metal.m3u", "type": "window" } ], "limits": { "end": 1, "start": 0, "total": 1 } } }
    Mar-27 9:58:45 AM Kodi DEBUG -->192.168.42.8:8080 { "jsonrpc": "2.0", "method": "Favourites.GetFavourites", "params": { "properties": [ "path" ] }, "id": 235 }
    Mar-27 9:58:33 AM Kodi DEBUG <--192.168.42.61:9090 { "id": 928, "jsonrpc": "2.0", "result": "pong" }
    Mar-27 9:58:33 AM Kodi DEBUG -->192.168.42.61:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 928 }
    Mar-27 9:58:33 AM Kodi DEBUG <--192.168.42.62:9090 { "id": 928, "jsonrpc": "2.0", "result": "pong" }
    Mar-27 9:58:33 AM Kodi DEBUG -->192.168.42.62:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 928 }
    Mar-27 9:58:33 AM Kodi DEBUG <--192.168.42.8:9090 { "id": 928, "jsonrpc": "2.0", "result": "pong" }
    Mar-27 9:58:33 AM Kodi DEBUG -->192.168.42.8:9090 { "jsonrpc": "2.0", "method": "JSONRPC.Ping", "params": {}, "id": 928 }

    Leave a comment:


  • spud
    replied
    could you post the debug logs you get when you try to build this event.

    can you select other favourites, or does the problem happen for all of them?

    Leave a comment:


  • happnatious1
    replied
    Originally posted by spud View Post
    not sure I understand, you are now trying to use the "Player Open Media" action with media type = Favourite?
    what do you mean by the plugin wont let you select it?
    The following test event will show my playlist in the last dropdown but I cant select it.
    Attached Files

    Leave a comment:


  • spud
    replied
    Originally posted by happnatious1 View Post
    That worked.

    However, I added my playlist to favorites, and the plugin sees it, but wont let me select it.
    not sure I understand, you are now trying to use the "Player Open Media" action with media type = Favourite?
    what do you mean by the plugin wont let you select it?

    Leave a comment:


  • happnatious1
    replied
    That worked.

    However, I added my playlist to favorites, and the plugin sees it, but wont let me select it.

    Leave a comment:


  • spud
    replied
    Originally posted by happnatious1 View Post
    Running Kodi on my ubuntu homeseer server I created a playlist which is located here: /home/william/.kodi/userdata/playlists/metal.m3u however running an event like suggested doesn't do anything. Am I missing something?
    have you tried to add the lines in advancedsettings.xml as explained in the first post?

    what do you get in the logs, if you set the log level to debug?

    Leave a comment:


  • happnatious1
    replied
    Running Kodi on my ubuntu homeseer server I created a playlist which is located here: /home/william/.kodi/userdata/playlists/metal.m3u however running an event like suggested doesn't do anything. Am I missing something?

    Leave a comment:

Working...
X