CDSObject *CDSObject::CreateVideoBroadcast( QString sId, QString sTitle, QString sParentId, CDSObject *pObject ) { if (pObject == nullptr) { pObject = new CDSObject( sId, sTitle, sParentId ); pObject->m_sClass = "object.item.videoItem.videoBroadcast"; } CreateVideoItem( sId, sTitle, sParentId, pObject ); pObject->AddProperty( new Property( "icon" , "upnp" )); pObject->AddProperty( new Property( "region" , "upnp" )); return( pObject ); }
CDSObject *CDSObject::CreateMovie( QString sId, QString sTitle, QString sParentId, CDSObject *pObject ) { if (pObject == nullptr) { pObject = new CDSObject( sId, sTitle, sParentId ); pObject->m_sClass = "object.item.videoItem.movie"; } CreateVideoItem( sId, sTitle, sParentId, pObject ); pObject->AddProperty( new Property( "storageMedium" , "upnp" )); pObject->AddProperty( new Property( "DVDRegionCode" , "upnp" )); return( pObject ); }
CDSObject *CDSObject::CreateMusicVideoClip( QString sId, QString sTitle, QString sParentId, CDSObject *pObject ) { if (pObject == nullptr) { pObject = new CDSObject( sId, sTitle, sParentId ); pObject->m_sClass = "object.item.videoItem.musicVideoClip"; } CreateVideoItem( sId, sTitle, sParentId, pObject ); pObject->AddProperty( new Property( "artist" , "upnp" )); pObject->AddProperty( new Property( "storageMedium" , "upnp" )); pObject->AddProperty( new Property( "album" , "upnp" )); pObject->AddProperty( new Property( "contributor" , "dc" )); return( pObject ); }
CDSObject *CDSObject::CreateMovie( QString sId, QString sTitle, QString sParentId, CDSObject *pObject ) { if (pObject == NULL) { pObject = new CDSObject( sId, sTitle, sParentId ); pObject->m_sClass = "object.item.videoItem.movie"; } CreateVideoItem( sId, sTitle, sParentId, pObject ); pObject->AddProperty( new Property( "storageMedium" , "upnp" )); pObject->AddProperty( new Property( "DVDRegionCode" , "upnp" )); pObject->AddProperty( new Property( "channelName" , "upnp" )); pObject->AddProperty( new Property( "scheduledStartTime", "upnp" )); pObject->AddProperty( new Property( "scheduledEndTime" , "upnp" )); return( pObject ); }