Results 1 to 3 of 3

Thread: video not working in IE

  1. #1
    Join Date
    Jun 2008
    Posts
    192
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default video not working in IE

    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:

    Code:
    <%@ 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:

    Click image for larger version. 

Name:	ie.jpg 
Views:	190 
Size:	16.7 KB 
ID:	5638

    This is what it looks like ion IE:

    Click image for larger version. 

Name:	chrome.jpg 
Views:	215 
Size:	5.4 KB 
ID:	5637

    Does anyone know what might be the problem in IE?

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    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.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Jun 2008
    Posts
    192
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Beverleyh View Post
    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.

    [QUOTE=Beverleyh;311471]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 Originally Posted by Beverleyh View Post
    Does that print in IE?
    Yes.

    Quote Originally Posted by Beverleyh View Post
    Have you tried it with a hard-coded video path (no variables)? and does that work instead?
    Yes and no.

    Quote Originally Posted by Beverleyh View Post
    Have you tried an absolute path?
    Just did, and no.

    Quote Originally Posted by Beverleyh View Post
    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.

Similar Threads

  1. Replies: 4
    Last Post: 07-26-2014, 12:41 PM
  2. Replies: 3
    Last Post: 11-10-2013, 12:38 AM
  3. Replies: 2
    Last Post: 06-25-2010, 05:02 PM
  4. Working with Flash Video
    By btelecky in forum Flash
    Replies: 4
    Last Post: 03-12-2009, 01:56 PM
  5. Replies: 3
    Last Post: 09-24-2006, 07:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •