+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / media player with images $ documents module.

media player with images $ documents module.

2 posts, 0 answered
  1. llillo
    llillo avatar
    1 posts
    Registered:
    12 Feb 2007
    29 Apr 2009
    Link to this post
    hello all, I need to play a video (. FLV and / or. SWF) in Sitefinity 3.2
    I have uploaded the file in the form of images and documents.
    This is the code.
                                        <div id="video_1">
                                            <a href="#;" onclick="window.open('http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&amp;promoid=DAFYL')">
                                                <img width="126" height="92" class="foto_flash" title="Descarga la ultima versión de Flash Player" alt="Descarga la ultima versión de Flash Player" src="/images/video_slideshow/video_slideshow_img_01.jpg" usemap="#Map" />
                                            </a>
                                            <script type="text/javascript" >
                                            // <![CDATA[
                                            var so = new SWFObject('<%# ResolveUrl( DataBinder.Eval(Container.DataItem, "Url").ToString() ) %>', "Inicio", "126px", "92px", "8", "#FFF", "transparent");
                                            so.write("video_1");
                                            // ]]>
                                            </script>
                                        </div>
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    08 May 2009
    Link to this post
    Hi llillo,

    I think you are on the right way.

    Basically every item in the Images and Documents module has an URL, and URL with extension properties. You could use those to extract the item path and pass this variable to the media player, which will play the item. I am not really sure if your FLV items can be played directly, most of the times they need a player to get them streaming to the client.

    On a side note, where did you insert this code? I could test this scenario, but I need to know which template you have modified. If it is possible to debug the code, please check whether there is something DataItem object.

    All the best,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered