-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apple TV app #46
Comments
Oh, Gio is very intriguing! I've toyed with it for a while and was evaluating it for the Euterpe Desktop client. But ultimately decided to use GTK as it was much more familiar and mode some mobile/desktop convergent stuff easier. As for the actual question, I've had bad experience developing apps for apple in the past. Ideally I would avoid myself it if I could. What I've thought before is maybe taking advantage of already existing music clients by implementing a widely used API. Such Subsonic's. I think it would be quite easy to make Euterpe expose the Subsonic API and one would be able to connect to it using any Subsonic client already present. |
Hey GTK is also good. I used it also. I tested https://developer.apple.com/documentation/tvmljs/playing_media_in_a_client-server_app on my Apple TV and it works It was just a matter of feeding the tvml from the server Subsonic looks really good. Its a great Idea to expose the APi using Subsonic. So then if anyone wants to use Apple tv with euterpe they can. I only tried this out because i like the flexibility of tvml, and how you can then hand off the audio to your house speakers also and also Home equipment. I know its lockin, but i just happen to have one. I also think that euterpe shoudl try to be agnostic to support devices that people happen to own. |
https://github.com/delucks/go-subsonic looks ok maybe ... Oh https://github.com/sentriz/gonic is much better. Seems to be updated too |
You are completely right. I don't see why not supporting both TVML and Subsonic API. But I am not exactly sure what is exactly that the server should do. Maybe that stems from the fact that I don't understand what TVML is exactly. One creates TVML screens for the client app which runs on the TV. That part I do get, I think. Or is that the server has to serve the XML files (e.g. this one for lists)? If that's so then I am open to trying my hand on implementing a simple version provided I could use some sort of a Apple TV simulator since I don't have a real one. |
The server serves the tvml. The client loads data from the server to render it. It's like a browser is running inside the Apple TV, but it's not a browser, just a JS interpreter. Its essentially Custom Elements, in that it renders custom html elements. The quality of the UX for the user is very high, with only tiny amounts of the JS and xml code. Here is the code form the example. initialpage.xml:
client side js. You can see it is loading the "initialpage.xml" !
|
I think we could easily build an Apple TV app for this.
There are 2 options that might work.
Tvml is apples own markup for Apple TV that may also support music . We could serve that from the server or another project t that imports the pkg of the server.
https://developer.apple.com/documentation/tvmljs/playing_media_in_a_client-server_app
The other way is with golang . You can build advanced golang gui that can play music using gioui. It compiles to iOS and hence apple tv. I use gioui a fair bit.
It can also be used to output web and mobile and desktop apps.
https://github.com/gioui
The text was updated successfully, but these errors were encountered: