You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that YouTube handles subtitles quite differently on mobile than it does on browser. This is a very nice thing I found out regarding those differences.
Apparently, if you write the supported SAMI tags in a .ytt caption file using < and > they will be parsed both on mobile and browser. You will notice that, on browser, YouTube will add newlines around those tags, effectively making their use impossible.
However, if you add an empty <s> tag at the beginning of the line, it will cause the SAMI tags to be ignored on browser. From there, they can simply be hidden on browser by abusing the ruby text feature.
Therefore, the following captions will display "bold" as bold on browser only:
<?xml version="1.0" encoding="utf-8"?>
<timedtext format="3">
<head>
<pen id="1" b="1" />
</head><body>
<p t="1000" d="5000">It was very <s p="1">bold</s> of you.</p>
</body>
while the following captions will display "bold" as bold on both browser and mobile:
It appears that YouTube handles subtitles quite differently on mobile than it does on browser. This is a very nice thing I found out regarding those differences.
Apparently, if you write the supported SAMI tags in a .ytt caption file using
<
and>
they will be parsed both on mobile and browser. You will notice that, on browser, YouTube will add newlines around those tags, effectively making their use impossible.However, if you add an empty
<s>
tag at the beginning of the line, it will cause the SAMI tags to be ignored on browser. From there, they can simply be hidden on browser by abusing the ruby text feature.Therefore, the following captions will display "bold" as bold on browser only:
while the following captions will display "bold" as bold on both browser and mobile:
This can be useful for displaying bold and underlined on mobile, which is not currently supported through .ytt subtitles.
The text was updated successfully, but these errors were encountered: