Coder Social home page Coder Social logo

Comments (6)

mariodivece avatar mariodivece commented on May 18, 2024 1

In my latest NuGet (3.4.200) you are able to set the attached property like this:

Subtitles.SetText(Media, "HEY THERE!");

from ffmediaelement.

mariodivece avatar mariodivece commented on May 18, 2024 1

Latest Commit. See example of side-loading subtitles:

        private void Media_MediaOpening(object sender, MediaOpeningRoutedEventArgs e)
        {
            // Example of automatically side-loading SRT subs
            try
            {
                var inputUrl = e.Info.InputUrl;
                var url = new Uri(inputUrl);
                if (url.IsFile || url.IsUnc)
                {
                    inputUrl = System.IO.Path.ChangeExtension(url.LocalPath, "srt");
                    if (System.IO.File.Exists(inputUrl))
                        e.Options.SubtitlesUrl = inputUrl;
                }
            }
            catch { }
        }

from ffmediaelement.

 avatar commented on May 18, 2024

It would be awesome to have this feature! Do you think it is complex to implement?

from ffmediaelement.

Ravenglass avatar Ravenglass commented on May 18, 2024

Hi,

This would be awesome. Any ideas on when we can expect this? Right now I'm loading and adding subtitles separately as an overlay. Would be cool to be able to select external subtitle files. Thanx, this is by far the best MediaElement alternative I've used.

Cheers,

from ffmediaelement.

mariodivece avatar mariodivece commented on May 18, 2024

No exact target date yet. I need to release the 2.0 version this weekend. I will start working on 3.0 features soon enough. If it is any help to you, the Mediaelement contains a good subtitles control already that displays the subtitle stream inside a media file

from ffmediaelement.

Ravenglass avatar Ravenglass commented on May 18, 2024

Hi @mariodivece,

Thanx. That might be much better than having a separate textbox. But how would I access and update the text value of the existing control? Would that be possible? Could you point me in the right direction?

Cheers,

from ffmediaelement.

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.