Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Subtitle Track selector #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TimGels
Copy link
Member

@TimGels TimGels commented Mar 11, 2023

Implemented the ability to select a subtitle track on the video player page.

Added a SubtitleAudioTrackSelector UserControl. This UserControl hosts the subtitle tracks and will also host the audio tracks from which a user can select a track.

Introduced a MediaTrackService which can be injected to provide some methods. Methods it provide are at this moment the retrieval of subtitle tracks and the preferred subtitle track. Due to LibVLC not being able to be injected by a dependency injector due to several reasons, this service needs to be initialized by calling the initialize method and providing it with a reference to a (initialized!) MediaPlayer instance. This service can be expanded to perform more general MediaPlayer tasks as well in the future if need be.

Added a ValueConverterGroup enabling the chaining of value converters.

Added a custom exception which gets thrown when one of the the MediaTrackService methods get called without the service being initialized.

Added MediaTrackService to the dependency Injector container in App.xaml.cs.

resolves #86

@TimGels TimGels force-pushed the audio-subtitle-track-selector branch from 4c24b26 to 0941b9c Compare March 11, 2023 22:37
@TimGels TimGels force-pushed the audio-subtitle-track-selector branch 3 times, most recently from 80dfb78 to 851c099 Compare March 12, 2023 11:38
@TimGels TimGels force-pushed the audio-subtitle-track-selector branch from b482f5d to 3f4a80e Compare March 12, 2023 21:20
@JohannesKauffmann
Copy link
Collaborator

Still need to see about the user option change (removed, renamed?)

@TimGels
Copy link
Member Author

TimGels commented Mar 14, 2023

Still need to see about the user option change (removed, renamed?)

Whatever we may decide on

should be changed/ updated accordingly. Posting this here so we don't forget.

@TimGels TimGels force-pushed the audio-subtitle-track-selector branch 2 times, most recently from 3153c0d to bfc342e Compare March 17, 2023 12:37
@TimGels TimGels force-pushed the audio-subtitle-track-selector branch from bfc342e to e19ef3e Compare March 25, 2023 14:23
@TimGels
Copy link
Member Author

TimGels commented Mar 25, 2023

Could you test these changes again on your system @JohannesKauffmann? I added a couple more test media files to the test account for us to use.

@TimGels
Copy link
Member Author

TimGels commented Mar 25, 2023

Still need to see about the user option change (removed, renamed?)

Whatever we may decide on


should be changed/ updated accordingly. Posting this here so we don't forget.

I decided to keep the original setting functionality intact. This needs to be tested by another set of eyes as well if possible.

@JohannesKauffmann
Copy link
Collaborator

Other than my comment, the changes since last review look fine to me.

@TimGels TimGels force-pushed the audio-subtitle-track-selector branch from de022ec to 686df89 Compare June 25, 2023 13:04
Implemented the ability to select a subtitle track on the video player
page.

Added a SubtitleAudioTrackSelector UserControl. This UserControl hosts
the subtitle tracks and will also host the audio tracks from which a
user can select a track.

Introduced a MediaTrackService which can be injected to provider some
methods. Methods it provide are at this moment the retrieval of subtitle
tracks and the preferred subtitle track. Due to LibVLC not being able to
be injected by a dependency injector due to several reasons, this
service needs to be initialized by calling the initialize method and
providing it with a reference to a (initialized!) MediaPlayer instance. This service can be expanded to
perform more general MediaPlayer tasks as well in the future if need be.

Added a ValueConverterGroup enabling the chaining of value converters.

Added a custom exception which gets thrown when one of the the MediaTrackService
methods get called without the service being initialized.

Added MediaTrackService to the dependency Injector container in App.xaml.cs.

Replaced public mediaplayer property calls with private.
@TimGels TimGels force-pushed the audio-subtitle-track-selector branch from 686df89 to 5ae0be5 Compare June 25, 2023 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Request] Possibility to use and switch to a different subtitle track
2 participants