# Webrtcbin property change signals

**URL:** <https://discourse.gstreamer.org/t/webrtcbin-property-change-signals/194>\
**Category:** Application Development\
**Created:** [October 2, 2023, 3:56pm UTC](https://discourse.gstreamer.org/t/webrtcbin-property-change-signals/194 "2023-10-02T15:56:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![robagar](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/robagar/32/100_2.png) [@robagar](https://discourse.gstreamer.org/u/robagar)\
**Post date:** [October 2, 2023, 3:56pm UTC](https://discourse.gstreamer.org/t/webrtcbin-property-change-signals/194/1 "2023-10-02T15:56:10Z")

</div>

These ones work, in that the closure passed to `webrtcbin.connect()` gets called -

- `notify::connection-state`
- `notify::signaling-state`

but these ones seem not to

- `notify::ice-connection-state`
- `notify::sctp-transport`

…bug?

---

<div class="post-metadata">

**Author:** ![slomo](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/slomo/32/4_2.png) [@slomo](https://discourse.gstreamer.org/u/slomo)\
**Post date:** [October 3, 2023, 6:03am UTC](https://discourse.gstreamer.org/t/webrtcbin-property-change-signals/194/2 "2023-10-03T06:03:28Z")

</div>

`ice-connection-state` should also be [notified](https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/42717a30f83867f0fcb95eb66c17c854c4ea53d5/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c#L1667). If that’s not the case then you found a bug that should be reported in [GitLab](https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/new), together with a full debug log and ideally a testcase to reproduce the problem.

`sctp-transport` is not notified but when/why do you expect it to be notified? Maybe that’s just a missing feature that could be added, or there’s another way for doing what you’re trying to do.

---

<div class="post-metadata">

**Author:** ![robagar](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/robagar/32/100_2.png) [@robagar](https://discourse.gstreamer.org/u/robagar)\
**Post date:** [October 3, 2023, 8:07am UTC](https://discourse.gstreamer.org/t/webrtcbin-property-change-signals/194/3 "2023-10-03T08:07:20Z")

</div>

Will do, I think I need to make a minimal system for test cases…

With `sctp-transport` I was hoping to watch any change to its `state` field to see if that would shed any light on the SCTP connection going into an error state.

---

<div class="post-metadata">

**Author:** ![slomo](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/slomo/32/4_2.png) [@slomo](https://discourse.gstreamer.org/u/slomo)\
**Post date:** [October 3, 2023, 8:10am UTC](https://discourse.gstreamer.org/t/webrtcbin-property-change-signals/194/4 "2023-10-03T08:10:06Z")

</div>

> [@robagar](#):
>
> With `sctp-transport` I was hoping to watch any change to its `state` field to see if that would shed any light on the SCTP connection going into an error state.

You should be able to get the `sctp-transport` once it’s created and then connect to its `notify::state` signal. Is the problem that you don’t know when it would be created?

---

<div class="post-metadata">

**Author:** ![robagar](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/robagar/32/100_2.png) [@robagar](https://discourse.gstreamer.org/u/robagar)\
**Post date:** [October 3, 2023, 8:19am UTC](https://discourse.gstreamer.org/t/webrtcbin-property-change-signals/194/5 "2023-10-03T08:19:36Z")

</div>

Thanks, no I just didn’t realise it _had_ a `notify::state` signal

---

<div class="post-metadata">

**Author:** ![robagar](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/robagar/32/100_2.png) [@robagar](https://discourse.gstreamer.org/u/robagar)\
**Post date:** [October 3, 2023, 8:29am UTC](https://discourse.gstreamer.org/t/webrtcbin-property-change-signals/194/6 "2023-10-03T08:29:03Z")

</div>

…so, should **all** readable properties of a struct that implements `ObjectExt` be notifiable?

---

<div class="post-metadata">

**Author:** ![slomo](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/slomo/32/4_2.png) [@slomo](https://discourse.gstreamer.org/u/slomo)\
**Post date:** [October 3, 2023, 8:34am UTC](https://discourse.gstreamer.org/t/webrtcbin-property-change-signals/194/7 "2023-10-03T08:34:10Z")

</div>

Theoretically all readable GObject properties should be notified whenever they change, yes. That includes `sctp-transport` too.

Some are not notified because it’s forgotten (which would be a bug), or because doing so would be too expensive (they’re changing too often).
