Skip to main content

2026-12-01 · 6 min read

Making a live-stream screen readable on phones: what had to change once everything shrank to 0.36×

RadarAccessibilityPerformance

Translated from the Chinese original: read it in Chinese

The home radar live stream (in Chinese) is a 1920×1080 web page captured by OBS and pushed to YouTube. While designing it I looked at it on a computer monitor, and the text sizes seemed fine. Then it occurred to me: some people watch on phones.

First measure: how big does it end up on a phone

YouTube on a phone often drops to 480p automatically. In landscape fullscreen, the 1080p picture shrinks to about 693×390, which is 0.36×; in portrait the player is only about 390 px wide, which is around 0.2×.

I checked by shrinking screenshots by the same ratio (first to 854×480, then to the phone's size). The results:

  • Flight labels on the map are 19 px and end up about 7 px
  • In the right column, "Today", the airline names and "minutes ago" end up about 5 px
  • Thin font weights (font-light) blur earlier than small text: under low-bitrate compression, thin strokes are the first to go

A rule

Text that has to be read on screen is at least about 18 px at 1080p, and does not use font-light. Only large headings and large numbers, which are already big, keep the thin weight.

Following that rule:

  • The flight data box went from 19/16 px to 23/19 px, and the aircraft icon from 13 to 15
  • In the right column, the block titles, "Today / Most", the values of the focus flight, and the flight number and time of "Just passed" all went up a size
  • The size of the carousel cards did not change (the layout was already set), and neither did the ticks of the volume bar on the left (decoration that does not need to be read)

For someone watching in portrait on a phone, details are never going to be readable anyway. What can be seen is the title, the large aircraft count, the aircraft positions and the URL, and those only need to be big enough.

Moving things also cost something

The screen has a scan line that sweeps around once every 12 seconds. It covers a large area and changes every frame, so the video encoder has to spend bitrate on it; at 480p, where bitrate is already scarce, the map and text around it are more likely to show blocky artifacts.

I lowered the opacity at its brightest from 0.16 to 0.09, and it still looks like it is rotating. Measured on a 1080p frame with 3 aircraft, the share of pixels that change every 250 ms fell from 4.4% to 2.0%.

Flight labels should not cover the airport

Once the labels got bigger, another problem became more obvious: the data box is fixed at the upper right of the aircraft, and aircraft appear most often near the airport. An aircraft landing at Kaohsiung International Airport always puts its data box on top of the runway, "RWY 09/27" and the airport name.

Now each data box picks one of 8 positions: upper right, upper left, lower right and lower left of the aircraft, and the same four directions pushed out one more step (the pushed-out ones are connected back to the aircraft with a thin line). Each position gets a score:

  • Covering base-map text or the runway: covered area × severity (the Kaohsiung airport text counts 3×, county and city names 0.5×)
  • Covering HTML on top of the map (the title, the right column, the URL) or going off screen: counts 4×
  • Covering another aircraft or another data box: also counts 4×
  • Plus the preference of the position itself: upper right first, pushed-out ones last

The base-map text is drawn once when the screen size changes, and each text run's extent is recorded at the same time; the HTML extents are measured once a second (elements with a data-avoid attribute).

Labels must not jump around: a new position has to be clearly better than the current one (covering at least 15% less data-box area) and more than 2 seconds must have passed since the last move; when it moves, each frame goes 12% of the way to the target, sliding over in about half a second rather than jumping.

Two other things changed along the way

  • Just passed: a row used to hold "airline · route · aircraft type" and was often truncated to something like "STARLUX · CRK→TPE · A32…". Now it keeps only the flight number, the route codes and "minutes ago", and the airline and aircraft type are left to the focus flight card above.
  • Today's records: Kaohsiung airport has a night curfew, so the stream is often at "airspace quiet". The carousel gained a card showing today's highest, fastest ground speed and longest-route flights, and the unusual aircraft types received. ADS-B occasionally has one glitchy altitude or speed reading, so two consecutive samples have to be about the same to count. This card has only the flight number, airline, aircraft type and values, with no position.

Checking against the real screen

After the changes I looked at the real live stream on the live site once (11:24 a.m., when there happened to be no aircraft) and found three more problems that fake data could not reveal:

  • "Night curfew" shown in the daytime too: the subtitle for quiet airspace did not depend on time of day. Now only 0:00 to 6:30, the Kaohsiung curfew, mentions the curfew; at other times it says "the screen switches back to the map automatically when an aircraft enters range".
  • Departed flights still labeled "next departure · soon": the airport website often takes a dozen minutes or more to change "on time" to "departed". The worst case: a flight that departed at 11:10 still said "on time" at 2:30 p.m.
  • Outlying-island routes had only a flight number: the route database does not have domestic routes such as Kaohsiung to Cimei, and the airline name cannot be matched either.

The second problem could be solved by the radar itself: the receiver is near the airport and picks up an aircraft as soon as it leaves the ground. The radar records the radio callsign (China Airlines CAL126), while the timetable shows the flight number passengers see (CI126), so an airline-code mapping table can connect the two. When the airport site still says on time but the radar already sees the flight in the air, the timetable shows "departed" first, with a blue dot in front, and the top right of the card notes "seen first by the home radar".

But the radar's "Just passed" keeps only the latest 60 entries, and once the afternoon gets busy, the morning entry is squeezed out and cannot be matched. So I added another rule: a row still saying "on time" after 1 hour is simply not shown, without guessing whether it flew.

The third problem uses the same mapping table in reverse: for a flight whose route the database cannot find, look up the same flight number in the Kaohsiung timetable and fill in "KHH → CMJ" and "Daily Air".

Not yet verified

  • I have not watched the actual live stream on a real phone. All the numbers above come from simulated screenshot scaling.
  • On YouTube mobile, tapping the screen brings up the control bar, and whether it covers the title or URL I could not bring up with the automated browser (it cannot play live streams and only shows the thumbnail), so I did not change that part.

Type to search projects and posts too