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.HelpersMediaHelper

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public class MediaHelper : AbstractHelper<MediaHelper>

The MediaHelper type exposes the following members.

Constructors
  NameDescription
Public methodMediaHelper
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
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Properties
  NameDescription
Public propertyRegShortYouTube
Regular expression for short youtube URL.
Top
See Also