News for hackers. Stuff that matters.
Re:Stadia uses a web app to bypass Apple's policy on cloud g... by kevmo314 on Saturday December 26, 2020 @11:06AM (#25544216)
I wouldn't be surprised if the Android app is a thin webview wrapper either. Stadia is streaming content, it's not like it needs much beyond what the web browser can do.
Re:Stadia uses a web app to bypass Apple's policy on cloud g... by chmod775 on Saturday December 26, 2020 @12:50PM (#25545026)
I remember trying to figure out why video playback was so horribly slow in Chrome on an ARM device. Streaming the video with mplayer would take around 60% CPU time (out of 400%), but playing it in Chrome it would max out at 400% and start dropping frames.

In the end the answer was that each video frame had to be copied between buffers about three times with Chrome, among other things, whereas mplayer was able to draw directly to the framebuffer.

Now I'm not saying it isn't theoretically possible to make this fast (and Chrome has various optimizations nowadays for a select number of platforms), but abstractions can be expensive - especially for video.

It's best to go as native as possible if you're on underpowered hardware or want to go easy on your user's battery life.

Re:Stadia uses a web app to bypass Apple's policy on cloud g... by PurpleFoxy on Saturday December 26, 2020 @04:20PM (#25546536)
Google has the ability to just change chrome to make it work.
Re:Stadia uses a web app to bypass Apple's policy on cloud g... by devadvance on Saturday December 26, 2020 @04:53PM (#25546730)
The native app uses Flutter [0].

Disclosure: I work on Stadia, and am speaking only for myself.

[0] https://9to5google.com/2019/11/08/google-stadia-app-play-sto...

Re:Stadia uses a web app to bypass Apple's policy on cloud g... by threeseed on Saturday December 26, 2020 @05:19PM (#25546886)
Are you still using a web view ?

Because obviously then it would be irrelevant whether it's Safari, Flutter or Visual Basic.

Re:Stadia uses a web app to bypass Apple's policy on cloud g... by devadvance on Saturday December 26, 2020 @05:32PM (#25546952)
The native mobile app does not use a web view.
Re:Stadia uses a web app to bypass Apple's policy on cloud g... by Apocryphon on Saturday December 26, 2020 @05:39PM (#25547001)
The Flutter webview is fairly basic, I believe.
Re:Stadia uses a web app to bypass Apple's policy on cloud g... by megablast on Saturday December 26, 2020 @05:55PM (#25547110)
No one uses web view anymore. It’s banned.
Re:Stadia uses a web app to bypass Apple's policy on cloud g... by stefan_ on Saturday December 26, 2020 @12:59PM (#25545085)
Ehhh, there is a big difference between streaming some Netflix show that has no input and can buffer minutes or more and a game where even 500ms of buffering are unplayable. Plenty of streaming protocols aren't designed to do that in the first place (hello, HLS) and I could very well imagine players just falling over if they are not in their happy place of usual buffer sizes.
Re:Stadia uses a web app to bypass Apple's policy on cloud g... by kevmo314 on Saturday December 26, 2020 @01:21PM (#25545265)
I haven't seen such issues with webrtc. It's been very low latency for my use cases.
Re:Stadia uses a web app to bypass Apple's policy on cloud g... by IshKebab on Saturday December 26, 2020 @04:44PM (#25546673)
Unlikely - web video isn't designed for extremely low latency. Much easier to do if you control the whole stack.
Re:Stadia uses a web app to bypass Apple's policy on cloud g... by jtsiskin on Saturday December 26, 2020 @06:45PM (#25547427)