TrinityDiy
New Member
Hello all,
I, like many love to program. Problem is there are so many languages to know and I was never good at reading API's documentation.
Using Michael Abrahams's script: Automatic ffmpeg re-encoding i've been able to make a On Air / Recording Indicator system. Im able to use obs.signal_handler_connect(OnAirIndicator.recording_signal_handler, "activate", /* status */) to get the status or Recording and Streaming.
example:
Scene: 'A'
············|__ source:'Cam_A'
············|__ source:'image_2' <b>
Scene: 'B'
············|__source: 'Browser'
············|__source: 'media'
Scene: 'C'
············|__ source:'Group_1'
····································|__ source:'Text_1'
What i would like to do is find out how to get a handle of a source within a scene. Then when source: 'Browser' within Scene: 'B' is show=
true [Do Bla]. Then when source: 'Browser' within Scene: 'B' is Hide = true [Do Bla].
This is what I found:
Source API Reference (obs_source_t)
Source Signals:
show (ptr source)
Called when the source is visible on any display and/or on the main view.
hide (ptr source)
Called when the source is no longer visible on any display and/or on the main view.
Any input will be appreciated
I, like many love to program. Problem is there are so many languages to know and I was never good at reading API's documentation.
Using Michael Abrahams's script: Automatic ffmpeg re-encoding i've been able to make a On Air / Recording Indicator system. Im able to use obs.signal_handler_connect(OnAirIndicator.recording_signal_handler, "activate", /* status */) to get the status or Recording and Streaming.
example:
Scene: 'A'
············|__ source:'Cam_A'
············|__ source:'image_2' <b>
Scene: 'B'
············|__source: 'Browser'
············|__source: 'media'
Scene: 'C'
············|__ source:'Group_1'
····································|__ source:'Text_1'
What i would like to do is find out how to get a handle of a source within a scene. Then when source: 'Browser' within Scene: 'B' is show=
true [Do Bla]. Then when source: 'Browser' within Scene: 'B' is Hide = true [Do Bla].
This is what I found:
Source API Reference (obs_source_t)
Source Signals:
show (ptr source)
Called when the source is visible on any display and/or on the main view.
hide (ptr source)
Called when the source is no longer visible on any display and/or on the main view.
Any input will be appreciated