Flash video

7 posts, 0 answers
  1. Jason Brownhill
    Jason Brownhill avatar
    55 posts
    Member since:
    Jun 2009

    Posted 13 Jul 2010 Link to this post

    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.
  2. Kenny Rice
    Kenny Rice avatar
    1 posts
    Member since:
    Apr 2007

    Posted 13 Jul 2010 Link to this post

    Are you doing it inside of a blog/wiki?  Have you tried loading a SWF file instead?

  3. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 14 Jul 2010 Link to this post

    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.
  4. Jason Brownhill
    Jason Brownhill avatar
    55 posts
    Member since:
    Jun 2009

    Posted 14 Jul 2010 Link to this post

    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.

  5. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 14 Jul 2010 Link to this post

    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.
  6. Jason Brownhill
    Jason Brownhill avatar
    55 posts
    Member since:
    Jun 2009

    Posted 14 Jul 2010 Link to this post

    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.
  7. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 15 Jul 2010 Link to this post

    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.
Back to Top