Replies: 3 comments
-
Hello thanks for the reports, can you provide us the code samples where you changes the subtitles view configuration. For the difference between live and vod, can you also provide the vod url/urn you see the difference. Subtitles are bundled inside stream and come in various format and subtitles providers. For the placement you could try to add padding to your |
Beta Was this translation helpful? Give feedback.
-
Thanks for the fast reply. The code where we tried out the options. It's not final at all. I now added the padding to test your suggestion (thanks!) ExoPlayerSubtitleView(
modifier = Modifier.padding(all = 40.dp),
player = player,
captionStyle = CaptionStyleCompat(
/* foregroundColor = */ android.graphics.Color.WHITE,
/* backgroundColor = */ android.graphics.Color.BLACK,
/* windowColor = */ android.graphics.Color.TRANSPARENT,
/* edgeType = */ CaptionStyleCompat.EDGE_TYPE_DROP_SHADOW,
/* edgeColor = */ android.graphics.Color.BLUE,
/* typeface = */ null
),
subtitleTextSize = SubtitleTextSize.Fractional(0.1f, true),
) Non-live urn: In the live urn video the subtitles already come with a padding. So adding an additional padding puts them too close to the center of the video. Also the |
Beta Was this translation helpful? Give feedback.
-
The styling of the subtitles may come from the subtitle stream directly. That's why some videos have padding, colours, custom size, ..., and others don't. However, if you really wish to customise it for any video, you can call |
Beta Was this translation helpful? Give feedback.
-
Description of the problem
When trying to increase the size of the subtitle text with
SubtitleTextSize.Fractional
it only works on non-live videos, but with live videos there is no difference. Is that something to do with how the subtitles are defined?We would also like to move the subtitles a bit for non-live videos, because they seem to be placed at the very bottom of the videos. This again only for non-live videos, for live videos they are placed a bit higher.
I have also seen this behaviour in the "Pillarbox Demo"-App and in the "Play RTR" App.
Relevant stack trace or log output
No response
Reproducibility
Always
Steps to reproduce
In the Pillarbox Demo App, check
Lists
->SRF
->News
and then for exampleMittagsausgabe
. Enable the subtitles and they are at the very bottom and quite small. The size should be able to be changed withSubtitleTextSize.Fractional
, not their position though. (I have not tested this in this app, but in ours.)In the Pillarbox Demo App, check
Lists
->TV Livestreams
->SRF
->SRF 1 live
. Enable the subtitles and they are a bit higher up and also a bit larger.SubtitleTextSize.Fractional
should NOT be able to change this (I have not tested this in this app, but in ours.)Library version
1.0.0
Operating system
Android 10
Code sample
No response
Is there an existing issue for this?
Beta Was this translation helpful? Give feedback.
All reactions