This is a migrated thread and some comments may be shown as answers.

MOV files are played with Windows Media Player

7 Answers 192 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Sébastien Nunes
Top achievements
Rank 1
Sébastien Nunes asked on 25 Nov 2010, 03:23 PM
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 ?

7 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 29 Nov 2010, 08:44 AM
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.
0
Sébastien Nunes
Top achievements
Rank 1
answered on 02 Dec 2010, 12:46 PM
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 ?
0
Accepted
Stanimir
Telerik team
answered on 03 Dec 2010, 08:57 AM
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.
0
Sébastien Nunes
Top achievements
Rank 1
answered on 03 Dec 2010, 09:21 AM
Great, thanks for your answer Stanimir.

I'll try that.
0
mhmoud
Top achievements
Rank 1
answered on 10 Mar 2011, 10:00 AM
Please Help ME
 I Want Telerik can generate different HTML And Change Media Player to Web Player Ex.
FlowPlayer,JwPlayer
0
Rumen
Telerik team
answered on 11 Mar 2011, 01:57 PM
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!
0
mhmoud
Top achievements
Rank 1
answered on 13 Mar 2011, 11:53 AM
thanks
OnClientPasteHtml. Event what I Searched  it and I will Customize My Html Code
Thank you
Tags
WebParts for SharePoint
Asked by
Sébastien Nunes
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Sébastien Nunes
Top achievements
Rank 1
mhmoud
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or