Class Audio

  • All Implemented Interfaces:
    HasLocation, Extendable, Serializable, Cloneable

    public class Audio
    extends ActivityObject

    The "audio" Object type represents audio content.

    The "audio" Object type is identified by the URI http://activitystrea.ms/schema/1.0/audio.

    An audio has the following additional components:

    Audio Stream Link
    A Media Link Construct linking to the audio content itself. Represented in JSON as a property called stream whose value is a JSON object with properties as defined in [TODO: xref the JSON serialization of a Media Link Construct]
    Embed Code
    An HTML fragment that, when embedded in an HTML page, will provide an interactive player UI for the audio stream. Represented in JSON as a property called embedCode whose value is a JSON string containing the fragment of HTML.
    See Also:
    Serialized Form
    • Constructor Detail

      • Audio

        public Audio()
    • Method Detail

      • setEmbedCode

        public void setEmbedCode​(String newembedCode)
        Set the value of embedCode
        Parameters:
        newembedCode - new value of embedCode
      • getEmbedCode

        public String getEmbedCode()
        Get the value of embedCode
        Returns:
        the value of embedCode
      • setStreamLink

        public void setStreamLink​(String newstreamLink)
        Set the value of streamLink
        Parameters:
        newstreamLink - new value of streamLink
      • getStreamLink

        public String getStreamLink()
        Get the value of streamLink
        Returns:
        the value of streamLink