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

RadMediaPlayer shows black screen after the end of video.

1 Answer 120 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
Bill Delisi
Top achievements
Rank 1
Bill Delisi asked on 08 Jan 2016, 06:15 AM

I want to play a youtube video in RadMediaPlayer.
After end of a video , the RadMediaPlayer shows a black screen .
But I do not want to display the black screen and after end of a video
I want to display same look as I saw at the begin.

what can I do for this ??

Thanks,

Firoz Mondal

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 12 Jan 2016, 03:50 PM
Hello Bill,

I am afraid you cannot achieve this requirement using a YouTube source, because they do not provide logic for repeating implementations. As for a local source, you can use:
<telerik:RadMediaPlayer ID="RadMediaPlayer1" runat="server"
    Height="360px" Width="640px" Source="~/Video/chin.mp4"
    OnClientEnded="playerEnd">
</telerik:RadMediaPlayer>
JavaScript:
function playerEnd(sender, args) {
    sender.set_currentTime(0);
}

Hope this helps.

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
MediaPlayer
Asked by
Bill Delisi
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or