Skip to content

Commit

Permalink
vmpserverd: Add gstDebug property
Browse files Browse the repository at this point in the history
  • Loading branch information
hmelder committed Mar 7, 2024
1 parent b31b603 commit 47599cf
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Daemons/vmpserverd/config.plist.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<string>0.0.0.0</string>
<key>rtspPort</key>
<string>8554</string>

<!--
Specify the port of the HTTP server here.
We are currently listening to all interfaces.
Expand All @@ -34,6 +35,30 @@
<string>admin</string>
<key>httpPassword</key>
<string>password</string>

<!--
GStreamer debug string.
Sets the debug logging wanted in the same form as with the GST_DEBUG environment
variable. You can use wildcards such as '*', but note that the order matters
when you use wild cards, e.g. "foosrc:6,src:3,:2" sets everything to log level 2.
0: None - No logs.
1: ERROR - Critical errors affecting actions.
2: WARNING - Possible non-fatal issues.
3: FIXME - Unfinished code paths.
4: INFO - Important rare events.
5: DEBUG - Limited occurrence events.
6: LOG - Frequent steady-state events.
7: TRACE - Very frequent events, like ref/unref cycles.
9: MEMDUMP - Hexdumps of data for in-depth debugging.
-->
<key>gstDebug</key>
<!--
We set everything to WARNING
-->
<string>*:2</string>

<!--
Specify the mountpoints of the RTSP server here.
Expand Down
2 changes: 2 additions & 0 deletions Daemons/vmpserverd/src/models/VMPConfigModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

@property (nonatomic, strong) NSString *httpPassword;

@property (nonatomic, strong) NSString *gstDebug;

@property (nonatomic, strong) NSArray<VMPConfigMountpointModel *> *mountpoints;

@property (nonatomic, strong) NSArray<VMPConfigChannelModel *> *channels;
Expand Down
3 changes: 3 additions & 0 deletions Daemons/vmpserverd/src/models/VMPConfigModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ - (id)initWithPropertyList:(id)propertyList error:(NSError **)error {
SET_PROPERTY(_httpAuth, @"httpAuth");
SET_PROPERTY(_httpUsername, @"httpUsername");
SET_PROPERTY(_httpPassword, @"httpPassword");
SET_PROPERTY(_gstDebug, @"gstDebug");

SET_PROPERTY(plistMountpoints, @"mountpoints");
SET_PROPERTY(plistChannels, @"channels");
Expand Down Expand Up @@ -90,6 +91,7 @@ - (id)propertyList {
VMP_ASSERT(_httpAuth, @"httpAuth is nil");
VMP_ASSERT(_httpUsername, @"httpUsername is nil");
VMP_ASSERT(_httpPassword, @"httpPassword is nil");
VMP_ASSERT(_gstDebug, @"gstDebug is nil");
VMP_ASSERT(_mountpoints, @"mountpoints is nil");
VMP_ASSERT(_channels, @"channels is nil");

Expand All @@ -100,6 +102,7 @@ - (id)propertyList {
@"httpPort" : _httpPort,
@"httpUsername" : _httpUsername,
@"httpPassword" : _httpPassword,
@"gstDebug" : _gstDebug,
@"mountpoints" : [self propertyListMountpoints],
@"channels" : [self propertyListChannels],
};
Expand Down

0 comments on commit 47599cf

Please sign in to comment.