Forums

OverviewFelgo 2 Support (Qt 5) › Add external subtitle to video

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #22247

    Barazi Ala

    Hi,

    Is there a way to add external subtitles to a video? Is this supported by Felgo?

     

    #22259

    Alex
    Felgo Team

    Hi Barazi,

    you can overlay the QML video output with custom QML components to display your subtitles. What format are the subtitles provided as?

    Cheers,
    Alex

    #22261

    Barazi Ala

    Hi Alex,

    I will use srt format. Is there a way to import ready made javascript library to parse srt files or other subtitle format?

    Could you please explain how to access the current duration/time of QML video output? I have tried to use runPlayerScript(“getDuration”) as explained in https://felgo.com/doc/felgo-youtubewebplayer/ but got an error

    #22268

    Thomas
    Felgo Team

    Hi Barazi,
    If you are using the Video QML Type you can access the duration of the media with the duration property. The position property holds the current playback position in milliseconds.

    Cheers,
    Thomas

    #22271

    Barazi Ala

    Hi Thomas,

    Thank you for your support. Is it possible to do the same for Youtube videos? (I am still having the bug explained in my question )

    Cheers,

    Alaa

    #22311

    Alex
    Felgo Team

    Hi Alaa,

    the youtube player uses a WebView, which cannot be overlayed with QML items. This is currently a limitation by Qt. We’d recommend using the QtMultimedia module to display your videos, in order to overlay it with custom QML items.

    Best,
    Alex

Viewing 6 posts - 1 through 6 (of 6 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support