53 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Type, type, m_pHandle);
54 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, FriendlyName, friendly_name, m_pHandle);
72 FriendlyName = friendly_name;
93 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Name, name, m_pHandle);
94 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Role, role, m_pHandle);
132 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Producer, producer, m_pHandle);
133 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Director, director, m_pHandle);
134 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Publisher, publisher, m_pHandle);
135 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Contributor, contributor, m_pHandle);
137 property IEnumerable<PersonRole^>^ Artists
139 IEnumerable<PersonRole^>^
get();
142 property IEnumerable<PersonRole^>^ Actors
144 IEnumerable<PersonRole^>^
get();
147 property IEnumerable<PersonRole^>^ Authors
149 IEnumerable<PersonRole^>^
get();
194 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Album, album, m_pHandle);
195 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Playlist, playlist, m_pHandle);
197 property IEnumerable<String^>^ Genres
199 IEnumerable<String^>^
get();
204 void AddGenre(String^ genre)
233 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, DescriptionText, description, m_pHandle);
234 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, LongDescriptionText, long_description, m_pHandle);
235 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, IconUri, icon_uri, m_pHandle);
236 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Region, region, m_pHandle);
237 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Rating, rating, m_pHandle);
238 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Date, date, m_pHandle);
239 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Language, language, m_pHandle);
265 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, ProgramTitle, program_title, m_pHandle);
266 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, SeriesTitle, series_title, m_pHandle);
267 PLATINUM_MANAGED_IMPLEMENT_PROPERTY(UInt32, EpisodeNumber, episode_number, m_pHandle);
293 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Uri, uri, m_pHandle);
294 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, DlnaProfile, dlna_profile, m_pHandle);
311 DlnaProfile = dlna_profile;
332 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, ArtistDiscographyUri, artist_discography_uri, m_pHandle);
333 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, LyricsUri, lyrics_uri, m_pHandle);
335 property IEnumerable<String^>^ Relations
337 IEnumerable<String^>^
get();
340 property IEnumerable<AlbumArtInfo^>^ AlbumArts
342 IEnumerable<AlbumArtInfo^>^
get();
347 void AddGenre(String^ relation)
354 m_pHandle->album_arts.Add(info->Handle);
382 PLATINUM_MANAGED_IMPLEMENT_PROPERTY(UInt32, DvdRegionCode, dvdregioncode, m_pHandle);
383 PLATINUM_MANAGED_IMPLEMENT_PROPERTY(UInt32, OriginalTrackNumber, original_track_number, m_pHandle);
384 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Toc, toc, m_pHandle);
385 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, UserAnnotation, user_annotation, m_pHandle);
414 return GetProtocolInfo(filename,
true,
nullptr);
418 bool with_dlna_extension)
420 return GetProtocolInfo(filename, with_dlna_extension,
nullptr);
424 bool with_dlna_extension,
427 static ProtocolInfo^ GetProtocolInfoFromMimeType(String^ mime_type)
429 return GetProtocolInfoFromMimeType(mime_type,
true,
nullptr);
432 static ProtocolInfo^ GetProtocolInfoFromMimeType(String^ mime_type,
433 bool with_dlna_extension)
435 return GetProtocolInfoFromMimeType(mime_type, with_dlna_extension,
nullptr);
438 static ProtocolInfo^ GetProtocolInfoFromMimeType(String^ mime_type,
439 bool with_dlna_extension,
475 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, URI, m_Uri, m_pHandle);
476 PLATINUM_MANAGED_IMPLEMENT_OBJECT_PROPERTY(
ProtocolInfo^, ProtoInfo, m_ProtocolInfo, m_pHandle);
477 PLATINUM_MANAGED_IMPLEMENT_PROPERTY(UInt32, Duration, m_Duration, m_pHandle);
478 PLATINUM_MANAGED_IMPLEMENT_PROPERTY(UInt64, Size, m_Size, m_pHandle);
479 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Protection, m_Protection, m_pHandle);
480 PLATINUM_MANAGED_IMPLEMENT_PROPERTY(UInt32, Bitrate, m_Bitrate, m_pHandle);
481 PLATINUM_MANAGED_IMPLEMENT_PROPERTY(UInt32, BitsPerSample, m_BitsPerSample, m_pHandle);
482 PLATINUM_MANAGED_IMPLEMENT_PROPERTY(UInt32, SampleFrequency, m_SampleFrequency, m_pHandle);
483 PLATINUM_MANAGED_IMPLEMENT_PROPERTY(UInt32, NbAudioChannels, m_NbAudioChannels, m_pHandle);
484 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Resolution, m_Resolution, m_pHandle);
485 PLATINUM_MANAGED_IMPLEMENT_PROPERTY(UInt32, ColorDepth, m_ColorDepth, m_pHandle);
523 PLATINUM_MANAGED_IMPLEMENT_OBJECT_PROPERTY(
ObjectClass^, Class, m_ObjectClass, (*m_pHandle));
524 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, ObjectID, m_ObjectID, (*m_pHandle));
525 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, ParentID, m_ParentID, (*m_pHandle));
526 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, ReferenceID, m_ReferenceID, (*m_pHandle));
529 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Title, m_Title, (*m_pHandle));
530 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Creator, m_Creator, (*m_pHandle));
531 PLATINUM_MANAGED_IMPLEMENT_STRING_PROPERTY(String^, Date, m_Date, (*m_pHandle));
532 PLATINUM_MANAGED_IMPLEMENT_OBJECT_PROPERTY(
PeopleInfo^, People, m_People, (*m_pHandle));
533 PLATINUM_MANAGED_IMPLEMENT_OBJECT_PROPERTY(
AffiliationInfo^, Affiliation, m_Affiliation, (*m_pHandle));
534 PLATINUM_MANAGED_IMPLEMENT_OBJECT_PROPERTY(
DescriptionInfo^, Description, m_Description, (*m_pHandle));
535 PLATINUM_MANAGED_IMPLEMENT_OBJECT_PROPERTY(
RecordedInfo^, Recorded, m_Recorded, (*m_pHandle));
537 PLATINUM_MANAGED_IMPLEMENT_PROPERTY(
bool, Restricted, m_Restricted, (*m_pHandle));
540 PLATINUM_MANAGED_IMPLEMENT_OBJECT_PROPERTY(
ExtraInfo^, Extra, m_ExtraInfo, (*m_pHandle));
543 PLATINUM_MANAGED_IMPLEMENT_OBJECT_PROPERTY(
MiscInfo^, Miscellaneous, m_MiscInfo, (*m_pHandle));
545 property IEnumerable<MediaResource^>^ Resources
547 IEnumerable<MediaResource^>^
get();
554 (*m_pHandle)->m_Resources.Add(resource->Handle);
572 String^ ToDidl(String^ filter)
578 NPT_String _filter(c.marshal_as<
const char*>(filter));
580 (*m_pHandle)->ToDidl(_filter, didl);
582 return marshal_as<String^>(didl.GetChars());
587 virtual Boolean Equals(Object^ obj)
override 592 if (!this->GetType()->IsInstanceOfType(obj))
595 return (*m_pHandle == *((
MediaObject^)obj)->m_pHandle);
603 throw gcnew ArgumentNullException(
"media");
618 throw gcnew ArgumentNullException(
"media");
663 if (media->IsContainer())
664 throw gcnew ArgumentException(
"object");
669 if (media->Handle->IsContainer())
670 throw gcnew ArgumentException(
"object");
690 PLATINUM_MANAGED_IMPLEMENT_PROPERTY(
bool, Searchable, m_Searchable, ((
PLT_MediaContainer*)m_pHandle->AsPointer()));
691 PLATINUM_MANAGED_IMPLEMENT_PROPERTY(Int32, ChildrenCount, m_ChildrenCount, ((
PLT_MediaContainer*)m_pHandle->AsPointer()));
692 PLATINUM_MANAGED_IMPLEMENT_PROPERTY(UInt32, ContainerUpdateID, m_ContainerUpdateID, ((
PLT_MediaContainer*)m_pHandle->AsPointer()));
708 if (!media->IsContainer())
709 throw gcnew ArgumentException(
"object");
715 if (!media->Handle->IsContainer())
716 throw gcnew ArgumentException(
"object");
Definition: MediaObject.h:405
Definition: MediaObject.h:47
The PLT_ProtocolInfo class holds information about the protocol info of a given UPnP Media Item resou...
Definition: PltProtocolInfo.h:68
Definition: PltMediaItem.h:99
Definition: MediaObject.h:188
Definition: MediaObject.h:227
Definition: PltMediaItem.h:89
Definition: PltMediaItem.h:146
Definition: PltMediaItem.h:128
Definition: MediaObject.h:259
Definition: MediaObject.h:376
Definition: Helpers.h:202
Definition: MediaObject.h:126
The PLT_ObjectClass struct is used to assign a type to a PLT_MediaObject.
Definition: PltMediaItem.h:55
Definition: Helpers.h:274
Definition: PltMediaItem.h:66
Definition: MediaObject.h:287
Definition: NptReferences.h:45
bool IsNull() const
Returns whether this references a NULL object.
Definition: NptReferences.h:130
Definition: NptStrings.h:57
Definition: PltMediaItem.h:105
Definition: MediaObject.h:87
Definition: PltMediaItem.h:116