Click here to Skip to main content
11,496,146 members (654 online)
The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.
I am presently working on mobile site.That mobile site will play the videos and audio files on web site using .net.My task is play the files with out flash player.

If You know any solution for my question,Please share the answer for me.

Thanks in Advance.
Posted 8-Jul-13 1:01am
dholakiyaankit at 8-Jul-13 6:07am
you should use dll for that one without flash player there is vimeo also try to find some inbuilt dlls on gooooooooooooogle.
Try this....Smile | :)


<html xmlns="">
<head  runat="server">
    <form id="form1"  runat="server">
    <table style="width: 400px;" border="0" cellpadding="2" cellspacing="3">
            <td style="width: 150px;" valign="top">
            <td style="width: 200px;" valign="top" align="left">
                <asp:label id="lblMsg" cssclass="tdMessage" text="" runat="server" xmlns:asp="#unknown"></asp:label>
            <td class="tdText" valign="top" align="left">
                <nobr> Select a file</nobr>
            <td style="text-align: left;" valign="top">
                <asp:fileupload id="fUpload" runat="server" width="300px" xmlns:asp="#unknown"></asp:fileupload>
            <td valign="top" align="left">
                <asp:button id="btnUpload" runat="server" text="Upload" onclick="btnUpload_Click" xmlns:asp="#unknown">
            <td valign="top" align="left">
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=",0,19,0">
                    width="200" height="100">
                    <param name="movie" value="<% =swfFileName%>">
                    <param name="quality" value="high">
                    <embed src="<%=swfFileName%>" quality="high" pluginspage="">
                        type="application/x-shockwave-flash" width="200" height="100">


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
namespace VideoDemo
    public partial class VDemo : System.Web.UI.Page
        public string swfFileName;
        protected void Page_Load(object sender, EventArgs e)
        protected void btnUpload_Click(object sender, EventArgs e)
        if (fUpload.FileContent.Length >0 && IsVaildFile())
            string Path = GetUplaodImagePhysicalPath();
            DirectoryInfo dirUploadImage = new DirectoryInfo(Path);
            if (dirUploadImage.Exists == false)
            string fileUrl = Path + fUpload.PostedFile.FileName;
            swfFileName = "images/" + fUpload.PostedFile.FileName;
    private bool IsVaildFile()
        string swfExt = System.IO.Path.GetExtension(fUpload.PostedFile.FileName);
        switch (swfExt)
            case ".swf":
                return true;
                    lblMsg.Text = "Please select only swf file.";
                    return false;
    string GetUplaodImagePhysicalPath()
        return System.Web.HttpContext.Current.Request.PhysicalApplicationPath + "images\\";
Use Video tag if you using html5
<video width="300" height="250" controls="">
  <source src="mymovie.mp4" type="video/mp4">
  <source src="mymovie.ogg" type="video/ogg">
  Your browser does not support the video tag.
am used for audio and video playing with in literal using
how to upload and play video into database..
Thank u.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 RyanDev 230
1 Sergey Alexandrovich Kryukov 114
2 Richard Deeming 100
3 OriginalGriff 89
4 Mostafa Asaduzzaman 59
0 Sergey Alexandrovich Kryukov 10,401
1 OriginalGriff 8,910
2 Sascha Lefèvre 3,899
3 Maciej Los 3,422
4 Richard Deeming 2,600

Advertise | Privacy | Mobile
Web02 | 2.8.150520.1 | Last Updated 17 Jul 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100