I have a gallery of three RadMediaPlayer controls. The sources are added in the code behind. The mp4 files are sitting in a folder at the root of the app. The videos play in debug mode, but when I publish and upload to the dev web server, the video players don't play. They are just black boxes. I'm using IE11 and Chrome. In debug mode, the videos all play in both browsers, but after publishing none of them play in either browser. I have confirmed that the video files are included in the deployed published content and that the folder's path is consistent. What would cause them to not play after publishing?
Code behind snippet:
protected
void
Page_Load(
object
sender, EventArgs e)
{
videoPlayer1.Source = ConfigurationManager.AppSettings[
"MediaUrl"
] +
"Video01_EMISPurposeOverview.mp4"
;
videoPlayer2.Source = ConfigurationManager.AppSettings[
"MediaUrl"
] +
"Video02_AccessHomepageOverview.mp4"
;
videoPlayer3.Source = ConfigurationManager.AppSettings[
"MediaUrl"
] +
"Video03_PrintingInspections.mp4"
;
videoPlayer4.Source = ConfigurationManager.AppSettings[
"MediaUrl"
] +
"Video04_EnteringResultsResolutionOptions.mp4"
;
}
HTML snippet:
<
tr
class
=
"galleryRow"
>
<
td
>
<
div
class
=
"videoWrapper"
>
<
telerik:RadMediaPlayer
ID
=
"videoPlayer1"
runat
=
"server"
Source
=
""
Width
=
"300"
/>
<
p
class
=
"videoCaption"
>EMIS Purpose Overview</
p
>
</
div
>
</
td
>
<
td
>
<
div
class
=
"videoWrapper"
>
<
telerik:RadMediaPlayer
ID
=
"videoPlayer2"
runat
=
"server"
Source
=
""
Width
=
"300"
/>
<
p
class
=
"videoCaption"
>Homepage Access & Overview</
p
>
</
div
>
</
td
>
<
td
>
<
div
class
=
"videoWrapper"
>
<
telerik:RadMediaPlayer
ID
=
"videoPlayer3"
runat
=
"server"
Source
=
""
Width
=
"300"
/>
<
p
class
=
"videoCaption"
>Printing Inspections</
p
>
</
div
>
</
td
>
</
tr
>