|
tv-service
0.1.0
|
Go to the source code of this file.
Data Structures | |
| struct | TvServiceResolutionData |
Typedefs | |
| typedef gpointer | TvServiceLive |
| typedef void(* | TvServiceLiveCallback )(TvServiceLiveEvent event, gpointer user_data, const gpointer data) |
This API is not official tv-service API. It can always be changed without announcement.
| typedef gpointer TvServiceLive |
| typedef void(* TvServiceLiveCallback)(TvServiceLiveEvent event, gpointer user_data, const gpointer data) |
| enum TvServiceLiveEvent |
| gint tv_service_live_create | ( | TvServiceLive * | live | ) |
This function creates a live proxy for playing multimedia contents.
The attributes of live are created to get/set some values with application.
And, mutex, gstreamer and other resources are initialized at this time.
Before create the proxy handle, the daemon must be launched first.
| live | [in] Handle of live. |
| gint tv_service_live_destroy | ( | TvServiceLive | live | ) |
This function releases live object and all resources which were created by tv_service_live_create().
And, live handle will also be destroyed.
| live | [in] Handle of live |
| gint tv_service_live_get_antenna_type | ( | TvServiceLive | live, |
| TvServiceAntenna * | type | ||
| ) |
This function is to get the antenna type(AIR/CABLE/ALL), which is setted before.
| live | [in] Handle of live |
| type | [in] Pointer to get value |
| gint tv_service_live_get_audio_mute | ( | TvServiceLive | live, |
| gboolean * | mute | ||
| ) |
This function is to get the mute value which is setted before.
| live | [in] Handle of live |
| mute | [in] Pointer to get value |
| gint tv_service_live_get_last_channel | ( | gint * | service_id | ) |
This function is to get the latest tuned service id which is setted before.
| service_id | [out] Pointer to get value. Zero means no channel. |
| int tv_service_live_get_service_id | ( | TvServiceLive | live, |
| gint * | service_id | ||
| ) |
This function is to get the current service id which is setted before.
| live | [in] Handle of live |
| service_id | [in] Pointer to get value |
| gint tv_service_live_get_video_mute | ( | TvServiceLive | live, |
| gboolean * | mute | ||
| ) |
This function is to get the mute value which is setted before.
| live | [in] Handle of live |
| mute | [in] Pointer to get value |
| gint tv_service_live_get_volume | ( | TvServiceLive | live, |
| gdouble * | volume | ||
| ) |
This function is to get the audio volume which is setted before.
| live | [in] Handle of live |
| volume | [in] Pointer to get value |
| gint tv_service_live_register_callback | ( | TvServiceLive | live, |
| TvServiceLiveCallback | callback_func, | ||
| gpointer | user_data | ||
| ) |
This function sets callback function for receiving messages from daemon. So, live can notify events to application.
| live | [in] Handle of live. |
| callback_func | [in] Message callback function. |
| user_data | [in] User user_data. |
| gint tv_service_live_set_antenna_type | ( | TvServiceLive | live, |
| TvServiceAntenna | type | ||
| ) |
This function is to set the antenna type(AIR/CABLE/ALL), if the antenna type changed, the service should be reset and the service should set the dafault channel info to daemon.
| live | [in] Handle of live |
| type | [in] Type of the tuner |
| gint tv_service_live_set_audio_mute | ( | TvServiceLive | live, |
| gboolean | mute | ||
| ) |
This function is set the audio to mute or not.
| live | [in] Handle of live |
| mute | [in] Mute or not |
| gint tv_service_live_set_video_mute | ( | TvServiceLive | live, |
| gboolean | mute | ||
| ) |
This function is set the video to mute or unmute.
| live | [in] Handle of live |
| mute | [in] Mute or unmute |
| gint tv_service_live_set_volume | ( | TvServiceLive | live, |
| gdouble | volume | ||
| ) |
This function is to set the audio volume.
| live | [in] Handle of live |
| volume | [in] The volume of audio, should be double and the value is in [0.0 ~ 10.0] |
| gint tv_service_live_set_window_overlay | ( | TvServiceLive | live, |
| gpointer | window_id | ||
| ) |
This function is to set the window id, the window id was generated by app, and the tv service does not care the window size and other window properties, just set the window id to the TVplayer.
| live | [in] Handle of live |
| window_id | [in] Value of the window id |
| gint tv_service_live_tune | ( | TvServiceLive | live, |
| gint | service_id | ||
| ) |
This function is to set the tuner property by service id.
The service id can be transform into tuner property by calling channel info interfaces.
Than call the tv_service_live_tune_full to set tune.
| live | [in] Handle of live |
| service_id | [in] The service id of service |
| gint tv_service_live_tune_by_program_number | ( | TvServiceLive | live, |
| gint | freq, | ||
| gint | mod, | ||
| gint | pro_num | ||
| ) |
This function is to set the demuxer property and start playing media contents.
The property was containts program_number.
| live | [in] Handle of live |
| freq | [in] Frequence of channel |
| mod | [in] Modulation of service |
| pro_num | [in] program number of channel |
| gint tv_service_live_tune_down | ( | TvServiceLive | live, |
| TvServiceChannelMode | mode, | ||
| TvServiceAntenna | type | ||
| ) |
This function is to tune down channel, it can be tune_up by channel mode and antenna type.
| live | [in] Handle of live |
| mode | [in] value of channel mode |
| type | [in] value of antenna type |
| gint tv_service_live_tune_full | ( | TvServiceLive | live, |
| gint | freq, | ||
| gint | mod, | ||
| gint | apid, | ||
| gint | vpid, | ||
| gint | ppid | ||
| ) |
This function is to set the tuner property and start playing media contents.
The property was containts freq, mod, apid, vpid.
*Demux(parser), codec and related plugins are decided at this time.
| live | [in] Handle of live |
| freq | [in] Frequence of channel |
| mod | [in] Modulation of service |
| apid | [in] Audio pid of service |
| vpid | [in] Video pid of service |
| ppid | [in] Pmt pid of service |
| gint tv_service_live_tune_locked_channel | ( | TvServiceLive | live, |
| gint | service_id, | ||
| gchar * | password | ||
| ) |
This function is to tune the channel with was locked before, to let the uses see the tv broadcast temporary by using the passwird and service id.
| live | [in] Handle of live |
| service_id | [in] The service id of service |
| password | [in] The password of channel |
| gboolean tv_service_live_tune_pause | ( | TvServiceLive | live | ) |
temp API
| gboolean tv_service_live_tune_resume | ( | TvServiceLive | live | ) |
| gint tv_service_live_tune_up | ( | TvServiceLive | live, |
| TvServiceChannelMode | mode, | ||
| TvServiceAntenna | type | ||
| ) |
This function is to tune up channel, it can be tune_up by channel mode and antenna type.
| live | [in] Handle of live |
| mode | [in] value of channel mode |
| type | [in] value of antenna type |