MOV files are played with Windows Media Player

8 posts, 1 answers
  1. Sébastien Nunes
    Sébastien Nunes avatar
    30 posts
    Member since:
    Mar 2010

    Posted 25 Nov 2010 Link to this post

    Hi all,

    In the Media Manager config, I added the *.mov extension but when users add a mov file the player is Windows Media Player which can't play mov files.

    How can I configure Telerik to use quicktime when the media is a .mov file ?

  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 29 Nov 2010 Link to this post

    Hi Sébastien,

    RadEditor can not control which plug-in the browser chooses to play media files. The content area of the editor is an editable IFRAME and the browser is displaying the html source in it. If you have problems with the generated code i will be able to help you to set the control to produce the needed one. In order to do this though, I will need a sample of the currently generated HTML code (in order to get it use RadEditor in Html mode) and the one that you wish to be generated.


    All the best,
    Stanimir
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  3. Sébastien Nunes
    Sébastien Nunes avatar
    30 posts
    Member since:
    Mar 2010

    Posted 02 Dec 2010 Link to this post

    Hi,

    Thanks for your answer. Here is a sample code I would need when the user is using MOV file from the Media Manager:

    <object codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="400" width="400" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B">
    <param name="src" value="myfile.mov"/>
    <param name="autoplay" value="true"/>
    <param name="scale" value="aspect" />
    <param name="controller" value="true" />
    <param name="type" value="video/quicktime" />
    <embed src="/myfile.mov" autoplay="true" type="video/quicktime" scale="aspect"
    controller="true" pluginspage="http://www.apple.com/quicktime/download/" height="400"
    width="400">
    </object>

    Why Telerik cannot generate different HTML depending on the media file type ?
  4. Answer
    Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 03 Dec 2010 Link to this post

    Hello Sébastien,

    There are two ways of modifying the MediaManager functionality.

    1. Modify the dialog it self:

    You can find information on how to modify the dialog in the following online help articles:
    http://www.telerik.com/help/aspnet-ajax/customizingimagedialog.html
    http://www.telerik.com/help/aspnet-ajax/moss_externaldialogspath_property.html - (use the same approach for MediaManager.ascx). You need to change the code in the _createMediaElement method.

    2. Use the OnClientPaste event of RadEditor:

    In order to overwrite OnClientPaste you need to do the following.
    Add the following code in the ConfigFile.xml, which is located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder:

    <propertyname="OnClientPasteHtml">OnClientPasteHtml</property>

    Then add the following code to the MOSSEditorTools.js, which is located in the mentioned above folder:

    functionOnClientPasteHtml(editor, args)
    {
        varcommandName = args.get_commandName();
        if(commandName == "MediaManager")
        {
            varvalue = args.get_value();
            //modify value variable to match the requirements
            args.set_value(value);
        }
    }


    I hope this helps.

    Kind regards,
    Stanimir
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Sébastien Nunes
    Sébastien Nunes avatar
    30 posts
    Member since:
    Mar 2010

    Posted 03 Dec 2010 Link to this post

    Great, thanks for your answer Stanimir.

    I'll try that.
  6. mhmoud
    mhmoud avatar
    2 posts
    Member since:
    Mar 2011

    Posted 10 Mar 2011 Link to this post

    Please Help ME
     I Want Telerik can generate different HTML And Change Media Player to Web Player Ex.
    FlowPlayer,JwPlayer
  7. Rumen
    Admin
    Rumen avatar
    12847 posts

    Posted 11 Mar 2011 Link to this post

    Hello mhmoud,

    Did you try to edit the content generated by the MediaManager / FlashManager dialogs in the OnClientPasteHtml event of RadEditor? You can further customize these dialogs using the provided external dialogs files as shown in this demo: Customize Built-in RadEditor dialogs.

    We do not support third party player and this custom task should be implemented by the developer working with the control.

    Best regards,
    Rumen
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  8. mhmoud
    mhmoud avatar
    2 posts
    Member since:
    Mar 2011

    Posted 13 Mar 2011 Link to this post

    thanks
    OnClientPasteHtml. Event what I Searched  it and I will Customize My Html Code
    Thank you
Back to Top