Win I want to find a way to pass Kodi a MP3 file, play it then minimize and wait
#1
I am a old VB6 programmer been using my own music player application since 1999, recently I have started coding it/ improving it again.
I play from a big library I ripped from CDs and Album to MP3s, I love the way Kodi can play a file with MilkDrop Visualizer, and scrape artist pictures, and Biographys.
my request is:
I want to find a way to pass Kodi a c:\path\filename.mp3 have it maximize from windows taskbar, play the file in Kodi with Milkdrop, (I am using Kodi17 with Titan Skin), then Minimize to Taskbar wait until I pass it a new file. hopefully I could also pass it a new file at any time, and have it change to/start playing the new file.

Please respect my request and don't tell me to give up on my home made application, it does so many cool things.
I have groups of friends visit and over a few sociable drinks, I can have people name a song (while one is playing) I type part of name in a search box, it looks in 6 local directories to find matches, if it cant find it locally, it passes a search string to you tube in a browser window and will plays therr
https://www.youtube.com/results?search_query= songname
I can click another button to send artist-song to WIKIpedia or Google to settle arguments over history,
it loads thousand of songs from local files in memory array list, that I can roll the mouse through almost instantly. sorts by artist and song instantly (providing songs files are names correctly.
Currently, I pass the mp3 files to a windows mediaplayer window within the application and it plays with windows visualizer or video of dancing girl, but I want the option to bring files up in Kodi with milkdrop, pics, etc
I would be willing to share my code and ideas. I am 50 years old computer guru
here is a picture that should show what I am doing

https://drive.google.com/open?id=0B4XcaJ...WFqblFhblk

thanks and regards , Troy
Reply
#2
also I did quite a bit of seaching on your forum and google, before posting, found this old xbmc info , but I am betting it is no longer valid four version later

https://superuser.com/questions/210206/l...-timepoint
Reply
#3
This is not my area of knowledge but I suspect you can do want you want using the JSON API, see http://kodi.wiki/view/JSON-RPC_API/v8
Reply
#4
Thanks for Replying, I declare and use several API to the Windows Application Programming interface now, I am interested in finding out more about JSON API , i notice i didn't mention that my program runs fine in Windows7, 8, and 10
Reply
#5
I searched google regarding JSON API, can you point me to information on how to write to the playlist in kodi for music, i am thinking i could program my player to write xml code or script to trigger kodi to play a certain path\filename after current playing song finishes
Reply
#6
i am reading that Kodi supports m3u playlists

can i place a file in AppData\Roaming\Kodi\userdata\playlists\music

what name should file have to automatically play it autoexec.pyHuh

#EXTM3U

#EXTINF:123, Sample artist - Sample title
C:\Documents and Settings\I\My Music\Sample.mp3

#EXTINF:321,Example Artist - Example title
C:\Documents and Settings\I\My Music\Greatest Hits\Example.ogg
Reply
#7
There is a full json api documented on the wiki.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#8
(2017-04-28, 17:03)newtroy2017 Wrote: i am reading that Kodi supports m3u playlists

can i place a file in AppData\Roaming\Kodi\userdata\playlists\music

what name should file have to automatically play it autoexec.pyHuh
No, that approach is not going to work, Kodi does not autoplay anything.

You may find more JSON API help in the forum http://forum.kodi.tv/forumdisplay.php?fid=174

Quote:Please respect my request and don't tell me to give up on my home made application, it does so many cool things.
No disrespect, but if you have the skills then do think about adding to Kodi (in ways that many people can enjoy) rather than just something home spun for you and your friends. The dev team always needs more contributors.
Reply

Logout Mark Read Team Forum Stats Members Help
I want to find a way to pass Kodi a MP3 file, play it then minimize and wait1