Package org.silverpeas.components.gallery.web

## Class VideoEntity

- java.lang.Object
- - org.silverpeas.components.gallery.web.AbstractMediaEntity<VideoEntity>
  - - org.silverpeas.components.gallery.web.VideoEntity

- All Implemented Interfaces:
    `Serializable`, `org.silverpeas.core.web.rs.WebEntity`

      public class VideoEntity
      extends AbstractMediaEntity<VideoEntity>

  Author:
    Yohann Chastagnier
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Modifier | Constructor | Description
    --- | --- | ---
    `protected` | `VideoEntity()` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static VideoEntity` | `createFrom​(Video video)` | Creates a new video entity from the specified video.
    `URI` | `getEmbedUrl()` |

    - ### Methods inherited from class org.silverpeas.components.gallery.web.AbstractMediaEntity

      `equals, getAuthor, getDescription, getHeight, getId, getParentURI, getThumbUrl, getTitle, getType, getURI, getUrl, getWidth, hashCode, setAuthor, setDescription, setId, setTitle, setType, withHeight, withOriginalUrl, withParentURI, withThumbUrl, withURI, withWidth`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### VideoEntity

          protected VideoEntity()

  - ### Method Detail

    - #### createFrom

          public static VideoEntity createFrom​(Video video)

      Creates a new video entity from the specified video.
      Parameters:
        `video` - the video from which the entity is constructed.
      Returns:
        the entity representing the specified video.

    - #### getEmbedUrl

          public URI getEmbedUrl()