Class: MIME::VideoMedia

Inherits:
DiscreteMediaType show all
Defined in:
lib/mime/discrete_media_type.rb

Overview

VideoMedia is intended for discrete video content. The content subtype indicates the specific video format. The RFC describes video media as content that contains a time-varying-picture image, possibly with color and coordinated sound.

Instance Attribute Summary

Attributes inherited from MediaType

#headers

Attributes included from Headers::MIME

#content_description, #content_disposition, #content_id, #content_transfer_encoding, #content_type, #mime_version

Instance Method Summary collapse

Methods inherited from MediaType

#to_s

Constructor Details

#initialize(body, subtype = 'mpeg', params = {}) ⇒ VideoMedia

Returns a new instance of VideoMedia.



72
73
74
75
# File 'lib/mime/discrete_media_type.rb', line 72

def initialize(body, subtype = 'mpeg', params = {})
  @media_type = 'video'
  super
end