Show Subtitles using Qt6 multimedia module - multimedia

I was looking at QT6 Qml media player example and I want to display subtitles in the video using a .srt file. Is it possible to do so and if not, is there any other way I can display subtitles for the video

Related

How to read meta-data from video using vlc-qt libvlc in Qt

I am developing a media player in Qt and using libvlc as my base to built the player. Now I want to read the various information about the video like it's resolution, codec, duration etc.
I have tried to extract the metadata using '''libvlc''' but they require the video to be played to read the metadata.
I want to read metadata without playing the video file.
I used mediainfo to read the metadata as mediainfo don't require you to play the video to extract the information from the video.

Xamarin Forms: How to create an Epub Viewer in Xamarin Forms?

I am trying to implement an epub viewer in xamarin forms like the below video.
Video Link: https://drive.google.com/file/d/1jW33lstCXqwC35siYklLoXAxItWpQG8c/view?usp=sharing
At first, I need to show the TOC of the book. If taps any chapter in TOC need to show that chapter on the UI. The total chapters and current chapter details are added at the bottom of the page. We can change the font size, font style, light and dark theme, and horizontal and vertical swiping features. Also able to hear the chapter in audio voice. Please have a look at the above video.
This is the native Android implementation. I need to do this feature in xamarin forms, following are my queries.
Is xamarin offer an epub viewer like this? Or I need to do all these features custom?
I tried EpubReader.Cross NuGet package, but it has no TOC list.
How can I change the font size and font style like the video?
For audio voice feature I can use text to speech feature, but when reading the book by voice how can I highlight the text?
There is a package named epubReader, it has a TOC list. But when I try to install it to the project, I am getting this error.
Is xamarin offer an epub viewer like this? Or I need to do all these features custom?
Xamarin forms do not provide this epun viewer like this. If you want to change the
font size, font style and add TTS function(need highlight the text), features custom
is a way that have to go.
I tried EpubReader.Cross NuGet package, but it has no TOC list.
You can create TOC list, EpubReader.Cross provide the Enumerating chapters by epubBook.Chapters
How can I change the font size and font style like the video?
For audio voice feature I can use text to speech feature, but when reading the book by voice how can I highlight the text?
Based on my research, you have to make a features custom,
There is a package named epubReader, it has a TOC list. But when I try to install it to the project, I am getting this error.
If you use epubReader, this nuget package is too old and not updated in years, it cannot compat with current Android and iOS version.
If others know a better solution, please share it.

reference for customizing a widget in Qt?

I want to make a widget in Qt and customize it.for example change the background and use my own one.change the shape of the buttons and animate them and the style of starting of the page and some other things that usually are using in professional softwares.is there any reference and document to learn these works?please help me....thank you
Qt Style Sheet is probably what you are looking for, check the docs and syntax . By the way, QML is considered more flexible, when it comes to GUI

Qt Accessible Widgets

I'm trying to implement accessibility for my Qt application. I'm using NVDA (http://www.nvda-project.org/) and Freedom Scientific's JAWS (http://www.freedomscientific.com/products/fs/jaws-product-page.asp) as the screen readers I want to support.
I'm assigning the widget's accessibleName and accessibleDescription properties (http://doc.trolltech.com/4.7/qwidget.html#accessibleDescription-prop) in order to get the screen reader to read this information.
Example:
saveButton->setAccessibleName("save");
saveButton->setAccessibleDescription("Save the options you have entered above");
In both screen readers everything is working correctly when using the mouse. However, when focus changes in a widget all the readers read is "pane". Why isn't Qt providing the accessibility information that I need?
You have to import a plug-in to get Qt to have accessible widgets. This lets screen readers read the names, and hierarchies of objects.
To get this, you need to add qtaccessible widgets to your qmake project file:
QTPLUGIN += qtaccessiblewidgets
And in main.cpp add a Q_IMPORT_PLUGIN
Q_IMPORT_PLUGIN(qtaccessiblewidgets)
Then screen readers will be able to accurately read:
"Button. Save. Save the options you have entered above. Press space to activate the button."
When you tab to (or otherwise place focus on) a button
in a tutorial video I saw that Qt surface components
have the properties "AccessibleName" and "AccessibleDescription".
This suggests that Qt applications are screen readable
can be developed. In the programming languages ​​are called Java and C #
the properties the same.
I am developing Python on Windows 10
Question:
Is there a guide on how to make a Python Qt application suitable for screen readers?

where can i find Qt graphs or how to build them

hello im looking for Qt graph widgets that are free
something like qwt.sourceforge.net/
Outside of Qt, there's also MathGL, which is a powerful graphing library as well. It can create images (png, jpg, svg etc...) which can easily be displayd in a Qt widget. You'll of course have to sacrifice the interactivity that Qwt can offer.

Resources