2011-09-15, 05:25
Very nice work
Thanks
Thanks
jasonvp Wrote:When accessing my Music Videos through "Music/Library/Music Videos" and I use "Player.GetActivePlayers" it returns " "video":true " which is correct but then if I use "VideoPlaylist.GetItems" I don't get any info returned or it returns the last played video from Video Player. I have to use "AudioPlaylist.GetItems" to get any info. This not such a big deal but there is no way to tell that I'm aware of, which Playlist Player is active. Is there a way?
Also if the "fields" from "List.Fields.Video" & "Audio.Fields.Song" do not match (e.g. "runtime" does not exist in "Audio.Fields.Song") I can not retrieve it.
jasonvp Wrote:I've found some other bugs in regards to how "runtime" is displayed/stored (only shows minutes i.e. "3") in "Music Video Information" on screen and when returned through "VideoPlaylist.GetItems". Also not being able to access "Music Video Information" from the "Context Menu" from "Music/Library/Music Videos". I know this is the wrong Thread for this but I've been looking through the Forums for a Thread for Nightly Build Bugs but could not find one. Is there such a Thread or do I just post in the XBMC General Help and Support?
Montellese Wrote:I am currently working on completely restructuring the Player and Playlist namespaces. That means that there won't be a VideoPlaylist and a AudioPlaylist namespace anymore but only a Playlist namespace.
{"jsonrpc": "2.0", "method": "AudioPlaylist.Add","id" :1, "params":{"item": { "albumid":1 }}}
{"jsonrpc": "2.0", "method": "AudioPlaylist.Add","id" :1, "params":{"item": { "artistid":1 }}}
{"jsonrpc": "2.0", "method": "AudioPlaylist.Add","id" :1, "params":{"item": { "songid":1}}}
sunny-hd Wrote:Hi,
I just tried the nightly build from today 16.09.
Does the AudioPlayList.Add functions have changed?
Adding a album or artist doesnt work anymore.
Adding a song works as before.
Doesnt work:
Code:{"jsonrpc": "2.0", "method": "AudioPlaylist.Add","id" :1, "params":{"item": { "albumid":1 }}}
Code:{"jsonrpc": "2.0", "method": "AudioPlaylist.Add","id" :1, "params":{"item": { "artistid":1 }}}
Works:
Code:{"jsonrpc": "2.0", "method": "AudioPlaylist.Add","id" :1, "params":{"item": { "songid":1}}}
Regards
Klaus
mzanetti Wrote:Hi! Is it known that commands like this return the full contents of the directory even if they are not included in any of the media sources?
{ "id" : 102, "jsonrpc" : "2.0", "method" : "Files.GetDirectory", "params" : { "directory" : "/etc" } }
Even worse: you can also download the contents of the file:
http://xbmcbox:8080/vfs/etc/passwd
This seems quite insecure to me. I know that there are security concepts planned, but even with a login I see now reason why the API should expose system config files.
Other than that, the API is turning out very well
Montellese Wrote:GetInfoLabels and GetInfoBooleans have been moved from the System to the XBMC namespace and are considered deprecated. Please let us know which data you retrieve most using these methods so that we can provide better access to those values.I'm using these to get
grywnn Wrote:System.ProfileName to react to profile changesYes this is not available yet in any other way. We first wanted to provide a notification on Profile switching but the problem is that the TCP server is shutdown when logging out of a profile.
grywnn Wrote:Playlist.isRandom and MusicPartyMode.Enabled - will need to check wether these available through the new playlist namespace (edit: They are.)Correct they are available through Player.GetProperties with the properties "shuffled" and "partymode".
grywnn Wrote:Player.Time, Player.TimeRemaining, Player.Duration since these returned the data regardless of which player was actually playing. The new Player namespace is definitely a step forward here.Player.GetProperties exposes "time" and "totaltime". Using these you can also calculate the remaining time. But you still need to get those infos for a specific player. But you can use the same method call, just need to provide the correct playerid.
grywnn Wrote:Question:No specific plans yet as we are still waiting for further feedback on which infolabels are required.
When will GetInfoBooleans/Labels be removed?
Montellese Wrote:Yes this is not available yet in any other way. We first wanted to provide a notification on Profile switching but the problem is that the TCP server is shutdown when logging out of a profile.
Quote: "MusicPlayer.Title",
"MusicPlayer.Album",
"MusicPlayer.Artist",
"MusicPlayer.Property(Artist_Description)",
"MusicPlayer.Genre",
"MusicPlayer.Year",
"MusicPlayer.TrackNumber",
"MusicPlayer.Codec",
"Player.Time",
"Player.Duration",
"Player.Volume",
"Player.Filenameandpath",
"VideoPlayer.Title",
"VideoPlayer.TVShowTitle",
"VideoPlayer.Genre",
"VideoPlayer.Director",
"VideoPlayer.Year",
"VideoPlayer.Rating",
"VideoPlayer.Tagline",
"VideoPlayer.Studio",
"VideoPlayer.Plot",
"VideoPlayer.Season",
"VideoPlayer.Episode",
"VideoPlayer.VideoCodec"