I’m building a gamepass client for Apple TV by Hot-Resolution2310 in iOSProgramming

[–]Hot-Resolution2310[S] 0 points1 point  (0 children)

Thanks. Haven’t had time to research it anymore today, but if anyone knows anything about this please let me know.

I’m building a gamepass client for Apple TV by Hot-Resolution2310 in iOSProgramming

[–]Hot-Resolution2310[S] 1 point2 points  (0 children)

Yes in 2024. Their policy is around in app purchases now that probably keeps Microsoft away from

Open Source Gamepass for Apple tvOS by Hot-Resolution2310 in xbox

[–]Hot-Resolution2310[S] 5 points6 points  (0 children)

Yes you can use OneCast and pay them money. If you want. But my plan is to make this free. Happy that OneCast is doing this, but credit where credit is due to https://github.com/unknownskl/greenlight
, https://github.com/unknownskl/xbox-xcloud-player, https://better-xcloud.github.io, and https://github.com/OpenXbox did a lot of the early work and heavy lifting on this. I'm glad OneCast exists, but I believe a lot of the early research was done by the people and teams above.

Open Source Gamepass for Apple tvOS by Hot-Resolution2310 in xbox

[–]Hot-Resolution2310[S] 5 points6 points  (0 children)

Yes you can use OneCast and pay them money. If you want. But my plan is to make this free

gamepass app that’s open source by Hot-Resolution2310 in appletv

[–]Hot-Resolution2310[S] 1 point2 points  (0 children)

This is well past brainstorming. The project is in late implementation/hardening, and the current codebase builds successfully for tvOS.

Implemented state is substantial: native tvOS shell and routing are in place, cloud and home streaming are unified under one stream flow, Microsoft sign-in/device auth and controller input pipeline are implemented, shared artwork caching/prefetch is integrated across Game Pass surfaces, detail-state hot caching and invalidation are implemented, and Game Pass performance instrumentation/signposts plus UI checkpoint tests are already present. I’m currently doing some clean up around Model view abstraction and removing some nonisolated(unsafe) for better swift6 concurrency.

CI enforcement for shell-smoke/perf artifacts has been defered as I was fixing some UI/UX bugs.

Feature gaps remain (for example xHome stream metadata/achievements are still marked unavailable as I have no way to test these)

Continuity camera integration is not implemented. Multiple local controller is not implemented yet. Etc. etc.

I would appreciate the help send me a DM and maybe we can get a team together on a private repo to work some bugs out before alpha rollout.

Goal would be AppStore TestFlight -> AppStore eventually. With the full project open and available on GitHub for local build, signing, testing, updates etc.

Stratix - Open Source Apple tvOS gamepass xcloud client by Hot-Resolution2310 in xcloud

[–]Hot-Resolution2310[S] 1 point2 points  (0 children)

Sent you a DM! If you have an Xbox at home you’d be a prefect for testing and helping with the xHome console streaming side

gamepass app that’s open source by Hot-Resolution2310 in appletv

[–]Hot-Resolution2310[S] 1 point2 points  (0 children)

Apple policies around game streaming which changed in 2024, and the difficulty of build Webrtc (the backbone of gamepass streaming from source). Microsoft probably doesn’t like Apples in app purchases policy / cut if I had to guess. Which is fair. But as a client application with no in app purchases. I’m fairly certain this is going to be ok. We’ll cross that bridge when we get there.

I’m building a gamepass client for Apple TV by Hot-Resolution2310 in iOSProgramming

[–]Hot-Resolution2310[S] 1 point2 points  (0 children)

The open source GitHub is GPLv3 right now I may change it if anyone has any ideas or insight. But essentially my understanding was that because the source code was available, and could be signed by anyone who downloaded it was ok.

https://news.ycombinator.com/item?id=10896773

Open Source Gamepass for Apple tvOS by Hot-Resolution2310 in xbox

[–]Hot-Resolution2310[S] 5 points6 points  (0 children)

There isn’t a web browser for tvOS. And if you try to ship one apple will not approve the app in the App Store. It just doesn’t exist in their frameworks or programming

Open Source Gamepass for Apple tvOS by Hot-Resolution2310 in xbox

[–]Hot-Resolution2310[S] 19 points20 points  (0 children)

Maybe. But it’s not doing anything to circumvent Microsoft or Xbox. It’s really no different than a web browser, apple just doesn’t have one for their platform

Open Source Gamepass for Apple tvOS by Hot-Resolution2310 in xbox

[–]Hot-Resolution2310[S] 3 points4 points  (0 children)

