microsoft / microsoft/FFmpegInterop

Audio tracks and Timed meta data tracks are 0 in uwp mediaplaybackitem

Open
#212 37 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.4k
Forks
319
PR merge metrics
No merged PRs in 30d

Description

I am using this library in my uwp project. And I am using MediaPlayerElement to play the media, just like in sample of this repo, the only thing I changed is I amusing MediaPlaybackItem to set the source instead of MediaSource directly

var source = MediaSource.CreateFromMediaStreamSource(mss);
var item = new MediaPlaybackItem(source);
ViewModel.PlaybackSource = item;

this media playback item object should have audio tracks for this specific file, and also closed caption tracks represented as TimedMetaDataTracks. But using break point I know the count of them is 0. Meanwhile if I play that file with Movies and TV default app of windows 10 they show a button to change the subtitles and to change audio tracks for that file, I wonder why isnt my media player element showing that button? and why is it 0 when I use the breakpoint?

Thanks in advance.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the sample's direct MediaSource path with the MediaSource.CreateFromMediaStreamSource to MediaPlaybackItem path in the UWP MediaPlayerElement setup. Reproduce the report and inspect the MediaPlaybackItem audio and TimedMetaDataTracks counts, along with the related playback controls. Done means the cause of the zero track counts and missing controls is identified and the issue is fixed or clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
audio-video-rtc, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.