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

Media Manager, Flash embedding and .flv

1 Answer 199 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 21 Apr 2008, 03:04 PM
I'm working on a project where I'd like the RadEditor to query the insertion of a flash file and if it has a .swf extension to embed the flash movie in the page using custom code where as if the extentsion is .flv to use a different embed code and just pass the filename in the querystring to the a Flash Video player we'll create.
 
I've read the below post but had a couple of queries.

http://www.telerik.com/support/kb/article/b454K-mke-b454T-bgh-b454c-bgh.aspx

1) Why are the above changes be made to the MediaManger.ascx file and not the FlashManager.ascx file?

2) Can anyone offer a demo or more guidance who's done this before? I'm suprised more people haven't posted regarding this.

Any help would be much appreciated.

Thanks in advance,
Tim

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 24 Apr 2008, 10:12 AM
Hi Tim,

The editor's managers work with files that can be rendered and displayed by the browser, e.g. images, links, swf and movies. That's why, the Flash manager does not allows .flv / .fla files, because they are source code files and they cannot be rendered by the browser.

That is why, currently, we do not plan to provide direct support for FLV files, because in order to play FLV files you need to use a specific FLV player, which is not free.
If you would like to upload flv / fla files on the server, you should use the document manager, and set the DocumentsFilters property to "*.flv,*.fla".

As an alternative solution in your case, I would suggest to create your own, Custom Manager which will use the player that you prefer and add it as a custom dialog in RadEditor. More information on how to create and implement custom dialogs is available in the documentation - section Dialogs


In addition, I made some tests 
using RadEditor and the following FLV OBJECT tag in it:

<object width="512" height="384" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
http://fpdownload.macromedia.com/pub/
shockwave/cabs/flash/swflash.cab#version=8,0,0,0"> <param name="flashvars" value="file=
http://download.videohelp.com/download/video2.flv" /><param name="movie" value="http://forum.videohelp.com/images/guides/315188/flvplayer.swf" /><embed src="http://forum.videohelp.com/images/guides/315188/flvplayer.swf" originalAttribute="src" originalPath="http://forum.videohelp.com/images/guides/315188/flvplayer.swf" originalAttribute="src" originalPath="http://forum.videohelp.com/images/guides/315188/flvplayer.swf" width="512" height="384" bgcolor="#FFFFFF" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=http://download..videohelp.com/download/video2.flv" ></object>

Everything was ok - please, once again, note that in order to play FLV files you need to use a specific FLV player.


I hope this helps.

Kind regards, George
the Telerik team


Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Tim
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or