Skip to content
Henrique Vieira
All projects

Synchronised digital signage for Smart TVs

MediaSync

Multiple Smart TVs showing the same content at the same instant, in a system installed on a client's own servers.

Role
Sole author: web platform, Android TV app and deployment
Period
Oct 2026 - present
Status
In production, on the client's servers
Technologies
Laravel 12Laravel ReverbWebSocketReact 19TypeScriptMySQLAndroid TVDocker

The problem

The client needed to broadcast images, videos and playlists to several screens at once, with all of them showing exactly the same moment of the video.

There were two constraints: the system had to run inside the internal network, on the client's own servers, and the screens are ordinary Smart TVs, with unreliable clocks and a network that can drop.

The approach

  1. 01

    A shared start instant

    The server sends the instant the broadcast started, and each screen works out which point of the video it should be at. A TV that joins late or loses its connection jumps to that point on its own.

  2. 02

    Estimating the server's time

    The player uses the browser's monotonic clock and estimates the offset to the server from the lowest-latency sample, as NTP does. If the TV was in standby and its clock stalled, the new estimate replaces the old one immediately.

  3. 03

    A native Android TV app

    A small app with a native 4K video player that launches when the TV powers on and always talks to the server with certificate validation on.

  4. 04

    Working offline

    Content is copied to the TV before it goes on air, and the page keeps the last known schedule. If the server becomes unreachable, the screens keep playing.

  5. 05

    Large files, sent in chunks

    Videos up to 1.5 GB are uploaded in parts that can be retried individually, instead of a single request that restarts from zero if the connection drops.

The results

In production
on a client's own servers, over HTTPS
4K
playback through the TV's own decoder
1.5 GB
maximum file size, with chunked upload
0.6 MB
size of the Android TV app

What I learned

The TVs drop off the network, go into standby and have the wrong time. I designed each part so the TV gets back to the right point of the video without anyone walking to the screen.

Next case

School platform

Multi-tenant school management, in production

Read the case