Click or drag to resize
MediaHelper Class
Class providing helper methods for media. Overridable helper
Inheritance Hierarchy
SystemObject
  CMS.BaseCoreMethods
    CMS.BaseAbstractHelper
      CMS.BaseAbstractHelperMediaHelper
        CMS.Base.Web.UIMediaHelper

Namespace: CMS.Base.Web.UI
Assembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 10.0.0
Syntax
C#
public class MediaHelper : AbstractHelper<MediaHelper>

The MediaHelper type exposes the following members.

Constructors
  NameDescription
Public methodMediaHelper
Top
Properties
  NameDescription
Public propertyRegShortYouTube
Regular expression for short youtube URL.
Top
Methods
  NameDescription
Public methodStatic memberGetAllowedHTML5Extensions
Returns the list of allowed media extensions supported by HTML5
Public methodStatic memberGetAllowedImageExtensions
Gets allowed extensions for images depends on settings
Public methodStatic memberGetAudioVideo
Returns HTML code of the audio/video player
Protected methodGetAudioVideoInternal
Returns HTML code of the audio/video player
Public methodStatic memberGetFlash
Returns HTML code of the Flash player.
Protected methodGetFlashInternal
Returns HTML code of the Flash player.
Public methodStatic memberGetImage
Returns HTML code of the image/image with link/image with special behavior.
Protected methodGetImageInternal
Returns HTML code of the image/image with link/image with special behavior.
Public methodStatic memberGetImageStyleAtt
Generates the IMG tag according to given parameters.
Protected methodGetImageStyleAttInternal
Generates the IMG tag according to given parameters.
Public methodStatic memberGetMediaType
Returns media type according to the specified extension.
Public methodStatic memberGetYouTubeVideo
Returns HTML code of the YouTube player.
Protected methodGetYouTubeVideoInternal
Returns HTML code of the YouTube player.
Public methodStatic memberIsAudio
Returns true if it is audio extension, otherwise returns false.
Protected methodIsAudioInternal
Returns true if it is audio extension, otherwise returns false.
Public methodStatic memberIsAudioVideo
Returns true if it is audio or video extension, otherwise returns false.
Public methodStatic memberIsFlash
Returns true if it is flash extension, otherwise returns false.
Protected methodIsFlashInternal
Returns true if it is flash extension, otherwise returns false.
Public methodStatic memberIsVideo
Returns true if it is video extension, otherwise returns false.
Protected methodIsVideoInternal
Returns true if it is video extension, otherwise returns false.
Public methodStatic memberRenderHTML5MediaTags
Returns true if rendering of HTML5 media tags is enabled for the given site
Public methodSetAsDefaultHelper
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.)
Top
See Also