Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] Issue with MediaElement audio playing in IOS #697

Open
@sreejithsree139

Description

@sreejithsree139

Reference: #684

I am using MediaElement for playing audio. I have a list of items and I need to play audio one after another. When playing audio I will change the background color of that list item. Also If I tap an item, the audio of that selected item starts playing, also the color of that item is modifying. These features are working fine in android and ios. I have added a video of the android here.

Because of Native Crash Reporting of MediaElement, I have added a custom renderer in the ios platform. After adding the custom renderer, there are some issues while playing audio in ios. First, it is playing the first item audio, then moving to 3rd one by changing the background color of 2nd and 3rd item. Then playing the 5th one and changing the color of the 4th and 5th items. I need to play items one by one. I have added a video of ios here.

VS in mac version: 8.8.3 (build 16)
Xcode: 12.3(12C33)
IOS version is 14.3

As per the suggestions from the reference link I have installed Xamarin.CommunityToolkit(1.0.0-pre6) and updated xamarin forms version to 5.0.0.1791-pre5.

After that, I need to update the target framework version to Android 10.0(Q) and downloaded the 10.0 SDK. Since it is showing as an error.

In android, the audio playing is working fine like previous but in ios no changes in the issue. I tried to add the MediaElementRenderer but it has a lot of errors.

Sample without MediaElementRenderer is here.
Sample with MediaElementRenderer is here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a/MediaElementbugSomething isn't working. Breaky break.p/iOSiOS platform issue.s/unverifiedThis issue needs verification/reproduction by a team member. PRs cannot be accepted/merged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions