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

Preview

1 Answer 47 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Reiner Ebel
Top achievements
Rank 1
Reiner Ebel asked on 19 Oct 2009, 11:43 PM
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

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 22 Oct 2009, 11:37 AM
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.
Tags
FileExplorer
Asked by
Reiner Ebel
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or