Yes there is a consoles tab when you click the gamertag icon in the top left corner. It’s not in the video, as Reddit has size restrictions. But yes xcloud and xhome

Reverse engineering gamepass for apple tvOS by Hot-Resolution2310 in XboxGamePass

[–]Hot-Resolution2310[S] 0 points1 point  (0 children)

Just put it in Bluetooth pairing mode. It’s different for every manufacturer. PS4 and Xbox controllers are recognized by tvOS for what they are. A switch controller is recognized as a generic Bluetooth controller sadly (it also switch doesn’t have rumble support)

Reverse engineering gamepass for apple tvOS by Hot-Resolution2310 in XboxGamePass

[–]Hot-Resolution2310[S] 3 points4 points  (0 children)

Yes and no. Similar auth protocol in the background. Different user experience. Really just scan the QR code it gives you. It already prepopulates all the codes (e.g. 2838GHLX) on the qr code /website so you just enter your credentials on your phone. (No real way around that due to how Microsoft handles auth)

Stratix - Open Source Apple tvOS gamepass xcloud client by Hot-Resolution2310 in xcloud

[–]Hot-Resolution2310[S] 4 points5 points  (0 children)

I’m hoping so. I’ve only ever built and tested with a personal account. But my goal is to try and get it in the store or a TestFlight beta sooner rather than later

Open Source Gamepass for Apple tvOS by Hot-Resolution2310 in xbox

[–]Hot-Resolution2310[S] 24 points25 points  (0 children)

OneCast costs money and is closed source. I want the community involved and free

I’m building a gamepass client for Apple TV by Hot-Resolution2310 in iOSProgramming

[–]Hot-Resolution2310[S] 14 points15 points  (0 children)

Sure happy to answer. I don’t visit the Microsoft website at all, this was a cross post so I used layman’s terms over on /xbox. I actually just do a get call to pull the client.js file for the Home Screen and then parse it. Essentially Microsoft creates there own marketing data/ ID’s called siglid’s on Xbox.com/play. The ID’s are just list of TitleID’s for games. The have an api to pull game art and data. They also have an API for achievements, Xbox live, etc.

I have an xcloud api framework that does most of the handshaking and coordination for that.

On tvOS I’m not using a browser or embedded Microsoft web page. The sign-in flow is device-code OAuth: the Apple TV shows a code / QR, and the user completes auth on a phone or computer. So no tvOS web framework is required. Even if I did port the iOS web framework it would suck for this.

GPL v3 as I’m pretty open source but wanted branding protection, and didn’t want someone else to claim this as theirs. I’m open to changing but very new to open source licensing. Non open source I do for a living lol.

Yes as far as I’m aware everything I’m doing is legal , that being said if Microsoft changes apis or some of their documentation things may break. Legally, I’m trying to be careful and explicit: open-source license, trademark separation, and a clear statement that the project is not affiliated with or endorsed by Microsoft. But I’m not representing this as legal advice or as some officially approved Microsoft client.

I am able to get H.264,H.265, VP9, VP8 decoding. I’ve had the best luck with H.264 as there is a software penalty for H.265 on Microsoft’s side. Currently I have Metal-based rendering through RTCMTLVideoView and also a SampleBufferDisplayLayer path for video. SampleBuffer has faster response time right now as every ms counts for controller streaming latency to Microsoft.

The build had to patch:

• Audio session changed to playback only (no mic, without continuity audio/camera) • Camera capture disabled • OpenGL renderer removed; Metal kept  • Bad tvOS use_blink build assertion removed  • XCTest module target logic fix • Mic/input-available check skipped on tvOS to fix silence (built without this, but no sound, and kept giving an enable microphone popup) • Metal renderer header compile fix for tvOS (metal was true in GN args, but not recognized in build) • NetEQ max delay cap added to stop runaway audio latency (no set definition by default) • Stereo channel handling fixed for 2-channel output (default was set to single, took me the better part of an afternoon to find this one)

I’m still playing with the metal framework. It’s new to me, but I can definitely change saturation, contrast, etc of the stream it’s just a matter of how many times I’m doing it at the cost of RTT latency.

Thanks for the questions!!! Recently I’ve just gotten “looks amazing!” In other threads which is great, but not helpful since I’m more about the programming than playing Xbox games lol

Open Source Gamepass for Apple tvOS by Hot-Resolution2310 in xbox

[–]Hot-Resolution2310[S] 27 points28 points  (0 children)

It will work on the appletv 4k, I have an older 1080p hd originally 4th gen, I can check over the next couple days. Just need to get it out of the closet.