HTML5 Video tag and Ext.Net

  1. #1

    HTML5 Video tag and Ext.Net

    Hi,

    I'm using Ext.net with my mvc 3 web project and I'm trying to insert a <video> tag inside of a Html.X().Panel inside .HTML(). If I do this in a html file outside my project it works but if I do this inside my project, an error appears about my file path. I need to do this because the client wants to run the app in iPads...
    This is my html "page" outside the project
    <!DOCTIPE HTML>
    <head></head>
    <body>
    	<div style="position: absolute; bottom: 0; left: 0; width:100%; height:100%;">                                                
    	   <video width="100%" height="100%" controls >
    		  <source src="X:/icManagerFiles/Video/File.mp4" type="video/mp4">
    		  Your browser does not support the video tag.
    		</video>       
    	</div>
    </body>
    <footer></footer>
    And this is my html "partial view" inside the project:
    @model BE.ContentContainer
    @{
        var pnlMedia = Html.X().Panel();
            
        var pnlPreview = Html.X().Panel()
            .Border(false)
            .BodyStyle("background-color: transparent;")
            .LayoutConfig(new HBoxLayoutConfig { Align = HBoxAlign.Stretch, DefaultMargins = "2" })
            .Items(i =>
            {
                i.Add(pnlMedia);
                if (Model != null)
                {
                    foreach (BE.Content c in Model.Items)
                    {
                        string[] type = c.fileMime.Split('/');
                        switch (type[0])
                        {
                            case "video":
                                pnlMedia
                                .Flex(1)                            
                                .Html
                                (
                                    @<div style="position: absolute; bottom: 0; left: 0; width:100%; height:100%;">                                                
                                       <video width="100%" height="100%" controls >
                                          <source src="X:/icManagerFiles/Video/File.mp4"  type="video/mp4">
                                          Your browser does not support the video tag.
                                        </video>       
                                    </div>
                                );
                                break;
                        }
                    }
                }
            });
    }
    @(
        pnlPreview.Show()
    )
    Can anyone have achieved this before?... Any help or suggestion is welcome... ()
    Attached Thumbnails Click image for larger version. 

Name:	htmlpage.png 
Views:	18 
Size:	21.4 KB 
ID:	6268   Click image for larger version. 

Name:	htmlpagerunning.jpg 
Views:	21 
Size:	36.6 KB 
ID:	6269   Click image for larger version. 

Name:	myprojectpage.png 
Views:	18 
Size:	24.0 KB 
ID:	6270   Click image for larger version. 

Name:	myprojectpagerunning.png 
Views:	16 
Size:	9.0 KB 
ID:	6271  

Similar Threads

  1. How to add HTML5 video tag in side form panel
    By arunsathyan in forum 1.x Help
    Replies: 2
    Last Post: Feb 15, 2022, 8:12 PM
  2. [CLOSED] Iphone / mobile / html5
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 03, 2016, 7:55 AM
  3. [CLOSED] Show a video
    By Oliver in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: May 31, 2012, 3:09 PM
  4. EXT.NET & HTML5 Compatibility
    By NaN in forum Open Discussions
    Replies: 2
    Last Post: Sep 23, 2011, 10:52 AM
  5. Can I display video in an Ext.Net page?
    By bapti in forum 1.x Help
    Replies: 3
    Last Post: Jun 16, 2011, 4:27 PM

Tags for this Thread

Posting Permissions