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: 13.0.131
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 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 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 memberIsVideo
Returns true if it is video extension, otherwise returns false.
Protected methodIsVideoInternal
Returns true if it is video extension, otherwise returns false.
Public methodSetAsDefaultHelper
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.)
Top
See Also