We are providing the subtitles in HLS stream via TTML files and are using SMIL’s to create M3U8’s. Subtitles work fine but how to enable styling in those captions?
We found some articles on how to put styling in TTML files like below, but sill the webvtt equivalent that Wowza delivers to the front end in form of chunks, does not contain any styling.
All we really need is to move captions to a certain position in forms of XY coordinates.
Here is the samle ttml we use:
<?xml version="1.0" encoding="utf-8"?>
ttm:titleSample TTML</ttm:title>
TOP SAMPLE TEXT
BOTTOM SAMPLE TEXT
Top Hello
Bottom Hello
He had a great story.
- Did he tell you what it was about?
- He did.
In 1992, a shipping container
fell overboard
on its way from China
to the United States,
releasing 29,000 rubber ducks
into the Pacific Ocean.