develop macOS app

Want to write your own code to work with a HDHomeRun or work with the HDHomeRun DVR? We are happy to help with concepts, APIs, best practices.
Post Reply
gregML
Posts: 4
Joined: Sun Feb 16, 2025 5:58 am

develop macOS app

Post by gregML »

hi, I am trying my hand at developing a macOS app but I am having trouble to come up with what would be the best practice to display the MPEG-TS stream on, say, an AVKIT Player View. My understanding is that the AVKIT Player View doesn't natively display the MPEG-TS stream. I am sure that I can figure out the rest, but I am having this problem trying to get started with this. Thanks in advance for any assistance. Thanks Greg

tmm1
Posts: 295
Joined: Tue Nov 03, 2015 12:03 pm
Contact:

Re: develop macOS app

Post by tmm1 »

Not possible, you can use VLCKit etc

tmm1
Posts: 295
Joined: Tue Nov 03, 2015 12:03 pm
Contact:

Re: develop macOS app

Post by tmm1 »


gregML
Posts: 4
Joined: Sun Feb 16, 2025 5:58 am

Re: develop macOS app

Post by gregML »

thanks for the response, I am going to pursue these suggestions.
thanks again, Greg

gregML
Posts: 4
Joined: Sun Feb 16, 2025 5:58 am

Re: develop macOS app

Post by gregML »

hi, I have used your advice, and I have VLC working now. I can manually tune the MPEG-TS stream from the HDHomeRun Flex 4K and display it in an ImageView. I have a DVR sub and I would like to use the 14 days of guide data to advance my project. It is not clear to me how to access the (JSON?) data to construct a menu to select a tuner and schedule recordings. Any insight would be appreciated. Thanks Greg

nickk
Silicondust
Posts: 20611
Joined: Tue Jan 13, 2004 9:39 am
x 322

Re: develop macOS app

Post by nickk »

Some DVR / recording-rule documentation is here:
https://github.com/Silicondust/documentation/wiki

Live TV guide API:
https://api.hdhomerun.com/api/guide?DeviceAuth=xxx

Series discover APIs:
https://api.hdhomerun.com/api/up_next?DeviceAuth=xxx
https://api.hdhomerun.com/api/suggest?D ... ory=series
https://api.hdhomerun.com/api/suggest?D ... gory=movie
https://api.hdhomerun.com/api/suggest?D ... gory=sport
https://api.hdhomerun.com/api/search?De ... Search=xxx

If the user selects a series you can pull the episode information.
https://api.hdhomerun.com/api/episode?D ... riesID=xxx
https://api.hdhomerun.com/api/episode?D ... ID=xxx&V=2

Server load:
1) Do not pull live TV guide information when it is getting low. Instead pull guide information at a random interval, suggest every 1.5 to 2 hours if the user leaves the guide visible.
2) The intent is that a user action results in one API. If you find a situation where you need to hit multiple APIs to render a page please let me know and we can consider making changes to the API.

gregML
Posts: 4
Joined: Sun Feb 16, 2025 5:58 am

Re: develop macOS app

Post by gregML »

wow, that is very helpful. Thanks for the info. Greg

Post Reply