CommunityToolkit / CommunityToolkit/Maui
[BUG] Changing playback speed on video with sound causes video to stutter/jump
- Dominant language
- C#
- Stars
- 2.7k
- Forks
- 500
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 7
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Did you read the "Reporting a bug" section on Contributing file?
- [x] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
### Current Behavior
When playing a video that contains audio, altering the speed property via code during playback causes the video to stutter. Doing the same with a video with no audio works as expected and the change is smooth. Typical scenario here is an indoor cycle app that varies the playback speed relative to the speed of the original recording.
### Expected Behavior
Altering the speed of playback via code on a video containing sound should seamlessly change without stuttering.
### Steps To Reproduce
Clone down the repo.
Download the two sample movies linked to from that repo.
Open the project and point it at each of the sample moves in turn.
Confirm the video with audio stutters every 2 seconds when the playback speed change occurs.
### Link to public reproduction project repository
[MauiMediaElementBugApp](https://github.com/Gavlar50/MauiMediaElementBugApp)
### Environment
```markdown
- .NET MAUI MediaElement 8.0.1
- OS:Win11 Home 10.0.26200
```
### Anything else?
_No response_
Contributor guide
Research direction
Start with the linked MauiMediaElementBugApp reproduction project and run it on the reported Windows 11 environment using the two sample movies. Compare changing playback speed during playback for the audio and no-audio videos, focusing on the reported stutter every two seconds. Done means speed changes on videos containing sound are smooth, as they are for videos without audio.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop-dev, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100