Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Question on MediaGallery webpart View modes: 
User avatar
Member
Member
gary.chan-e-crusade - 5/27/2009 3:35:40 AM
   
Question on MediaGallery webpart
Hi,

I have added MediaGallery webpart to play my media file(mov,wmv,mp4) in media library, However,

the movie will not play automatically when i click image or text link in index page,

How to set the movie will be played in auto?

Thanks

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 5/27/2009 8:37:00 AM
   
RE:Question on MediaGallery webpart
Hello,

Unfortunately, this feature isn't available in the current version, you would have to code it by yourself (file ~\CMSModules\MediaLibrary\InlineControls\MediaFileControl.ascx.cs). This feature will be included in the next version.

Best Regards,
Boris Pocatko

User avatar
Member
Member
gary.chan-e-crusade - 5/28/2009 9:36:19 PM
   
RE:Question on MediaGallery webpart
Thanks

I have searched around inside MediaFileControl.ascx.cs,
However, i cannot find any parameter to set the autoplay of movie.
Please tell me where can i find ?

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 6/1/2009 3:20:02 AM
   
RE:Question on MediaGallery webpart
Hello,

You could eventually try edit file: ~\CMSModules\MediaLibrary\Controls\LiveControls\MediaFilePreview.ascx.cs. You will modify appropriate conditional statement in Page_PreRender method. You need to insert HTML code of your movie file including autoplay option into the ltlOutput.Text property.

Please see detailed instructions here: http://www.kentico.com/docs/devguide/using_custom_media_player.htm

Best regards
Ondrej Vasil

User avatar
Member
Member
gary.chan-e-crusade - 6/8/2009 8:48:51 PM
   
RE:Question on MediaGallery webpart
Thanks for your suggestion