...
| Code Block |
|---|
| language | cpp |
|---|
| title | Example rialto-gstreamer client code |
|---|
|
gboolean immediateOutput{TRUE}; // The desired setting
# NOTE: The "immediate-output" property will only be available if it's supported by the hardware
g_object_set(videoSink, "immediate-output", immediateOutput, nullptr); |
Low Latency
API for setting the "low-latency" property (used for low-latency audio output)
| PlantUML Render Macro |
|---|
| format | SVG |
|---|
| title | setLowLatency |
|---|
|
@startuml autonumber box "Container" #LightGreen participant GStreamer_client participant rialtoClient end box box "Platform" #LightBlue participant rialtoServer participant GStreamer_server end box GStreamer_client -> rialtoClient: setLowLatency(pipeline_session, lowLatency) rialtoClient -> rialtoServer: setLowLatency(pipeline_session, lowLatency) rialtoServer -> GStreamer_server: g_object_set(pipeline, "low-latency", lowLatency, nullptr) GStreamer_server --> rialtoServer: status rialtoServer --> rialtoClient: status rialtoClient --> GStreamer_client: nothing returned @enduml
|
| Code Block |
|---|
| language | cpp |
|---|
| title | Example rialto-gstreamer client code |
|---|
|
gboolean lowLatency{TRUE}; // The desired setting
# NOTE: The "low-latency" property will only be available if it's supported by the hardware
g_object_set(audioSink, "low-latency", lowLatency, nullptr); |
Sync
API for setting and getting the "sync" property
| PlantUML Render Macro |
|---|
|
@startuml autonumber box "Container" #LightGreen participant GStreamer_client participant rialtoClient end box box "Platform" #LightBlue participant rialtoServer participant GStreamer_server end box GStreamer_client -> rialtoClient: getSync(pipeline_session, source_id) rialtoClient -> rialtoServer: getSync(pipeline_session, source_id) rialtoServer -> GStreamer_server: g_object_get(pipeline, "sync", &sync, nullptr) GStreamer_server --> rialtoServer: sync rialtoServer --> rialtoClient: sync rialtoClient --> GStreamer_client:sync @enduml
|
| Code Block |
|---|
| language | cpp |
|---|
| title | Example rialto-gstreamer client code |
|---|
|
gboolean sync{TRUE};
# NOTE: The "sync" property will only be available if it's supported by the hardware
g_object_get(audioSink, "sync", &sync, nullptr); |
| PlantUML Render Macro |
|---|
|
@startuml autonumber box "Container" #LightGreen participant GStreamer_client participant rialtoClient end box box "Platform" #LightBlue participant rialtoServer participant GStreamer_server end box GStreamer_client -> rialtoClient: setSync(pipeline_session, sync) rialtoClient -> rialtoServer: setSync(pipeline_session, sync) rialtoServer -> GStreamer_server: g_object_set(pipeline, "sync", sync, nullptr) GStreamer_server --> rialtoServer: status rialtoServer --> rialtoClient: status rialtoClient --> GStreamer_client: nothing returned @enduml
|
| Code Block |
|---|
| language | cpp |
|---|
| title | Example rialto-gstreamer client code |
|---|
|
gboolean sync{TRUE}; // The desired setting
# NOTE: The "sync" property will only be available if it's supported by the hardware
g_object_set(audioSink, "sync", sync, nullptr); |
Mute
API for setting and getting the mute setting for a pipeline session.
...