Embedded Video Player Application

Thread is closed for posting
8 posts, 0 answers
  1. 30478D53-0866-4EE1-B302-8A76D30A3C40
    30478D53-0866-4EE1-B302-8A76D30A3C40 avatar
    58 posts
    Member since:
    Oct 2006

    Posted 30 Jul 2007 Link to this post

    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!

  2. C7498A83-7E2E-418C-8791-93EF573A7569
    C7498A83-7E2E-418C-8791-93EF573A7569 avatar
    9934 posts
    Member since:
    Nov 2016

    Posted 02 Aug 2007 Link to this post

    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
  3. 73FCD5D1-3429-4ADB-A7B6-2621A8579331
    73FCD5D1-3429-4ADB-A7B6-2621A8579331 avatar
    39 posts
    Member since:
    Dec 2006

    Posted 07 Aug 2007 Link to this post

    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
  4. C7498A83-7E2E-418C-8791-93EF573A7569
    C7498A83-7E2E-418C-8791-93EF573A7569 avatar
    9934 posts
    Member since:
    Nov 2016

    Posted 08 Aug 2007 Link to this post

    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
  5. D7D2E18D-AA13-43AB-80E3-78711B8EF9FC
    D7D2E18D-AA13-43AB-80E3-78711B8EF9FC avatar
    1 posts
    Member since:
    Nov 2010

    Posted 10 Nov 2010 Link to this post

    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

  6. 30478D53-0866-4EE1-B302-8A76D30A3C40
    30478D53-0866-4EE1-B302-8A76D30A3C40 avatar
    58 posts
    Member since:
    Oct 2006

    Posted 22 Dec 2010 Link to this post

    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.
  7. 573D6342-21EF-4B74-9AAB-C44FF07D98BB
    573D6342-21EF-4B74-9AAB-C44FF07D98BB avatar
    2 posts
    Member since:
    Feb 2011

    Posted 14 Mar 2011 Link to this post

    Thanks a lot, it's a great work,but how can it's work at firefox in linux?
  8. 30478D53-0866-4EE1-B302-8A76D30A3C40
    30478D53-0866-4EE1-B302-8A76D30A3C40 avatar
    58 posts
    Member since:
    Oct 2006

    Posted 15 Mar 2011 Link to this post

    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();
    }
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.