Closed everpcpc closed 5 months ago
Script resolution will be set to video resolution if there is no PlayResX
and PlayResY
, it should not be resulting viewBox="0 0 0 0"
, can you provide a sample ASS file?
It seems no error when loaded in https://ass.js.org/ , anything else I missed here?
if using self created container
Maybe this is the difference?
After testing, container is not the reason.
Maybe it's because the video is still loading and the loadedmetadata
event is not fired yet, so video.videoWidth
is 0.
ASS file with no
PlayerResX
andPlayerResY
would result in svgviewBox="0 0 0 0"
if using self created container, and subtitle not showing. Furthermore, after settingScaledBorderAndShadow
toyes
, browser crashes on the first cue.