Log in

View Full Version : video not working in IE



gib65
03-17-2015, 03:50 PM
Hello,

I'm wondering if there's any reason a video will play in Chrome but not IE.

I have a webpage with this iframe inside it:

<div id="VideoDiv">
<iframe id="VideoIFrame" scrolling="no" frameborder="0" src="PlainVideoTemplate.aspx?VideoPath=<%=Video1%>" >
</iframe>
</div>

As you can see, this frame references PlainVideoTemplate.aspx passing the video path in the URL.

PlainVideoTemplate.aspx looks like this:



<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PlainVideoTemplate.aspx.cs" Inherits="AHSLearning.Training.Templates.PlainVideoTemplate" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link type="text/css" rel="stylesheet" href="css/VideoControls.css" />
<script type="text/javascript" src="../../Scripts/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../../Scripts/jquery-ui-1.10.4.custom.min.js"></script>
<script type="text/javascript" src="../../Scripts/Application.js"></script>
<script type="text/javascript" src="Scripts/PlainVideoTemplate.js"></script>
<script type="text/javascript" src="Scripts/VideoControls.js"></script>
</head>
<body style="margin: 0;">
<form id="Form1" runat="server">
<div id="TemplateDiv">
<img id="PleaseSelectACourseImg" src="<%=ImagePath %>" border="0" />
<video id="Video" class="Video" autoplay="autoplay" preload="none" style="width: 100%;">
<source id="VideoSource" src="" type="video/mp4" />
Need HTML5 browser for video.
</video>
<!-- Video Controls -->
<div id="video-controls">
<button type="button" id="play-pause" class="play">Play</button>
<input type="range" id="seek-bar" value="0"/>
<button type="button" id="mute">Mute</button>
<input type="range" id="volume-bar" min="0" max="1" step="0.1" value="1"/> <!-- hidden -->
<button type="button" id="full-screen">Full-Screen</button> <!-- hidden -->
</div>

</div>
</form>
</body>
</html>


Here's what it looks like in Chrome:

5638

This is what it looks like ion IE:

5637

Does anyone know what might be the problem in IE?

Beverleyh
03-17-2015, 06:21 PM
Without a link to your page, we're working blind.

When you view the source of the web page, what is the video/path referenced here (red)? src="PlainVideoTemplate.aspx?VideoPath=<%=Video1%>"

Does that print in IE?

Have you tried it with a hard-coded video path (no variables)? and does that work instead?

Have you tried an absolute path?

If you need more help, please provide a link to your page.

gib65
03-17-2015, 08:58 PM
Without a link to your page, we're working blind.

The website is password secured. You wouldn't be able to get even if I did give you a link.


When you view the source of the web page, what is the video/path referenced here (red)? src="PlainVideoTemplate.aspx?VideoPath=<%=Video1%>"

It gives me a valid path to a video and I`ve confirmed it exists on the hard drive.

[QUOTE=Beverleyh;311471]Does that print in IE?

Yes.


Have you tried it with a hard-coded video path (no variables)? and does that work instead?

Yes and no.


Have you tried an absolute path?

Just did, and no.


If you need more help, please provide a link to your page.

I wish I could but posting code snippets is the best I can do for now. I tried replicating the problem in a simple html files but everything works when I do that.