Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > General and Integration Projects > Embedded Video Player Application

Embedded Video Player Application

Feed from this thread
  • Posted on Jul 30, 2007 (permalink)

    Requirements

    RadControls version

    RadUpload, RadGrid

    .NET version

    2.0

    Visual Studio version

    2005

    programming language

    C#

    browser support

    IE/Safari for Windows 


     
    PROJECT DESCRIPTION 

    The application is basically an embedded Windows Media Player that plays files in a web page that have been uploaded into the RadGrid via the RadUpload.

    The application uploads a media file and then renames that file to avoid overwriting of files. The file is then displayed in a RadGrid... with a template column that includes a play button. Click the play button walla the file plays.

    NOTE for FireFox users: I have included some commented code to get the app to work with FireFox however it is buggy. Still working on this part but the app works fine for IE and Safari for Windows.

    This was a first attempt at creating this type of media application please submit improvements if you have any.

    You can view a working AJAXED version at the following URL (IE & Safari only... code for FireFox is included in the project):
    http://beta-270837.beta1.iis7betahosting.net/RadGridAjax/Default.aspx
    Thanks!

    Attached files

    Reply

  • Sebastian Sebastian admin's avatar

    Posted on Aug 2, 2007 (permalink)

    Hi sayitfast,

    Thank you very much for the time you spent on developing this demo project and posting it as a free online resource. This will be a nice starting point for everyone interested in developing video player application with RadGrid/RadUpload and broadcasting the uploaded files interactively in real time.

    We really appreciate your effort and added 7000 Telerik points to your account for the involvement. Feel free to update the demo at any given time to work flawlessly under Gecko-based browsers/Opera as well.

    Best regards,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

    Reply

  • Arie Segev avatar

    Posted on Aug 7, 2007 (permalink)

    Thank you, nice one and just  what I needed!  It will be very nice if you get it to work in firefox. In the meantime, if you or anybody else need to get it working the alternative is to use a non-media player solution for FF.  I am using a .net  ajaxified JS player that works in all browsers EXECPT IE.
    This is a demo: http://www.themorningoutline.com/sample/AJAXtream.html 
    The reason it does not work in IE is that it is using base64 encoding that it is not supported by IE. I started working on modifying the player to work in IE using js Base64 Codec that works for IE (see my posting at http://www.telerik.com/community/forums/thread/b311D-hcggd.aspx ) but it's very complicated and I prefer to go with a hybrid solution . Incorporating the FF player into your solution should be fairly straight forward I think.

    Thanks,
    -- Arie

    Reply

  • Sebastian Sebastian admin's avatar

    Posted on Aug 8, 2007 (permalink)

    Thank you for bringing this detail to the attention of the Telerik community, Arie. Your Telerik points have been updated for the feedback.

    Best,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

    Reply

  • sakura avatar

    Posted on Nov 10, 2010 (permalink)

    You Have done a great job,but my requiremment is one step  addition to  Videoplayer.zip which i have attached.
    i want to create application like http://sofo.mediasite.com/mediasite/viewer/?peid=714b29e5-da62-4a49-bf30-0369dd602991
          so, I want to handle timer of this videoplayer in order to make cordination of video player with changes in ppt slides.

    please help me.pls pls reply me,

    its very urgent plssssssss...

    Thaking you

    Attached files

    Reply

  • Posted on Dec 22, 2010 (permalink)

    You can accomplish this by using the Windows Media Player API:
    http://msdn.microsoft.com/en-us/library/dd758070(v=vs.85).aspx

    I have not experimented with this myself so I would not be of much use...

    Sorry.

    Reply

  • Naveen avatar

    Posted on Mar 14, 2011 (permalink)

    Thanks a lot, it's a great work,but how can it's work at firefox in linux?

    Reply

  • Posted on Mar 15, 2011 (permalink)

    In the default.aspx.cs file inside the InjectPlayer method you can comment out the top half of the code and uncomment the code below it. 

    i just tried it in Opera, Safari, FF, and IE 7, 8 and seems to work fine. IE 6 might be an issue.

    You can just replace the InjectPlayer method code with this.

    string InjectPlayer(string filePath)
    {
     
        StringBuilder sa = new StringBuilder();
        // sa.Append("<center>");
        sa.Append("<OBJECT ID=\"Player\" Object Type=\"video/x-ms-wmv\" width=\"320\" height=\"305\" VIEWASTEXT > ");
        sa.Append("<PARAM name=\"autoStart\" value=\"True\">");
        sa.Append(string.Format("<PARAM name=\"SRC\" value=\"{0}\">", filePath));// IE needs this extra push when using MIME type not class id
        sa.Append(string.Format("<PARAM name=\"URL\" value=\"{0}\">", filePath));
        sa.Append("<PARAM name=\"AutoSize\" value=\"False\"");
        sa.Append("<PARAM name=\"rate\" value=\"1\">");
        sa.Append("<PARAM name=\"balance\" value=\"0\">");
        sa.Append("<PARAM name=\"enabled\" value=\"true\">");
        sa.Append("<PARAM name=\"enabledContextMenu\" value=\"true\">");
        sa.Append("<PARAM name=\"fullScreen\" value=\"false\">");
        sa.Append("<PARAM name=\"playCount\" value=\"1\">");
        sa.Append("<PARAM name=\"volume\" value=\"30\">  ");
        sa.Append("</OBJECT>");
        //  sa.Append("</center>");
        return sa.ToString();
    }

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > General and Integration Projects > Embedded Video Player Application