@@ -1147,6 +1147,10 @@ static void webu_answer_strm_type(struct webui_ctx *webui) {
11471147 (strcmp (webui -> uri_camid ,"current" ) == 0 )){
11481148 webui -> cnct_type = WEBUI_CNCT_STATIC ;
11491149
1150+ } else if ((strlen (webui -> uri_camid ) > 0 ) &&
1151+ (strlen (webui -> uri_cmd1 ) == 0 )){
1152+ webui -> cnct_type = WEBUI_CNCT_FULL ;
1153+
11501154 } else {
11511155 webui -> cnct_type = WEBUI_CNCT_UNKNOWN ;
11521156 }
@@ -1434,7 +1438,7 @@ static void webu_mhd_features_basic(struct mhdstart_ctx *mhdst){
14341438 int retcd ;
14351439 retcd = MHD_is_feature_supported (MHD_FEATURE_BASIC_AUTH );
14361440 if (retcd == MHD_YES ){
1437- MOTION_LOG (INF , TYPE_STREAM , NO_ERRNO ,_ ("Basic authentication: available" ));
1441+ MOTION_LOG (DBG , TYPE_STREAM , NO_ERRNO ,_ ("Basic authentication: available" ));
14381442 } else {
14391443 if ((mhdst -> ctrl ) && (mhdst -> cnt [mhdst -> indxthrd ]-> conf .webcontrol_auth_method == 1 )){
14401444 MOTION_LOG (NTC , TYPE_STREAM , NO_ERRNO ,_ ("Basic authentication: disabled" ));
@@ -1457,7 +1461,7 @@ static void webu_mhd_features_digest(struct mhdstart_ctx *mhdst){
14571461 int retcd ;
14581462 retcd = MHD_is_feature_supported (MHD_FEATURE_DIGEST_AUTH );
14591463 if (retcd == MHD_YES ){
1460- MOTION_LOG (INF , TYPE_STREAM , NO_ERRNO ,_ ("Digest authentication: available" ));
1464+ MOTION_LOG (DBG , TYPE_STREAM , NO_ERRNO ,_ ("Digest authentication: available" ));
14611465 } else {
14621466 if ((mhdst -> ctrl ) && (mhdst -> cnt [mhdst -> indxthrd ]-> conf .webcontrol_auth_method == 2 )){
14631467 MOTION_LOG (NTC , TYPE_STREAM , NO_ERRNO ,_ ("Digest authentication: disabled" ));
@@ -1486,9 +1490,9 @@ static void webu_mhd_features_ipv6(struct mhdstart_ctx *mhdst){
14861490 int retcd ;
14871491 retcd = MHD_is_feature_supported (MHD_FEATURE_IPv6 );
14881492 if (retcd == MHD_YES ){
1489- MOTION_LOG (INF , TYPE_STREAM , NO_ERRNO ,_ ("IPV6: available" ));
1493+ MOTION_LOG (DBG , TYPE_STREAM , NO_ERRNO ,_ ("IPV6: available" ));
14901494 } else {
1491- MOTION_LOG (INF , TYPE_STREAM , NO_ERRNO ,_ ("IPV6: disabled" ));
1495+ MOTION_LOG (NTC , TYPE_STREAM , NO_ERRNO ,_ ("IPV6: disabled" ));
14921496 if (mhdst -> ipv6 ) mhdst -> ipv6 = 0 ;
14931497 }
14941498 #endif
@@ -1511,7 +1515,7 @@ static void webu_mhd_features_tls(struct mhdstart_ctx *mhdst){
15111515 int retcd ;
15121516 retcd = MHD_is_feature_supported (MHD_FEATURE_SSL );
15131517 if (retcd == MHD_YES ){
1514- MOTION_LOG (INF , TYPE_STREAM , NO_ERRNO ,_ ("SSL/TLS: available" ));
1518+ MOTION_LOG (DBG , TYPE_STREAM , NO_ERRNO ,_ ("SSL/TLS: available" ));
15151519 } else {
15161520 if ((mhdst -> ctrl ) && (mhdst -> cnt [mhdst -> indxthrd ]-> conf .webcontrol_tls )){
15171521 MOTION_LOG (NTC , TYPE_STREAM , NO_ERRNO ,_ ("SSL/TLS: disabled" ));
@@ -1836,6 +1840,10 @@ static void webu_start_ctrl(struct context **cnt){
18361840 free (mhdst .mhd_ops );
18371841 if (cnt [0 ]-> webcontrol_daemon == NULL ){
18381842 MOTION_LOG (NTC , TYPE_STREAM , NO_ERRNO ,_ ("Unable to start MHD" ));
1843+ } else {
1844+ MOTION_LOG (NTC , TYPE_STREAM , NO_ERRNO
1845+ ,_ ("Started webcontrol on port %d" )
1846+ ,cnt [0 ]-> conf .webcontrol_port );
18391847 }
18401848 }
18411849
@@ -1845,6 +1853,32 @@ static void webu_start_ctrl(struct context **cnt){
18451853 return ;
18461854}
18471855
1856+ static void webu_strm_ntc (struct context * * cnt , int indxthrd ){
1857+ int indx ;
1858+
1859+ if (indxthrd == 0 ){
1860+ if (cnt [1 ] != NULL ) {
1861+ indx = 1 ;
1862+ while (cnt [indx ] != NULL ){
1863+ MOTION_LOG (NTC , TYPE_STREAM , NO_ERRNO
1864+ ,_ ("Started camera %d stream on port/camera_id %d/%d" )
1865+ ,cnt [indx ]-> camera_id
1866+ ,cnt [indxthrd ]-> conf .stream_port
1867+ ,cnt [indx ]-> camera_id );
1868+ indx ++ ;
1869+ }
1870+ } else {
1871+ MOTION_LOG (NTC , TYPE_STREAM , NO_ERRNO
1872+ ,_ ("Started camera %d stream on port %d" )
1873+ ,cnt [indxthrd ]-> camera_id ,cnt [indxthrd ]-> conf .stream_port );
1874+ }
1875+ } else {
1876+ MOTION_LOG (NTC , TYPE_STREAM , NO_ERRNO
1877+ ,_ ("Started camera %d stream on port %d" )
1878+ ,cnt [indxthrd ]-> camera_id ,cnt [indxthrd ]-> conf .stream_port );
1879+ }
1880+ }
1881+
18481882static void webu_start_strm (struct context * * cnt ){
18491883 /* This function starts up the daemon for the streams. It loops through
18501884 * all of the camera context's provided and starts streams as requested. If
@@ -1905,6 +1939,8 @@ static void webu_start_strm(struct context **cnt){
19051939 MOTION_LOG (NTC , TYPE_STREAM , NO_ERRNO
19061940 ,_ ("Unable to start stream for camera %d" )
19071941 ,cnt [mhdst .indxthrd ]-> camera_id );
1942+ } else {
1943+ webu_strm_ntc (cnt ,mhdst .indxthrd );
19081944 }
19091945 }
19101946 mhdst .indxthrd ++ ;
0 commit comments