Git Product home page Git Product logo

Comments (7)

xat avatar xat commented on August 23, 2024

Thanks :)
I once played around with transparent backgrounds. The problem is that the font is hard to read in scenes where the colors in the video are similar to the color of the subtitles.

from castnow.

xat avatar xat commented on August 23, 2024

But maybe some predefined color-schemas would be nice

from castnow.

rodrigofarias77 avatar rodrigofarias77 commented on August 23, 2024

Subtitles are normally displayed in white, with a black border, and sometimes a shadow. I am not sure what options are offered by Chromecast's subtitle engine though... If there are no extra options, white text on a black background is perfect.

from castnow.

xat avatar xat commented on August 23, 2024

There are some styling options. We have documented them here:

https://github.com/thibauts/node-castv2-client/wiki/How-to-use-subtitles-with-the-DefaultMediaReceiver-app#subtitle-styling

If someone is willing to investigate in 2 or 3 nice color-schemas I'm gladly willing to integrate them.

from castnow.

rodrigofarias77 avatar rodrigofarias77 commented on August 23, 2024

Thanks for the link. I will play with the options.

from castnow.

kim0 avatar kim0 commented on August 23, 2024

Great news .. Hope this can land in 0.5 .. This is shaping up rapidly to be my favorite chromecast client (getvideostream.com now is)

from castnow.

rodrigofarias77 avatar rodrigofarias77 commented on August 23, 2024

The following style works pretty well:

textTrackStyle: {
  backgroundColor: '#00000000',
  edgeColor: '#000000FF',
  edgeType: 'OUTLINE',
  fontFamily: 'Sans',
  fontStyle: 'BOLD'
}

I had to patch node_modules/chromecast-player/api.js though.

from castnow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.