gnomecast icon indicating copy to clipboard operation
gnomecast copied to clipboard

Custom subtitle fonts

Open tilusnet opened this issue 5 years ago • 6 comments

Hi.

I am impressed by this initiative. I have been looking for a direct Linux to Chromecast transcoding solution for some time, and this project is on the right track!

For a start, which component is responsible for subtitle font choice? I'd be keen to be able to change the default.

Many thanks.

tilusnet avatar Jul 11 '20 21:07 tilusnet

Thanks!

Subtitle control would be part of the DefaultMediaReceiver web app in Chromecast. There's very little documentation about it last I checked.

We could also code a custom media receiver. That would allow font customization.

On Sat, Jul 11, 2020, 2:18 PM Attila Szász [email protected] wrote:

Hi.

I am impressed by this initiative. I have been looking for a direct Linux to Chromecast transcoding solution for some time, and this project is on the right track!

For a start, which component is responsible for subtitle font choice? I'd be keen to be able to change the default.

Many thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/keredson/gnomecast/issues/131, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPUNAILTN2UAVNDP4SQAXLR3DJLBANCNFSM4OXPHVZA .

keredson avatar Jul 11 '20 22:07 keredson

Thanks for the leads @keredson! Just had a brief look now.

Heading off from https://developers.google.com/cast/docs/caf_receiver I discovered the TextTracksManager class which has a setTextTrackStyle() method. Its underlying TextTrackStyle class has a fontFamily property. Wouldn't this be the right place to dig around for changing the displayed font?

tilusnet avatar Jul 20 '20 00:07 tilusnet

i will happily take a PR for a CAF receiver implementation!

keredson avatar Aug 10 '20 23:08 keredson

@keredson would you mind pointing me at the code files in gnomecast where such change would be integrated?

tilusnet avatar Aug 10 '20 23:08 tilusnet

Ah forget it, it's probably somewhere in gnomecast.py.

tilusnet avatar Aug 10 '20 23:08 tilusnet

Well this would be a new file since it'd be writing a custom media receiver with the CAF framework. I don't really know what that entails, prob a HTML/JS/CSS package.

On Mon, Aug 10, 2020, 4:38 PM Attila Szász [email protected] wrote:

Ah forget it, it's probably somewhere in gnomecast.py.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/keredson/gnomecast/issues/131#issuecomment-671642096, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPUNANA2TOGOBX6B6B6E7LSACAFXANCNFSM4OXPHVZA .

keredson avatar Aug 11 '20 00:08 keredson