XBMC Community Forum
New FREE Control4 Driver Available (JSON) - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+--- Thread: New FREE Control4 Driver Available (JSON) (/showthread.php?tid=128714)

Pages: 1 2 3 4 5 6 7 8 9


RE: New FREE Control4 Driver Available (JSON) - Craig P - 2012-04-20 18:32

Hey Guys

nice work, PM me if you want sections of my XBMC driver, I have a whole bunch of power management like using a relay to power the system on or off or using Wake-On-Lan, etc...

Nice work Smile


RE: New FREE Control4 Driver Available (JSON) - penfolds - 2012-04-21 05:28

(2012-04-20 18:32)Craig P Wrote:  Hey Guys

nice work, PM me if you want sections of my XBMC driver, I have a whole bunch of power management like using a relay to power the system on or off or using Wake-On-Lan, etc...

Nice work Smile

The driver posted here does not appear to allow media scanned into C4 to play (unless I have the wrong version)

Craig, The version of your driver I have is great (allows media playback), but it does not allow xbmc menu navigation. Have you updated this? Would you share your latest driver?

cheers


RE: New FREE Control4 Driver Available (JSON) - Craig P - 2012-04-21 15:28

I have done a little work, i was waiting for XBMC to move all (like context menu, etc) of the commands to the new JSON stuff (which i see is happening now).

i was also waiting for C4 to finish their new media proxy so that C4 can import the movie info from XBMC rather than C4 scanning a folder.

My driver might not load into Composer as i was playing around with it but you can copy and paste some code out of there. I use the WakeOnLan stuff every day with another driver i have...

http://dl.dropbox.com/u/14849352/mediaplayer_ip_xbmc_json.c4i


RE: New FREE Control4 Driver Available (JSON) - penfolds - 2012-04-21 23:29

Thanks Craig, I'll give it a go..

I wasn't aware of the new media proxy, sounds interesting...

Is a driver works version released per composer pro version?


RE: New FREE Control4 Driver Available (JSON) - penfolds - 2012-04-22 00:30

Brandon, just an FYI - Your driver seems to crash (link light goes off and loose composer pro access) the controller when I delete the driver. When composer re-established a link to the controller the driver is still there. Tried about 5 times and even removed the "connection" to TV first, but still crashes. Not sure if it is just particular to my environment or not.


RE: New FREE Control4 Driver Available (JSON) - penfolds - 2012-04-22 01:31

(2012-04-21 15:28)Craig P Wrote:  I have done a little work, i was waiting for XBMC to move all (like context menu, etc) of the commands to the new JSON stuff (which i see is happening now).

i was also waiting for C4 to finish their new media proxy so that C4 can import the movie info from XBMC rather than C4 scanning a folder.

My driver might not load into Composer as i was playing around with it but you can copy and paste some code out of there. I use the WakeOnLan stuff every day with another driver i have...

http://dl.dropbox.com/u/14849352/mediaplayer_ip_xbmc_json.c4i

Hi Craig,
I gave it a try - The driver loads OK, but the menu navigation did not work. Is this because Json does not implement this feature yet?


RE: New FREE Control4 Driver Available (JSON) - brandonj - 2012-04-24 23:14

(2012-04-21 05:28)penfolds Wrote:  The driver posted here does not appear to allow media scanned into C4 to play (unless I have the wrong version)

The problem with scanning media is because of a limitation of the media_player proxy in their SDK. It's pretty much a copy of the dvd_player proxy, and as such is severely limited. C4 has said in their documentation that they are developing a new proxy that will allow scanning media, etc. but a little birdie told me that it may not happen for another year.

This is why I started with navigation first, since it is the most "implementable". There are some ways around it - one of which is to scan in media from a "Network Storage" driver using the proper samba credentials. When you select a media item from the c4 navigator, it sends the samba uri to the XBMC driver to try to play it. In turn, my XBMC driver instructs XBMC to play the file at the same URI. I haven't been able to get it to work, unless XBMC has a video source defined with the same credentials as what is used in "Network Storage". It will then play the file.

Another method I could use (but don't want to), is to use a DVD Changer proxy instead of Media_Player, and pretty much just make c4 think it's a changer, and scan in dvd titles.
This has other limitations, and I'd rather just wait until the new media player proxy is available.



Craig P,
Your driver has some useful features. Would you mind if I tried to implement some things from your driver into mine? We could even try to merge the two projects if you are interested. No sense in duplicating effort.

-Brandon


RE: New FREE Control4 Driver Available (JSON) - penfolds - 2012-04-25 02:28

(2012-04-24 23:14)brandonj Wrote:  
(2012-04-21 05:28)penfolds Wrote:  The driver posted here does not appear to allow media scanned into C4 to play (unless I have the wrong version)

... There are some ways around it - one of which is to scan in media from a "Network Storage" driver using the proper samba credentials. When you select a media item from the c4 navigator, it sends the samba uri to the XBMC driver to try to play it. In turn, my XBMC driver instructs XBMC to play the file at the same URI. I haven't been able to get it to work, unless XBMC has a video source defined with the same credentials as what is used in "Network Storage". It will then play the file.
...
-Brandon

I scan my media from a Network Storage device (this is how it works with Craigs driver also for me), but still did not play with yours. I suspect this is because my media share in c4 points the NAS root, but my xbmc share is only NAS\videos based on what you are saying?


RE: New FREE Control4 Driver Available (JSON) - Craig P - 2012-04-25 08:41

I know my media importing doesn't work but I was sure the navigation worked.

I'm more than happy merging the project, I started creating the driver to learn to make
Driver works drivers, very much a sideline projects for me that's why I haven't done anything for a while.

Another way of importing from XBMC is to use the iPod Proxy, that's what guys like Exrta Veg use and I'm sure I read that the new media player proxy (when it comes out) is a modified version of the iPod dock proxy. That way you can import video and audio and view it on the Navigator.

My driver should play stuff from a NAS but I don't think I have the username a password parsing in there but it's easily done (that might be your problem Penfolds). Does your NAS require a username and a password to view the shared folder where your media is?


RE: New FREE Control4 Driver Available (JSON) - penfolds - 2012-04-25 09:37

Unless I have managed to confuse myself:

Craig - yours plays movies I scan from my NAS into C4. I select the movie from the c4 touch screen navigator and it plays on xbmc without any problems. I can pause and play and on your older version I could press a number and it would jump to a percentage of the movie based on x10. eg 2 = 20% through the movie.
However left,right,up,down and select are not working for me on either of the versions of your driver I have, including the one you posted above

I have C4 2.2 and xbmc eden on windows. If you think these menu features are working on the version you posted I'll have another look, but I even tried assigning the left, right etc to the programmable colour buttons and it did not work.