Xamarin Forms Custom Video Player

Mohammad Jaafar Dhainy 0 Reputation points
2023-03-04T08:50:21.0233333+00:00

Hello, I want to create my own video player how to create custom player that play a video from url , File and stream? Any one have a docuement about that

Developer technologies .NET Xamarin
Developer technologies XAML
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-03-06T05:13:14.1433333+00:00

    Hello,

    You can do this by creating a View and custom renderer.

    Then achieve the play video function for different platforms. For Android, you can use android.widget.VideoView For iOS, we can use AVPlayer
    For Windows, we can use MediaPlayer

    By the way, Xamarin Community Toolkit provide MediaElement, you can use it directly to play a video from url , File and stream.

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.