Not sure if this is just the way the player lays itself out, or if something in my code is causing the UI to be extremely small but only on mobile. Since the change to embeds back in 2020 the suggested way to embed in an iOS app was laid out here by @jbulava.
I haven’t seen any updates as far as plans for embedding in mobile apps, and I’m trying to follow the user guidelines and not manipulate the html on the iOS side by injecting scripts, but the UI just isn’t usable. Again, this is assuming its not my code (which it could be).
If it is my code, then I would just like to know what I am doing wrong. If it is Twitch, then maybe we as a community can assist with a solution for iOS and Android app embeds? I’m more than willing to create an iOS SDK to handle embeds, if Twitch doesn’t want to allocate the time/resources to it.
One possible solution is to allow us to pass a parameter (like mobile=true) to specify that it will be dislayed on mobile. This will allow the player to lay itself out in a more “mobile-friendly” way.
The alternative is if they just turn a blind eye and let us mobile devs manipulate the html of the embed, but I doubt they would want that.
Hey @BarryCarlyon , thanks for the reply. I see you constantly on these threads and appreciate it.
A couple of things:
1: In regards to this:
This problem exists on all platforms due to browser interaction score.
I guess I should have been more clear here. I know that its the browser that causes this and that its out of Twitch’s hands. I guess my point was more that if we had a native solution then that wouldn’t be an issue.
2: I wasn’t familiar with UserVoice until you suggested it. I will definitely create an idea for both a native SDK and a mobile parameter. Is UserVoice an actually useful way to get things implemented? Or does it tend to be a blackhole of ideas? I’m speaking just based off of my experience of Apple’s version of UserVoice, which gets heavily ignored.
I created a UserVoice suggestion. I hope that it gets some attention as I think a lot of people would benefit as a result (most importantly users).
In the mean time, I guess I’d like to know if @jbulava has an update on what the roadmap is for embeds, if there is one? Is there an embeds team? I guess I’d just like to know if I should even bother creating some of these Twitch features in my iOS app or if the embeds are doomed forever haha.
This is obviously against the developer agreement, but I thought it might be helpful in addressing the issue that a simple mobile=true parameter can use the same script that I have to remove these elements that don’t work on mobile.
Then I can then include those elements natively by creating my own view to display the title, viewer count from the API, streamer name and image, follow/sub buttons, etc. I have no problem with twitch requiring this functionality in their embed, I just have a problem with it not working.
This makes for a very interesting idea with the best of both worlds. We can create a very simple iOS SDK that does a few things:
Provide it a URL for your embed on your website (like what I did in my post initially)
Provide it a channel or clip
It can return a view with the embedded stream in a webview, but with the problematic elements removed. And then it can provide a native view to display the removed functionality properly.
This is essentially how some native ads work. You give it something to load a video ad into, and it gives you back the information to display alongside it (like a CTA button, advertiser name, etc).
I would love to build a maintain a community repo on the iOS side, if that were ever allowed.