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

RadEditor-Media Manager

4 Answers 171 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Heather
Top achievements
Rank 1
Heather asked on 14 Aug 2014, 03:33 PM
In my radEditor I am using the image, media, flash, and document managers. I have a custom file handler, and content provider that puts the files onto my server, and allows me to view them. The media manager allows me to upload files, see the files in the file structure, insert, but I can't preview the media or play the media once inserted into the rad editor.  I also am using this in my email system tool. When I send the email it shows an X where the media player should be. I believe that the email is recognizing it as a media file because it shows me the WMPlayer.OCX.7.Object.
<object width="150" height="150" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" type="application/x-oleobject">
<param name="URL" value="/FileHandlers/FileSystemHandler.ashx?path=mediaUploads/chord.wav&amp;DealerSiteID=1"/>
<param name="AutoStart" value="true"/>
<embed width="150" height="150" pluginspage="http://www.microsoft.com/Windows/MediaPlayer" src="http://localhost:53316/FileHandlers/FileSystemHandler.ashx?path=mediaUploads/chord.wav&amp;DealerSiteID=1" type="application/x-mplayer2" autostart="true"></object>

is it because of the src path and the URL value? I have looked at a few forum threads but most of those issues were because of the classid missing or the object not being complete. Neither of those issues are happening here.

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Aug 2014, 11:51 AM
Hi Heather,

Please try the below sample code snippet which works fine at my end.

ASPX:
<telerik:RadEditor ID="RadEditor1" runat="server">
    <MediaManager DeletePaths="~/RadEditor/NewFolder" UploadPaths="~/RadEditor/NewFolder"
        ViewPaths="~/RadEditor/NewFolder" />
</telerik:RadEditor>

Thanks,
Princy.
0
Heather
Top achievements
Rank 1
answered on 27 Aug 2014, 12:44 PM
Thanks for the replay but it's not an issue getting the Media Manager to come up. It's once I insert the media into the rad editor. It doesn't play.
0
DEJOUX
Top achievements
Rank 1
answered on 18 Mar 2015, 09:36 AM
Hi, I post in this topic because I'm facing the exact same problem.
Once the media is inserted in the editor, it doesn't play at all.

So, here are my questions after reading the documentations and examples :
- is there a requirement for any allowed/forbidden file extensions ?
- should I install a specific browser extension and/or recommend it to my clients ?
- Do you have any tip to make a video play once it's inserted in the editor ? :)

Thank you
0
Misho
Telerik team
answered on 21 Mar 2015, 12:31 PM
Hello,

Firefox and Chrome are unable to play media and flash files in editable IFRAME / DIV elements and RadEditor just displays an image in the content area to mark that there is a video / flash object. Once the content is saved and displayed outside of RadEditor the video will be displayed.
This is not a bug of RadEditor but a not supported browsers feature.
You can however entirely customize the code generated by this dialog by further customizing it as per to your expectations or as per to the application requirements. Exact example for such approach is demonstrated in the provided demo - http://demos.telerik.com/aspnet-ajax/editor/examples/externaldialogspath/defaultcs.aspx
Another possibility is to implement an entirely custom dialog. Such approach is demonstrates in this demo - http://demos.telerik.com/aspnet-ajax/editor/examples/customdialogs/defaultcs.aspx

You can find attached a sample project that demonstrates how to create a custom dialog that inserts a  Video tag.

Regards,
Misho
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Editor
Asked by
Heather
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Heather
Top achievements
Rank 1
DEJOUX
Top achievements
Rank 1
Misho
Telerik team
Share this question
or