1. Reiner Ebel
    Reiner Ebel avatar
    15 posts
    Member since:
    Jul 2009

    Posted 19 Oct 2009 Link to this post

    Hello,

    How can i make a preview like images for video files. I load only video files (mpg, wmv) in the directory. Can I make a Preview for this files? I need the windows mediaplayer.

    Thank you

    Reiner
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 22 Oct 2009 Link to this post

    Hi Reiner,

    I recommend you use this code library (provided by Marc Waanders) as a base in your scenario. You need to change the added HTML content in the ResolveDirectory method (media.aspx.vb file) :
    If String.Compare(fileItem.Extension, ".jpg", True) = 0 Or String.Compare(fileItem.Extension, ".gif", True) = 0 Or String.Compare(fileItem.Extension, ".png", True) = 0 Then
        fileItem.Attributes.Add("Thumb", "<img src=" & Context.Request.ApplicationPath & Functies.FormatThumbnail(Context.Server.UrlEncode(fileItem.Location)) & ">")
    End If

    In your case you need to add an HTML content based on this article.

    I hope this helps.

    Greetings,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top