This is a migrated thread and some comments may be shown as answers.

RadMediaPlayer issue in Safari browser

5 Answers 102 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
Yogesh
Top achievements
Rank 1
Yogesh asked on 02 Sep 2020, 07:48 AM

I am using Start time property to keep video thumbnail.. it is working in all browsers but in safari browser those properties are not working like auto Play, Start Time properties can any one has solution for this please suggest.

 

Thanks,

Yogesh Kumar

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 04 Sep 2020, 05:33 PM

Hi Yogesh,

Thank you for reporting this issue!

I researched it and found out that it is a browser behavior because the same markup provided by Google YouTube works in IE/Edge, but not Chrome:

 

<iframe width="560" height="315" src="https://www.youtube.com/embed/J18zDKtiBFE" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
This is the code provided by YouTube when you click the Share -> Embed button of the https://www.youtube.com/watch?v=J18zDKtiBFE video and if you put it in an html or aspx page and load it in Chrome it won't start to play, but it will play in IE:

 

RadMediaPlayed generates the same HTML to play the video (it is a standard) and since the latest Chrome does not play it it is a browser behavior that may change in the future as it was working in the earlier versions of the browser.

I searched a little bit more in Google and found that it is actually a Chrome Policy which prevents the autplay videos to play:

I hope this helps.

 

Regards,
Rumen
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

0
Yogesh
Top achievements
Rank 1
answered on 08 Sep 2020, 06:21 AM

Thank you Rumen..I'll check this and will let you know

Thanks

Yogesh Kumar

0
Rumen
Telerik team
answered on 08 Sep 2020, 09:44 AM

Please take your time, Yogesh! If you have any other questions please let me know.

 

Regards,
Rumen
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

0
Yogesh
Top achievements
Rank 1
answered on 08 Sep 2020, 12:41 PM

Hai Rumen,

RadMediaPlayer property StartTime property not working in safari browser other than I don't have any issues in chrome browser.. please help me on this issue..is there any other way to handle this?

Thanks

Yogesh Kumar

0
Rumen
Telerik team
answered on 10 Sep 2020, 04:40 PM

Hi Yogesh,

I performed a test with a regular video tag with autoplay and noticed that the latest Safari browser on MAC does not automatically starts the video - https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_video_autoplay

 

Can you please test it and let me know whether the video plays automatically in your Safari? It looks like a Safari issue. 

RadMediaPlayer is rendering the videos in a regular video tag like this one

<video id="RadMediaPlayer1_video" autoplay style="width: 100%; height: 100%;"><source src="../images/file_example_MP4_480_1_5MG.mp4"></video>

and if Safari does not respect the autoplay attribute this is the reason for the issue including the StartTime one.

Regards,
Rumen
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

Tags
MediaPlayer
Asked by
Yogesh
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Yogesh
Top achievements
Rank 1
Share this question
or