Maui
Maui copied to clipboard
[BUG] Crash in MediaElement under iOS when AirPlay a liveStream
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
- Use the MediaElement on iOS
- add a live-stream (video without duration!!!)
- Cast the video (AirPlay button top-left in the video-player)
- Chose the AirPlay-device from the list
- The Video plays on the AirPlay-device
- In Debug: The app crashes on Main-Thread and the video plays on the TV untill you stop debugging...
- System.OverflowException: TimeSpan overflowed because the duration is too long.
Expected Behavior
Stream should play without crash
Steps To Reproduce
- Open repo
- Connect real iOS (local or remote)
- Debug the Solution
- Play the video (this has to be a live-stream video!)
- Turn TV on (or any other air-play device)
- Click button for Airplay on the player
- Chose the AirPlay-Device
- Crash
Link to public reproduction project repository
https://github.com/juergenfurrer/MauiMediaElementSample
Environment
- .NET MAUI CommunityToolkit: 7.0.1
- OS: iOS 17.4
- .NET MAUI: 8.0.7
Anything else?
No response