I have come across a strange behavior with RadMediaPlayer (version : 2013.3.1015.40) while specifying the relative path of a media file. If the "Source" property is set to a relative path using the Web application root operator (~), the video won't load. Instead of using the (~) operator, if I specify the relative path using ../FolderName/ then the control works as expected. The relative URL containing the Web application root operator works properly when it is set to the Path property of the MediaPlayerSource under the Sources tag.
ASPX: (Video does not load)
ASPX: (Video loads as expected)
Please have a look into this complete solution where the above mentioned issue can be replicated. Also I would like to point out that if I select the media file through the controls smart tag, the relative URL generated for the Source will be having the Web application root operator (~) (check the screenshot attached) but the video wont load which seems to confuse the users.
9 Answers, 1 is accepted
I had the same problem you described. Since I have to create the player from codebehind, my solution was like this:
I beleive this should be fixed by the dev team.
Thank you for bringing this problem to our attention. We are aware of the tilda problem and our developers will fix it for the upcoming releases.
Also, specifying absolute path to source doesn't seem to work locally? Please clarify.
I have separate folder for videos under same project in Visual studio. When I set relative path to source, videos are playing. But if I store videos in different drive/another server and map path to source as virtual directory, it doesn't work. Please help. Thanks.
I'm afraid ASP.NET does not support converting physical path to an app relative one. You can check various sources over the net about this matter and verify it using a simple asp:Image or the regular HTML5 video tag:
I hope the clarification was helpful.
DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!
I am having a problem with using RadMediaPlayer, and I think that the problem is because of the file path.
My file is saved on the server but for some reason player does not want to play it. I can see all the buttons labels but the time is 0:00 and nothing happens.
When I start my application locally I get the video without any problems.
Can you tell me what can be the problem?
I am using Telerik library version 2015.2.729.40. file is .mp4 type so I think that there is some small thing that I have missed.
This is my code for playing the video:
Do you have this problem on every browser or only on IE?
Generally, RadMediaPlayer should be able to play any video, which is playable with the standard HTML5 video tag and even Flash videos. You can hardcode your Source path to see the result:
Does MediaPlayerVideoFile support the path of type UNC - video files are stored in anther network drive?