LAST POST other stuff
There is alot of stuff in this version but if you are techy and want to play with the device yourself (@freke may be interested in this as well). Go to “http://localhost:8080/sony/index.html” - this will bring up a page that will allow you to play with your device directly. I’m showing this to you all because I may eventually need one of you to do something on this page for me…
The best way to use this page is to hit the “Load File” button and navigate to “userdata\sony\definitions\capability” directory and load the json for your device. The table below the button will then popuplate with all the APIs for that device (and show you the parameters/return for each). Clicking on one of the APIs will the populate the left side with everything you need. Modify the the “parms” and press execute - the result will then appear in the bottom.
Here’s a quick demo…
- Open the page - hit “Load File”, navigate to userdata\sony\definitions\capability and select your json file
- Scroll down to “avContent”, “getSchemeList” and click it
- The left side should populate - simply press execute (there are no parameters to scheme list)
- The bottom should show something like
[[{"scheme":"extInput"},{"scheme":"storage"},{"scheme":"dlna"}]]
(your’s will differ probably)
- Choose one of the schemes (extInput is a good one)
- Click on the “avContent”, “getSourceList” (if you see v1.1 and v1.2 - select the 1.1 version)
- The left side should populate - in the parms, replace the “string” with your source (extInput in this demo). The parms should look like:
{"scheme":"extInput"}
- Press execute - the result should be all the inputs for your device. Mine look like:
[[{"iconUrl":"","isBrowsable":false,"isPlayable":true,"meta":"meta:tv","playAction":"changeSource","source":"extInput:tv","title":"TV"},{"iconUrl":"","isBrowsable":true,"isPlayable":false,"meta":"meta:hdmi","playAction":"","source":"extInput:hdmi?port=1","title":"HDMI1"},{"iconUrl":"","isBrowsable":true,"isPlayable":false,"meta":"meta:hdmi","playAction":"","source":"extInput:hdmi?port=2","title":"HDMI2"},{"iconUrl":"","isBrowsable":true,"isPlayable":false,"meta":"meta:hdmi","playAction":"","source":"extInput:hdmi?port=3","title":"HDMI3"},{"iconUrl":"","isBrowsable":false,"isPlayable":true,"meta":"meta:btaudio","playAction":"changeSource","source":"extInput:btAudio","title":"Bluetooth Audio"},{"iconUrl":"","isBrowsable":false,"isPlayable":true,"meta":"meta:linemini","playAction":"changeSource","source":"extInput:line","title":"Analog"}]]
- You ca then use the “source” (“extInput:btAudio”) for various other actions - like clicking on “setPlayContent” and changing the parm to
{"uri":"extInput:btAudio"}
(ignoring everything else) and the bluetooth audio should come up on the device.
You can play around with it alot if you want. Don’t try any of the ‘notify*’ methods - those are info only lines. Likewise the “Merge File” really isn’t useful to you. @freke may find it interesting because it allows you to merge in other APIs to see if there are any differences between devices (differences are highlighted).
Have fun and let me know if you have any issues…
Tim
EDIT: btw - there are all sorts of goodies in the hidden ‘advanced’ channels. You’ll find things like being able to set the sound settings (music/sports/etc) and various other settings - worth looking through those