| MediaHelper Class | 
Namespace: CMS.Helpers
public class MediaHelper : AbstractHelper<MediaHelper>
The MediaHelper type exposes the following members.
| Name | Description | |
|---|---|---|
| MediaHelper | 
| Name | Description | |
|---|---|---|
| RegShortYouTube | 
            Regular expression for short youtube URL.
              | 
| Name | Description | |
|---|---|---|
| GetAllowedHTML5Extensions | 
            Returns the list of allowed media extensions supported by HTML5
              | |
| GetAllowedImageExtensions | 
            Gets allowed extensions for images depends on settings
              | |
| GetAudioVideo | 
            Returns HTML code of the audio/video player
              | |
| GetAudioVideoInternal | 
            Returns HTML code of the audio/video player
              | |
| GetFlash | 
            Returns HTML code of the Flash player.
              | |
| GetFlashInternal | 
            Returns HTML code of the Flash player.
              | |
| GetImage | 
            Returns HTML code of the image/image with link/image with special behavior.
              | |
| GetImageInternal | 
            Returns HTML code of the image/image with link/image with special behavior.
              | |
| GetImageStyleAtt | 
            Generates the IMG tag according to given parameters.
              | |
| GetImageStyleAttInternal | 
            Generates the IMG tag according to given parameters.
              | |
| GetMediaType | 
            Returns media type according to the specified extension.
              | |
| GetYouTubeVideo | 
            Returns HTML code of the YouTube player.
              | |
| GetYouTubeVideoInternal | 
            Returns HTML code of the YouTube player.
              | |
| IsAudio | 
            Returns true if it is audio extension, otherwise returns false.
              | |
| IsAudioInternal | 
            Returns true if it is audio extension, otherwise returns false.
              | |
| IsAudioVideo | 
            Returns true if it is audio or video extension, otherwise returns false.
              | |
| IsFlash | 
            Returns true if it is flash extension, otherwise returns false.
              | |
| IsFlashInternal | 
            Returns true if it is flash extension, otherwise returns false.
              | |
| IsVideo | 
            Returns true if it is video extension, otherwise returns false.
              | |
| IsVideoInternal | 
            Returns true if it is video extension, otherwise returns false.
              | |
| RenderHTML5MediaTags | 
            Returns true if rendering of HTML5 media tags is enabled for the given site
              | |
| SetAsDefaultHelper | 
            Sets this object as the default helper
              (Inherited from AbstractHelperHelperType.) |