Wrox Programmer Forums
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 14th, 2014, 06:39 AM
Authorized User
 
Join Date: Dec 2010
Posts: 27
Thanks: 10
Thanked 0 Times in 0 Posts
Default Video not showing

Hi.
I am working on a website, where on one page I have a video. I am using VS2010 as a development environment. Now, my problem is that I can't see my videos after having deployed the site to my server. When viewing the page with the VS2010 built-in browser, everything is OK. I can see my videos.
The markup for my page is like this:

<%@ Page Title="Video" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ShowVideo.aspx.cs" Inherits="ShowVideo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<h1>Testing videos</h1>
<p>1st video is stored on-site:</p>
<video width ="320" height="240" src="VideoData/MAH09112.mp4" controls >
Your browser does not support the video tag.
</video>
<br /><br />
<p>2nd video is external to this site:</p>
<video width ="320" height="240" src=http://techslides.com/demos/sample-videos/small.mp4 controls >
Your browser does not support the video tag.
</video>
<p>Both videos show when viewed with VS2010 built-in browser.<br />
Only 2nd video shows when the deployed website is viewed in IE(9), Firefox(34) or Chrome(39).</p>
</asp:Content>

As stated in the markup, both videos are visible when viewing the page under VS2010, whereas only the second is visible when the site is visited in standard browsers.
The page can be viewed here: http://melo12b54.nes56.net/ShowVideo.aspx

I have tested with IE9, Firefox 34.0 and Chrome 39.0 with identical results.
Do I perhaps need a video plugin?
Or are not all .mp4 video files created equal?
__________________
Regards,
Gudni G. Sigurdsson
 
Old December 14th, 2014, 06:23 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You may need to register the mp4 extension as a mime type on the server: http://forums.asp.net/t/1470612.aspx...play+MP4+files

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
Gudni (December 15th, 2014)
 
Old December 15th, 2014, 04:43 AM
Authorized User
 
Join Date: Dec 2010
Posts: 27
Thanks: 10
Thanked 0 Times in 0 Posts
Default

Hi, Imar.
Thank you very much. That worked!
__________________
Regards,
Gudni G. Sigurdsson





Similar Threads
Thread Thread Starter Forum Replies Last Post
video streaming sukhvin C# 0 January 11th, 2008 03:40 PM
play online video or video rajanikrishna ASP.NET 2.0 Basics 1 September 17th, 2007 01:01 PM
Video buffering, streaming, and displaying video t CurvyBabe C# 1 March 9th, 2007 01:17 PM
Please Help!! Video?? jamyz VB How-To 0 October 15th, 2005 01:22 PM
Streaming Video anshul HTML Code Clinic 0 June 29th, 2005 01:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.