iOS GstPlay - Can't receive any signal
Describe your issue
I would like to receive some signal from GstPlay
: see documentation
Expected Behavior
My function should be call and print my logs
Setup
- Operating System: iOS
- Device: Mobile
- GStreamer Version: 1.20.2
-
Command line:
g_signal_connect (adapter, "state-changed", G_CALLBACK(stateChangedCb), NULL);
Steps to reproduce the bug
static GstPlay *player;
static GstPlaySignalAdapter *adapter;
-(instancetype)init {
self = [super init];
if (!player) {
[self configurePlayer];
}
return self;
}
-(void)configurePlayer {
GstreamerConfiguration(); // Like gst_ios_init
player = gst_play_new(NULL);
adapter = gst_play_signal_adapter_new(player);
gst_play_config_set_seek_accurate(gst_play_get_config(player), true);
[self configureCallBacks];
}
-(void)configureCallBacks {
NSLog(@"---- callllled");
g_signal_connect (adapter, "state-changed", G_CALLBACK(stateChangedCb), NULL);
}
void stateChangedCb (GstPlaySignalAdapter *adapter, GstPlayState *state, void *data) {
NSLog(@"---- NEW STATE");
}
The log ---- NEW STATE
should be print .
Do you have any idea ?