org.apache.myfaces.html5.model
Class MediaInfo

java.lang.Object
  extended by org.apache.myfaces.html5.model.MediaInfo

public class MediaInfo
extends Object

Model of media resources to use at media elements.

Author:
Ali Ok
See Also:
MediaSourceHolder, MediaSourceHandler, Video

Field Summary
protected  String codec
           
protected  String contentType
           
protected  boolean disabled
           
protected  String media
           
protected  String src
           
 
Constructor Summary
MediaInfo(String src)
           
MediaInfo(String src, String contentType)
           
MediaInfo(String src, String contentType, String codec)
           
MediaInfo(String src, String contentType, String codec, String media)
           
MediaInfo(String src, String contentType, String codec, String media, boolean disabled)
           
 
Method Summary
 String getCodec()
          Returns the codecs of the resource (for example: "avc1.64001E, mp4a.40.2").
 String getContentType()
          Returns the MIME content type of the resource (for example : "video/ogg");
 String getMedia()
          Returns the intended media type of the media resource, to help the browser determine if this media resource is useful to the user before fetching it.
 String getSrc()
          Returns the URL of the media source.
 boolean isDisabled()
          If set to true, media renderer will ignore this resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

src

protected String src

contentType

protected String contentType

media

protected String media

codec

protected String codec

disabled

protected boolean disabled
Constructor Detail

MediaInfo

public MediaInfo(String src,
                 String contentType,
                 String codec,
                 String media,
                 boolean disabled)
Parameters:
src - URL of the media resource
contentType - MIME content type of the resource (for example : "video/ogg")
codec - encoding method of the media resource. eg: "avc1.64001E, mp4a.40.2". If this is defined, it is an error to not define contentType.
media - Intended media type of the media resource. eg: "tv" or "3d-glasses"
disabled - Is this media resource should not be rendered or used, this field should be set to true.

MediaInfo

public MediaInfo(String src,
                 String contentType,
                 String codec,
                 String media)
See Also:
MediaInfo(String, String, String, String, boolean)

MediaInfo

public MediaInfo(String src,
                 String contentType,
                 String codec)
See Also:
MediaInfo(String, String, String, String, boolean)

MediaInfo

public MediaInfo(String src,
                 String contentType)
See Also:
MediaInfo(String, String, String, String, boolean)

MediaInfo

public MediaInfo(String src)
See Also:
MediaInfo(String, String, String, String, boolean)
Method Detail

getSrc

public String getSrc()
Returns the URL of the media source.


getContentType

public String getContentType()
Returns the MIME content type of the resource (for example : "video/ogg");


getMedia

public String getMedia()
Returns the intended media type of the media resource, to help the browser determine if this media resource is useful to the user before fetching it. Returned value is a valid media query. Just like the "@media" declaration in CSS.


getCodec

public String getCodec()
Returns the codecs of the resource (for example: "avc1.64001E, mp4a.40.2").


isDisabled

public boolean isDisabled()
If set to true, media renderer will ignore this resource.



Copyright © 2011 The Apache Software Foundation. All Rights Reserved.