mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 16:31:58 +02:00
clapper: Various documentation cleanups and fixes
This commit is contained in:
@@ -257,9 +257,12 @@ clapper_audio_stream_get_lang_code (ClapperAudioStream *self)
|
|||||||
* clapper_audio_stream_get_lang_name:
|
* clapper_audio_stream_get_lang_name:
|
||||||
* @stream: a #ClapperAudioStream
|
* @stream: a #ClapperAudioStream
|
||||||
*
|
*
|
||||||
* Get an ISO-639 language code of the @stream.
|
* Get language name of the @stream.
|
||||||
*
|
*
|
||||||
* Returns: (transfer full) (nullable): the language code of audio stream.
|
* This function will try to return a translated string into current
|
||||||
|
* locale if possible, with a fallback to a name extracted from tags.
|
||||||
|
*
|
||||||
|
* Returns: (transfer full) (nullable): the language name of audio stream.
|
||||||
*/
|
*/
|
||||||
gchar *
|
gchar *
|
||||||
clapper_audio_stream_get_lang_name (ClapperAudioStream *self)
|
clapper_audio_stream_get_lang_name (ClapperAudioStream *self)
|
||||||
@@ -419,7 +422,7 @@ clapper_audio_stream_class_init (ClapperAudioStreamClass *klass)
|
|||||||
/**
|
/**
|
||||||
* ClapperAudioStream:lang-name:
|
* ClapperAudioStream:lang-name:
|
||||||
*
|
*
|
||||||
* Stream full language name determined from lang code.
|
* Stream language name.
|
||||||
*/
|
*/
|
||||||
param_specs[PROP_LANG_NAME] = g_param_spec_string ("lang-name",
|
param_specs[PROP_LANG_NAME] = g_param_spec_string ("lang-name",
|
||||||
NULL, NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
|
@@ -184,7 +184,7 @@ struct _ClapperFeatureClass
|
|||||||
void (* queue_item_removed) (ClapperFeature *feature, ClapperMediaItem *item, guint index);
|
void (* queue_item_removed) (ClapperFeature *feature, ClapperMediaItem *item, guint index);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ClapperFeatureClass::queue_item_reposition:
|
* ClapperFeatureClass::queue_item_repositioned:
|
||||||
* @feature: a #ClapperFeature
|
* @feature: a #ClapperFeature
|
||||||
* @before: position from which #ClapperMediaItem was removed
|
* @before: position from which #ClapperMediaItem was removed
|
||||||
* @after: position at which #ClapperMediaItem was inserted after removal
|
* @after: position at which #ClapperMediaItem was inserted after removal
|
||||||
|
@@ -156,7 +156,7 @@ clapper_marker_get_marker_type (ClapperMarker *self)
|
|||||||
*
|
*
|
||||||
* Get the title of @marker.
|
* Get the title of @marker.
|
||||||
*
|
*
|
||||||
* Returns: the marker title.
|
* Returns: (nullable): the marker title.
|
||||||
*/
|
*/
|
||||||
const gchar *
|
const gchar *
|
||||||
clapper_marker_get_title (ClapperMarker *self)
|
clapper_marker_get_title (ClapperMarker *self)
|
||||||
|
@@ -176,11 +176,11 @@ clapper_media_item_get_uri (ClapperMediaItem *self)
|
|||||||
/**
|
/**
|
||||||
* clapper_media_item_set_suburi:
|
* clapper_media_item_set_suburi:
|
||||||
* @item: a #ClapperMediaItem
|
* @item: a #ClapperMediaItem
|
||||||
|
* @suburi: an additional URI
|
||||||
*
|
*
|
||||||
* Set the additional URI of #ClapperMediaItem.
|
* Set the additional URI of #ClapperMediaItem.
|
||||||
*
|
*
|
||||||
* This is typically used to add an external subtitles URI
|
* This is typically used to add an external subtitles URI to the @item.
|
||||||
* to the @item.
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
clapper_media_item_set_suburi (ClapperMediaItem *self, const gchar *suburi)
|
clapper_media_item_set_suburi (ClapperMediaItem *self, const gchar *suburi)
|
||||||
@@ -629,7 +629,7 @@ clapper_media_item_class_init (ClapperMediaItemClass *klass)
|
|||||||
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
|
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ClapperPlayer:timeline:
|
* ClapperMediaItem:timeline:
|
||||||
*
|
*
|
||||||
* Media timeline.
|
* Media timeline.
|
||||||
*/
|
*/
|
||||||
|
@@ -1158,6 +1158,8 @@ clapper_player_set_volume (ClapperPlayer *self, gdouble volume)
|
|||||||
* @player: a #ClapperPlayer
|
* @player: a #ClapperPlayer
|
||||||
*
|
*
|
||||||
* Get the volume of the player.
|
* Get the volume of the player.
|
||||||
|
*
|
||||||
|
* Returns: current volume level.
|
||||||
*/
|
*/
|
||||||
gdouble
|
gdouble
|
||||||
clapper_player_get_volume (ClapperPlayer *self)
|
clapper_player_get_volume (ClapperPlayer *self)
|
||||||
@@ -1649,7 +1651,7 @@ clapper_player_get_subtitle_font_desc (ClapperPlayer *self)
|
|||||||
* Either start or resume the playback of current media item.
|
* Either start or resume the playback of current media item.
|
||||||
*
|
*
|
||||||
* This function will queue a request for the underlaying #GStreamer
|
* This function will queue a request for the underlaying #GStreamer
|
||||||
* pipeline to go into PLAYING state.
|
* pipeline to go into `PLAYING` state.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
clapper_player_play (ClapperPlayer *self)
|
clapper_player_play (ClapperPlayer *self)
|
||||||
@@ -1666,8 +1668,8 @@ clapper_player_play (ClapperPlayer *self)
|
|||||||
* Pause the playback of current media item.
|
* Pause the playback of current media item.
|
||||||
*
|
*
|
||||||
* This function will queue a request for the underlaying #GStreamer
|
* This function will queue a request for the underlaying #GStreamer
|
||||||
* pipeline to go into PAUSED state, thus can also be used on a not
|
* pipeline to go into `PAUSED` state, thus can also be used on a not
|
||||||
* yet started video to go into PAUSED state first.
|
* yet started video to go into `PAUSED` state first.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
clapper_player_pause (ClapperPlayer *self)
|
clapper_player_pause (ClapperPlayer *self)
|
||||||
@@ -1684,7 +1686,7 @@ clapper_player_pause (ClapperPlayer *self)
|
|||||||
* Stop the playback of current media item.
|
* Stop the playback of current media item.
|
||||||
*
|
*
|
||||||
* This function will queue a request for the underlaying #GStreamer
|
* This function will queue a request for the underlaying #GStreamer
|
||||||
* pipeline to go into READY state.
|
* pipeline to go into `READY` state.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
clapper_player_stop (ClapperPlayer *self)
|
clapper_player_stop (ClapperPlayer *self)
|
||||||
@@ -1742,9 +1744,6 @@ clapper_player_seek_custom (ClapperPlayer *self, gdouble position, ClapperPlayer
|
|||||||
* @feature: a #ClapperFeature
|
* @feature: a #ClapperFeature
|
||||||
*
|
*
|
||||||
* Add another #ClapperFeature to the player.
|
* Add another #ClapperFeature to the player.
|
||||||
*
|
|
||||||
* If feature is already added, this function will do nothing,
|
|
||||||
* so it is safe to call multiple times if unsure.
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
clapper_player_add_feature (ClapperPlayer *self, ClapperFeature *feature)
|
clapper_player_add_feature (ClapperPlayer *self, ClapperFeature *feature)
|
||||||
|
@@ -749,7 +749,7 @@ clapper_queue_select_index (ClapperQueue *self, guint index)
|
|||||||
* Selects next #ClapperMediaItem from @queue for playback.
|
* Selects next #ClapperMediaItem from @queue for playback.
|
||||||
*
|
*
|
||||||
* Note that this will try to select next item in the order
|
* Note that this will try to select next item in the order
|
||||||
* of the queue, regardless of #ClapperQueueProgressionMode set.
|
* of the queue, regardless of [enum@Clapper.QueueProgressionMode] set.
|
||||||
*
|
*
|
||||||
* Returns: %TRUE if there was another media item in queue, %FALSE otherwise.
|
* Returns: %TRUE if there was another media item in queue, %FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
@@ -780,7 +780,7 @@ clapper_queue_select_next_item (ClapperQueue *self)
|
|||||||
* Selects previous #ClapperMediaItem from @queue for playback.
|
* Selects previous #ClapperMediaItem from @queue for playback.
|
||||||
*
|
*
|
||||||
* Note that this will try to select previous item in the order
|
* Note that this will try to select previous item in the order
|
||||||
* of the queue, regardless of #ClapperQueueProgressionMode set.
|
* of the queue, regardless of [enum@Clapper.QueueProgressionMode] set.
|
||||||
*
|
*
|
||||||
* Returns: %TRUE if there was previous media item in queue, %FALSE otherwise.
|
* Returns: %TRUE if there was previous media item in queue, %FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
@@ -933,7 +933,7 @@ clapper_queue_find_item (ClapperQueue *self, ClapperMediaItem *item, guint *inde
|
|||||||
*
|
*
|
||||||
* Get the number of items in #ClapperQueue.
|
* Get the number of items in #ClapperQueue.
|
||||||
*
|
*
|
||||||
* This behaves the same as g_list_model_get_n_items(), and is here
|
* This behaves the same as [method@Gio.ListModel.get_n_items], and is here
|
||||||
* for code uniformity and convenience to avoid type casting by user.
|
* for code uniformity and convenience to avoid type casting by user.
|
||||||
*
|
*
|
||||||
* This function is not available in bindings as they already
|
* This function is not available in bindings as they already
|
||||||
|
@@ -320,7 +320,7 @@ clapper_stream_list_get_current_index (ClapperStreamList *self)
|
|||||||
*
|
*
|
||||||
* Get the number of streams in #ClapperStreamList.
|
* Get the number of streams in #ClapperStreamList.
|
||||||
*
|
*
|
||||||
* This behaves the same as g_list_model_get_n_items(), and is here
|
* This behaves the same as [method@Gio.ListModel.get_n_items], and is here
|
||||||
* for code uniformity and convenience to avoid type casting by user.
|
* for code uniformity and convenience to avoid type casting by user.
|
||||||
*
|
*
|
||||||
* Returns: The number of streams in #ClapperStreamList.
|
* Returns: The number of streams in #ClapperStreamList.
|
||||||
|
@@ -106,9 +106,12 @@ clapper_subtitle_stream_get_lang_code (ClapperSubtitleStream *self)
|
|||||||
* clapper_subtitle_stream_get_lang_name:
|
* clapper_subtitle_stream_get_lang_name:
|
||||||
* @stream: a #ClapperSubtitleStream
|
* @stream: a #ClapperSubtitleStream
|
||||||
*
|
*
|
||||||
* Get an ISO-639 language code of the @stream.
|
* Get language name of the @stream.
|
||||||
*
|
*
|
||||||
* Returns: (transfer full) (nullable): the language code of subtitle stream.
|
* This function will try to return a translated string into current
|
||||||
|
* locale if possible, with a fallback to a name extracted from tags.
|
||||||
|
*
|
||||||
|
* Returns: (transfer full) (nullable): the language name of subtitle stream.
|
||||||
*/
|
*/
|
||||||
gchar *
|
gchar *
|
||||||
clapper_subtitle_stream_get_lang_name (ClapperSubtitleStream *self)
|
clapper_subtitle_stream_get_lang_name (ClapperSubtitleStream *self)
|
||||||
@@ -204,7 +207,7 @@ clapper_subtitle_stream_class_init (ClapperSubtitleStreamClass *klass)
|
|||||||
/**
|
/**
|
||||||
* ClapperSubtitleStream:lang-name:
|
* ClapperSubtitleStream:lang-name:
|
||||||
*
|
*
|
||||||
* Stream full language name determined from lang code.
|
* Stream language name.
|
||||||
*/
|
*/
|
||||||
param_specs[PROP_LANG_NAME] = g_param_spec_string ("lang-name",
|
param_specs[PROP_LANG_NAME] = g_param_spec_string ("lang-name",
|
||||||
NULL, NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
|
@@ -1342,7 +1342,7 @@ clapper_mpris_property_changed (ClapperFeature *feature, GParamSpec *pspec)
|
|||||||
* clapper_mpris_new:
|
* clapper_mpris_new:
|
||||||
* @own_name: an unique DBus name with "org.mpris.MediaPlayer2." prefix
|
* @own_name: an unique DBus name with "org.mpris.MediaPlayer2." prefix
|
||||||
* @identity: a media player friendly name
|
* @identity: a media player friendly name
|
||||||
* @desktop_entry: (nullable): desktop entry filename
|
* @desktop_entry: (nullable): desktop file basename (without ".desktop" extension)
|
||||||
*
|
*
|
||||||
* Creates a new #ClapperMpris instance.
|
* Creates a new #ClapperMpris instance.
|
||||||
*
|
*
|
||||||
|
@@ -920,7 +920,10 @@ clapper_server_set_port (ClapperServer *self, guint port)
|
|||||||
*
|
*
|
||||||
* Get requested server listening port.
|
* Get requested server listening port.
|
||||||
*
|
*
|
||||||
* Returns: Requested listening port or 0 using random port.
|
* If you want to know the port server is currently listening on,
|
||||||
|
* use [method@Clapper.Server.get_current_port] instead.
|
||||||
|
*
|
||||||
|
* Returns: Requested listening port or 0 when using random port.
|
||||||
*/
|
*/
|
||||||
guint
|
guint
|
||||||
clapper_server_get_port (ClapperServer *self)
|
clapper_server_get_port (ClapperServer *self)
|
||||||
@@ -965,9 +968,8 @@ clapper_server_get_current_port (ClapperServer *self)
|
|||||||
*
|
*
|
||||||
* Set whether remote @server clients can control [class@Clapper.Queue].
|
* Set whether remote @server clients can control [class@Clapper.Queue].
|
||||||
*
|
*
|
||||||
* This includes ability to add/remove items from
|
* This includes ability to add/remove items from the queue and selecting
|
||||||
* the queue and selecting current item for playback
|
* current item for playback remotely using WebSocket messages.
|
||||||
* remotely using WebSocket messages.
|
|
||||||
*
|
*
|
||||||
* You probably want to keep this disabled if your application
|
* You probably want to keep this disabled if your application
|
||||||
* is supposed to manage what is played now and not WebSocket client.
|
* is supposed to manage what is played now and not WebSocket client.
|
||||||
|
Reference in New Issue
Block a user