Media¶
Summary¶
Media model is a collection of members that serializes media sources from two different sites, namely http://www.youtube.com and http://www.soundcloud.com
Model¶
{
   "author": "",
   "cid": "",
   "duration": -1,
   "format": -1,
   "id": -1,
   "image": "",
   "title": ""
}
Detail¶
- author
 Author like artist.
Type: String
Default Value:""- cid
 ID from the originating site.
Note
Media originating from youtube uses the value of the v tag.
Media from soundcloud uses the track ID.Type: String
Default Value:""- duration
 Length in seconds.
Type: Number
Default Value:-1- format
 Site where the media originated from.
- 1: youtube.com
 - 2: soundcloud.com
 
Type: Number
Default Value:-1- id
 Internal unique identifier.
Type: Number
Default Value:-1- image
 Preview thumbnail.
Type: String
Default Value:""- title
 Title like song title.
Type: String
Default Value:""