Giter Site home page Giter Site logo

Comments (5)

David-Koehler-DPX avatar David-Koehler-DPX commented on June 7, 2024

Have a look at the WebVTT styling options: https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API#styling_webvtt_cues
The line setting should be what you need: https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API#line

from mediaelement.

Dacogetul avatar Dacogetul commented on June 7, 2024

It's not what I want... I need a setting for mediaplayer not for the subtitle file... The same file works perfectly on the other players (vlc, videojs, etc..) only in mediaplayerjs it doesn't work as I said above. Subtitling is shown correctly when the player runs at the size of the html page, but when I change to fullscreen, one line out of two disappears from the player.

from mediaelement.

David-Koehler-DPX avatar David-Koehler-DPX commented on June 7, 2024

That is certainly odd...
There is an option to change the default line used by the subtitles: "defaultTrackLine". Maybe setting this to false or changing tit will help with your problem.

from mediaelement.

Dacogetul avatar Dacogetul commented on June 7, 2024

My mediaelementjs player use:
https://cdnjs.cloudflare.com/ajax/libs/mediaelement/7.0.0/mediaelementplayer.min.css and
https://cdnjs.cloudflare.com/ajax/libs/mediaelement/7.0.0/mediaelement-and-player.min.js
your option is just in .js which requires running the js file from my server and I don't think it will work for me...

from mediaelement.

David-Koehler-DPX avatar David-Koehler-DPX commented on June 7, 2024

Have a look at the usage documentation. You can set the options when creating a new mediaelement instance or as data-attribute on the video itself. If that option doesn't help, I'm not sure what else it could be. When set to "false" all the subtitle rendering and positioning should be done by the browser itself, just like using a plain HTML video-tag.

from mediaelement.

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.