![]() |
![]() |
![]() |
GUPnP A/V Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
GUPnPProtocolInfo; enum GUPnPDLNAConversion; enum GUPnPDLNAFlags; enum GUPnPDLNAOperation; GUPnPProtocolInfo * gupnp_protocol_info_new (void
); GUPnPProtocolInfo * gupnp_protocol_info_new_from_string (const char *protocol_info
,GError **error
); char * gupnp_protocol_info_to_string (GUPnPProtocolInfo *info
); gboolean gupnp_protocol_info_is_compatible (GUPnPProtocolInfo *info1
,GUPnPProtocolInfo *info2
); void gupnp_protocol_info_set_protocol (GUPnPProtocolInfo *info
,const char *protocol
); void gupnp_protocol_info_set_network (GUPnPProtocolInfo *info
,const char *network
); void gupnp_protocol_info_set_mime_type (GUPnPProtocolInfo *info
,const char *mime_type
); void gupnp_protocol_info_set_dlna_profile (GUPnPProtocolInfo *info
,const char *profile
); void gupnp_protocol_info_set_play_speeds (GUPnPProtocolInfo *info
,const char **speeds
); void gupnp_protocol_info_set_dlna_conversion (GUPnPProtocolInfo *info
,GUPnPDLNAConversion conversion
); void gupnp_protocol_info_set_dlna_operation (GUPnPProtocolInfo *info
,GUPnPDLNAOperation operation
); void gupnp_protocol_info_set_dlna_flags (GUPnPProtocolInfo *info
,GUPnPDLNAFlags flags
); const char * gupnp_protocol_info_get_protocol (GUPnPProtocolInfo *info
); const char * gupnp_protocol_info_get_network (GUPnPProtocolInfo *info
); const char * gupnp_protocol_info_get_mime_type (GUPnPProtocolInfo *info
); const char * gupnp_protocol_info_get_dlna_profile (GUPnPProtocolInfo *info
); const char ** gupnp_protocol_info_get_play_speeds (GUPnPProtocolInfo *info
); GUPnPDLNAConversion gupnp_protocol_info_get_dlna_conversion (GUPnPProtocolInfo *info
); GUPnPDLNAOperation gupnp_protocol_info_get_dlna_operation (GUPnPProtocolInfo *info
); GUPnPDLNAFlags gupnp_protocol_info_get_dlna_flags (GUPnPProtocolInfo *info
);
"dlna-conversion" GUPnPDLNAConversion : Read / Write "dlna-flags" GUPnPDLNAFlags : Read / Write "dlna-operation" GUPnPDLNAOperation : Read / Write "dlna-profile" gchar* : Read / Write "mime-type" gchar* : Read / Write "network" gchar* : Read / Write "play-speeds" GStrv : Read / Write "protocol" gchar* : Read / Write
GUPnPProtocolInfo provides a convenient API to deal with ProtocolInfo strings used in UPnP AV specifications.
typedef enum { GUPNP_DLNA_CONVERSION_NONE = 0, GUPNP_DLNA_CONVERSION_TRANSCODED = 1 } GUPnPDLNAConversion;
The DLNA conversion flags for a resource.
typedef enum { GUPNP_DLNA_FLAGS_NONE = 0, GUPNP_DLNA_FLAGS_SENDER_PACED = (1 << 31), GUPNP_DLNA_FLAGS_TIME_BASED_SEEK = (1 << 30), GUPNP_DLNA_FLAGS_BYTE_BASED_SEEK = (1 << 29), GUPNP_DLNA_FLAGS_PLAY_CONTAINER = (1 << 28), GUPNP_DLNA_FLAGS_S0_INCREASE = (1 << 27), GUPNP_DLNA_FLAGS_SN_INCREASE = (1 << 26), GUPNP_DLNA_FLAGS_RTSP_PAUSE = (1 << 25), GUPNP_DLNA_FLAGS_STREAMING_TRANSFER_MODE = (1 << 24), GUPNP_DLNA_FLAGS_INTERACTIVE_TRANSFER_MODE = (1 << 23), GUPNP_DLNA_FLAGS_BACKGROUND_TRANSFER_MODE = (1 << 22), GUPNP_DLNA_FLAGS_CONNECTION_STALL = (1 << 21), GUPNP_DLNA_FLAGS_DLNA_V15 = (1 << 20), GUPNP_DLNA_FLAGS_LINK_PROTECTED_CONTENT = (1 << 16), GUPNP_DLNA_FLAGS_CLEAR_TEXT_BYTE_SEEK_FULL = (1 << 15), GUPNP_DLNA_FLAGS_LOP_CLEAR_TEXT_BYTE_SEEK = (1 << 14) } GUPnPDLNAFlags;
The miscellaneous operations supported by a resource. For details on these flags please refer to section 7.3.37.2 of DLNA Networked Device Interoperability Guidelines Volume 1, October 2006.
Updated DTCP Flags based on 2011 Guidelines, section 7.4.1.3.23.2
No flags | |
Content source is the clock source during transport | |
Limited Operation: time-seek supported | |
Limited Operation: byte-seek supported | |
Resource supports 'Container Playback' | |
Content does not have a fixed beginning | |
Content does not have a fixed end | |
RTSP resource supports pausing of media transfer | |
Streaming transfer mode supported | |
Interactive transfer mode supported | |
Background transfer mode supported | |
No content transfer when paused. | |
DLNAv1.5 version flag | |
The content is protected. | |
Full byte seek on cleartext domain is supported. | |
Limited operations on byte seek in cleartext domain. |
typedef enum { GUPNP_DLNA_OPERATION_NONE = 0x00, GUPNP_DLNA_OPERATION_RANGE = 0x01, GUPNP_DLNA_OPERATION_TIMESEEK = 0x10 } GUPnPDLNAOperation;
The seek operations supported by a resource.
GUPnPProtocolInfo * gupnp_protocol_info_new (void
);
Returns : |
A new GUPnPProtocolInfo object. Unref after usage. |
GUPnPProtocolInfo * gupnp_protocol_info_new_from_string (const char *protocol_info
,GError **error
);
Parses the protocol_info
string and creates a new GUPnPProtocolInfo object
as a result.
|
The protocol info string |
|
The location where to store any error, or NULL |
Returns : |
A new GUPnPProtocolInfo object. Unref after usage. |
char * gupnp_protocol_info_to_string (GUPnPProtocolInfo *info
);
Provides the string representation of info
.
|
The GUPnPProtocolInfo |
Returns : |
String representation of info . g_free after usage. |
gboolean gupnp_protocol_info_is_compatible (GUPnPProtocolInfo *info1
,GUPnPProtocolInfo *info2
);
Checks if the given protocolInfo string is compatible with info
.
|
The first GUPnPProtocolInfo |
|
The second GUPnPProtocolInfo |
Returns : |
TRUE if protocol_info is compatible with info , otherwise
FALSE. |
void gupnp_protocol_info_set_protocol (GUPnPProtocolInfo *info
,const char *protocol
);
Set the protocol of this info.
|
A GUPnPProtocolInfo |
|
The protocol string |
Returns : |
None. |
void gupnp_protocol_info_set_network (GUPnPProtocolInfo *info
,const char *network
);
Set the network this info is associated with.
|
A GUPnPProtocolInfo |
|
The network string |
Returns : |
None. |
void gupnp_protocol_info_set_mime_type (GUPnPProtocolInfo *info
,const char *mime_type
);
Set the MIME-type of this info.
|
A GUPnPProtocolInfo |
|
The MIME-type string |
Returns : |
None. |
void gupnp_protocol_info_set_dlna_profile (GUPnPProtocolInfo *info
,const char *profile
);
Set the DLNA profile of this info.
|
A GUPnPProtocolInfo |
|
The DLNA profile string |
Returns : |
None. |
void gupnp_protocol_info_set_play_speeds (GUPnPProtocolInfo *info
,const char **speeds
);
Set the allowed play speeds on this info in the form of array of strings.
|
A GUPnPProtocolInfo |
|
The allowed play speeds |
Returns : |
None. |
void gupnp_protocol_info_set_dlna_conversion (GUPnPProtocolInfo *info
,GUPnPDLNAConversion conversion
);
Set the DLNA conversion flags.
|
A GUPnPProtocolInfo |
|
The bitwise OR of one or more DLNA conversion flags |
Returns : |
None. |
void gupnp_protocol_info_set_dlna_operation (GUPnPProtocolInfo *info
,GUPnPDLNAOperation operation
);
Set the DLNA operation flags.
|
A GUPnPProtocolInfo |
|
The bitwise OR of one or more DLNA operation flags |
Returns : |
None. |
void gupnp_protocol_info_set_dlna_flags (GUPnPProtocolInfo *info
,GUPnPDLNAFlags flags
);
Set the gereric DLNA flags.
|
A GUPnPProtocolInfo |
|
The bitwise OR of one or more generic DLNA flags |
Returns : |
None. |
const char * gupnp_protocol_info_get_protocol (GUPnPProtocolInfo *info
);
Get the protocol of this info.
|
A GUPnPProtocolInfo |
Returns : |
The protocol of this info or NULL . This string should not
be freed. |
const char * gupnp_protocol_info_get_network (GUPnPProtocolInfo *info
);
Get the network this info is associated with.
|
A GUPnPProtocolInfo |
Returns : |
The network string or NULL . This string should not be freed. |
const char * gupnp_protocol_info_get_mime_type (GUPnPProtocolInfo *info
);
Get the MIME-type of this info.
|
A GUPnPProtocolInfo |
Returns : |
The MIME-type of this info or NULL . This string should not
be freed. |
const char * gupnp_protocol_info_get_dlna_profile
(GUPnPProtocolInfo *info
);
Get the DLNA profile of this info.
|
A GUPnPProtocolInfo |
Returns : |
The DLNA profile of this info or NULL . This string should
not be freed. |
const char ** gupnp_protocol_info_get_play_speeds (GUPnPProtocolInfo *info
);
Get the allowed play speeds on this info in the form of array of strings.
|
A GUPnPProtocolInfo |
Returns : |
The allowed play speeds as array of strings or NULL . This
return array and it's content must not be modified or freed. [transfer none]
|
GUPnPDLNAConversion gupnp_protocol_info_get_dlna_conversion
(GUPnPProtocolInfo *info
);
Get the DLNA conversion flags.
|
A GUPnPProtocolInfo |
Returns : |
The DLNA conversion flags. |
GUPnPDLNAOperation gupnp_protocol_info_get_dlna_operation
(GUPnPProtocolInfo *info
);
Get the DLNA operation flags.
|
A GUPnPProtocolInfo |
Returns : |
The DLNA operation flags. |
GUPnPDLNAFlags gupnp_protocol_info_get_dlna_flags (GUPnPProtocolInfo *info
);
Get the gereric DLNA flags.
|
A GUPnPProtocolInfo |
Returns : |
The generic DLNA flags. |
"dlna-conversion"
property"dlna-conversion" GUPnPDLNAConversion : Read / Write
The DLNA conversion flags.
"dlna-operation"
property"dlna-operation" GUPnPDLNAOperation : Read / Write
The DLNA operation flags.
"dlna-profile"
property "dlna-profile" gchar* : Read / Write
The DLNA profile of this info.
Default value: NULL
"mime-type"
property "mime-type" gchar* : Read / Write
The MIME-type of this info.
Default value: NULL
"network"
property "network" gchar* : Read / Write
The network this info is associated with.
Default value: NULL
"play-speeds"
property "play-speeds" GStrv : Read / Write
The allowed play speeds on this info in the form of array of strings.