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

Flash video

6 Answers 96 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Jason Brownhill
Top achievements
Rank 1
Jason Brownhill asked on 13 Jul 2010, 04:14 PM
Hi,
 I've added the file extension .flv to the allowed list in the ConfigFile.xml, but on uploading and attaching the image into the editor, the video doesn't appear. Can you advise what I am missing, or if this is even possible at all? I would have thought it could handle flash video if it can handle wmv files also.

Thanks,
Jason.

6 Answers, 1 is accepted

Sort by
0
Kenny Rice
Top achievements
Rank 1
answered on 13 Jul 2010, 06:15 PM
Are you doing it inside of a blog/wiki?  Have you tried loading a SWF file instead?
0
Stanimir
Telerik team
answered on 14 Jul 2010, 07:34 AM
Hi Kenny Rice,

Review the following online help articles:
http://www.telerik.com/help/aspnet-ajax/allow-flash-media.html
http://www.telerik.com/help/aspnet-ajax/media_manager.html
http://www.telerik.com/help/aspnet-ajax/flash_manager.html

SharePoint forms scenario (Lists, Wikis, Blogs, etc.)
You cannot enter Media / Flash files in such scenarios. There RadEditor does not have control over the presentation view which means that we cannot control the output when it is not in edit mode.




Sincerely yours,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jason Brownhill
Top achievements
Rank 1
answered on 14 Jul 2010, 09:44 AM

Hi Stanimir,

 I've gone through all of those articles and have the menu options in the toolbar and configured in the ConfigFile.xml and ToolsFile.xml - since we're primarily using this tool just for the content editor web part, I'm not editing/changing the list xml files.

 

I've added an *.swf file normally, but adding the *.flv extension to the configfile.xml and then uploading a flash video file (.flv) does not give the required results.

 

 Does the flash media function play flash video files?

 

Thanks,

Jason.

0
Stanimir
Telerik team
answered on 14 Jul 2010, 12:12 PM
Hello Jason,

You can find helpful information about flv movies in RadEditor in the following forum threads:

RadEditor : Add a video thought FLV feature ?
Media Types
PasteHTML behavior custom dialogue
Implementing FLV into Flashmanager


All the best,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jason Brownhill
Top achievements
Rank 1
answered on 14 Jul 2010, 05:00 PM
Hi Stanimir,

 Thanks for the response back. The first 3 links meant nothing to me, but the final one had some html in there which works within the editor when pasted into the html edit view. The only problem I have with the solution is that I have no clue what it means by this :-

If it works as expected you can modify the inserted via the Flash manager content using the OnClientPasteHtml event property.

 I'm not sure exactly what to do in terms of allowing flv content within the flash manager with this solution provided. Sorry.

Thanks very much,
Jason.
0
Stanimir
Telerik team
answered on 15 Jul 2010, 10:34 AM
Hello Jason,

1. Add the following code to the ConfigFile.xml:
<property name="OnClientPasteHtml">OnClientPasteHtml</property>

2. Add the following sample javascript method to the MOSSEditorTools.js, which is located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder.
function OnClientPasteHtml(editor, args)
{
    var commandName = args.get_commandName();
    if (commandName == "FlashManager")
    {
        var value = args.get_value();
        var url = "";
        //you can use regular expression, to extract the url of the flv file (for example movi1.flv)
        value.replace(/<embed[^>]*src="([^">]*\.flv)"/i, function (match, group1, offset, fullText)
        {
            url = group1;
        });
 
        if (url != "")
        {
            //here you generete the HTML Code, which will play the flv file
            //use the url to assign the necessary code to newValue variable
            var newValue = "HTML code for playing flv";
 
            //this will cause the "FlashManger" command to paste the new string.
            args.set_value(newValue);
        }
    }
}

You need to modify this method so it will paste the HTML code, which will play the flv movie.



All the best,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
WebParts for SharePoint
Asked by
Jason Brownhill
Top achievements
Rank 1
Answers by
Kenny Rice
Top achievements
Rank 1
Stanimir
Telerik team
Jason Brownhill
Top achievements
Rank 1
Share this question
or