Name: csapi-media-content
Summary: Tizen Media Content API for C#
-Version: 1.0.7
+Version: 1.0.8
Release: 1
Group: Development/Libraries
License: Apache-2.0
private readonly Interop.AudioInformation.SafeAudioInformationHandle _handle;
/// <summary>
- /// Gets the tag ID for the media.
+ /// Gets the ID of the media.
/// </summary>
public string MediaId
{
/// <summary>
/// Gets the album name.
- /// If the value is an empty string, the property returns "Unknown".
/// If the media content has no album info, the property returns empty string.
/// </summary>
public string Album
/// <summary>
/// Gets the artist name.
- /// If the value is an empty string, the property returns "Unknown".
/// If the media content has no album info, the property returns empty string.
/// </summary>
public string Artist
/// <summary>
/// Gets the album artist name.
- /// If the value is an empty string, the property returns "Unknown".
/// If the media content has no album info, the property returns empty string.
/// </summary>
public string AlbumArtist
}
/// <summary>
- /// Gets the genre name.
- /// If the value is an empty string, the property returns "Unknown".
+ /// Gets the genre.
/// If the media content has no album info, the property returns empty string.
/// </summary>
public string Genre
/// <summary>
/// Gets the year.
- /// If the value is an empty string, the property returns "Unknown".
/// If the media content has no album info, the property returns empty string.
/// </summary>
public string Year
}
/// <summary>
- /// Gets the copyright notice.
- /// If the media content has no copyright info, the property returns empty string.
+ /// Gets the copyright.
+ /// If the media content has no copyright information, the property returns empty string.
/// </summary>
public string Copyright
{
/// <summary>
/// Gets the track number.
- /// If the value is an empty string, the property returns "Unknown".
+ /// If the media content has no track information, the property returns empty string.
/// </summary>
public string TrackNumber
{
private readonly Interop.ImageInformation.SafeImageInformationHandle _handle;
/// <summary>
- /// Gets the tag ID for the image.
+ /// Gets the id of the media.
/// </summary>
public string MediaId
{
MediaContentValidator.ThrowIfError(
Interop.ImageInformation.GetDateTaken(_handle, out val), "Failed to get value");
- return MediaContentValidator.CheckString(Marshal.PtrToStringAnsi(val));
+ return Marshal.PtrToStringAnsi(val);
}
finally
{
/// <summary>
/// Gets the burst shot ID.
- /// If BurstId is empty, this is not a burst shot
+ /// If BurstId is null, this is not a burst shot
/// </summary>
public string BurstId
{
MediaContentValidator.ThrowIfError(
Interop.ImageInformation.GetBurstId(_handle, out val), "Failed to get value");
- return MediaContentValidator.CheckString(Marshal.PtrToStringAnsi(val));
+ return Marshal.PtrToStringAnsi(val);
}
finally
{
MediaContentValidator.ThrowIfError(
Interop.ImageInformation.GetExposureTime(_handle, out val), "Failed to get value");
- return MediaContentValidator.CheckString(Marshal.PtrToStringAnsi(val));
+ return Marshal.PtrToStringAnsi(val);
}
finally
{
MediaContentValidator.ThrowIfError(
Interop.ImageInformation.GetModel(_handle, out val), "Failed to get value");
- return MediaContentValidator.CheckString(Marshal.PtrToStringAnsi(val));
+ return Marshal.PtrToStringAnsi(val);
}
finally
{
}
/// <summary>
- /// Gets the tag ID for the media.
+ /// Gets the ID of the media.
/// </summary>
public virtual string MediaId
{
}
/// <summary>
- /// Weather of media.
- /// Dafault is empty string.
+ /// Weather information of media.
/// </summary>
public string Weather
{
MediaContentValidator.ThrowIfError(
Interop.MediaInformation.GetWeather(_handle, out val), "Failed to get value");
- return MediaContentValidator.CheckString(Marshal.PtrToStringAnsi(val));
+ return Marshal.PtrToStringAnsi(val);
}
finally
{
MediaContentValidator.ThrowIfError(
Interop.MediaInformation.GetAuthor(_handle, out val), "Failed to get value");
- return MediaContentValidator.CheckString(Marshal.PtrToStringAnsi(val));
+ return Marshal.PtrToStringAnsi(val);
}
finally
{
MediaContentValidator.ThrowIfError(
Interop.MediaInformation.GetProvider(_handle, out val), "Failed to get value");
- return MediaContentValidator.CheckString(Marshal.PtrToStringAnsi(val));
+ return Marshal.PtrToStringAnsi(val);
}
finally
{
MediaContentValidator.ThrowIfError(
Interop.MediaInformation.GetContentName(_handle, out val), "Failed to get value");
- return MediaContentValidator.CheckString(Marshal.PtrToStringAnsi(val));
+ return Marshal.PtrToStringAnsi(val);
}
finally
{
/// <summary>
/// Gets the title of media.
+ /// If the media content has no title, the property returns empty string.
/// </summary>
public string Title
{
MediaContentValidator.ThrowIfError(
Interop.MediaInformation.GetCategory(_handle, out val), "Failed to get value");
- return MediaContentValidator.CheckString(Marshal.PtrToStringAnsi(val));
+ return Marshal.PtrToStringAnsi(val);
}
finally
{
MediaContentValidator.ThrowIfError(
Interop.MediaInformation.GetLocationTag(_handle, out val), "Failed to get value");
- return MediaContentValidator.CheckString(Marshal.PtrToStringAnsi(val));
+ return Marshal.PtrToStringAnsi(val);
}
finally
{
MediaContentValidator.ThrowIfError(
Interop.MediaInformation.GetAgeRating(_handle, out val), "Failed to get value");
- return MediaContentValidator.CheckString(Marshal.PtrToStringAnsi(val));
+ return Marshal.PtrToStringAnsi(val);
}
finally
{
MediaContentValidator.ThrowIfError(
Interop.MediaInformation.GetKeyword(_handle, out val), "Failed to get value");
- return MediaContentValidator.CheckString(Marshal.PtrToStringAnsi(val));
+ return Marshal.PtrToStringAnsi(val);
}
finally
{
public class VideoInformation : MediaInformation
{
/// <summary>
- /// Gets the tag ID for the media.
+ /// Gets the ID of the media.
/// </summary>
public string MediaId
{
/// <summary>
/// Gets the album name.
- /// If the value is an empty string, the property returns "Unknown".
+ /// If the media content has no album information, the property returns empty string.
/// </summary>
public string Album
{
/// <summary>
/// Gets the artist name.
- /// If the value is an empty string, the property returns "Unknown".
+ /// If the media content has no artist information, the property returns empty string.
/// </summary>
public string Artist
{
/// <summary>
/// Gets the album artist name.
- /// If the value is an empty string, the property returns "Unknown".
+ /// If the media content has no album artist information, the property returns empty string.
/// </summary>
public string AlbumArtist
{
/// <summary>
/// Gets the genre name.
- /// If the value is an empty string, the property returns "Unknown".
+ /// If the media content has no genre information, the property returns empty string.
/// </summary>
public string Genre
{
/// <summary>
/// Gets the composer name.
- /// If the value is an empty string, the property returns "Unknown".
+ /// If the media content has no composer information, the property returns empty string.
/// </summary>
public string Composer
{
/// <summary>
/// Gets the year.
- /// If the value is an empty string, the property returns "Unknown".
+ /// If the media content has no year information, the property returns empty string.
/// </summary>
public string Year
{
/// <summary>
/// Gets the copyright notice.
- /// If the value is an empty string, the property returns "Unknown".
+ /// If the media content has no copyright information, the property returns empty string.
/// </summary>
public string Copyright
{
/// <summary>
/// Gets the track number.
- /// If the value is an empty string, the property returns "Unknown".
+ /// If the media content has no track information, the property returns empty string.
/// </summary>
public string TrackNumber
{