@@ -31,7 +31,7 @@ describe('Video Functions', function () {
31
31
const vManager = new VideoStream ( settings , winston )
32
32
33
33
vManager . populateAddresses ( )
34
- vManager . getVideoDevices ( function ( err , devices , active , seldevice , selRes , selRot , selbitrate , selfps , SeluseUDP , SeluseUDPIP , SeluseUDPPort , timestamp , fps , FPSMax , vidres , selMavURI ) {
34
+ vManager . getVideoDevices ( function ( err , devices , active , seldevice , selRes , selRot , selbitrate , selfps , SeluseUDP , SelusePhotoMode , SeluseUDPIP , SeluseUDPPort , timestamp , fps , FPSMax , vidres , selMavURI ) {
35
35
assert . equal ( err , null )
36
36
assert . equal ( active , false )
37
37
assert . notEqual ( seldevice , null )
@@ -40,6 +40,7 @@ describe('Video Functions', function () {
40
40
assert . notEqual ( selbitrate , null )
41
41
assert . notEqual ( selfps , null )
42
42
assert . equal ( SeluseUDP , false )
43
+ assert . equal ( SelusePhotoMode , false )
43
44
assert . equal ( SeluseUDPIP , '127.0.0.1' )
44
45
assert . equal ( SeluseUDPPort , 5400 )
45
46
assert . equal ( timestamp , false )
@@ -63,11 +64,11 @@ describe('Video Functions', function () {
63
64
settings . clear ( )
64
65
const vManager = new VideoStream ( settings , winston )
65
66
66
- vManager . startStopStreaming ( true , 'testsrc' , '1080' , '1920' , 'video/x-h264' , '0' , '1000' , '5' , false , false , false , true , false , '0 ', function ( err , status , addresses ) {
67
+ vManager . startStopStreaming ( true , 'testsrc' , '1080' , '1920' , 'video/x-h264' , '0' , '1000' , '5' , false , false , false , false , true , false , false , '0' , '~/Rpanion-server/media/ ', function ( err , status , addresses ) {
67
68
assert . equal ( err , null )
68
69
assert . equal ( status , true )
69
70
assert . notEqual ( vManager . deviceStream . pid , null )
70
- vManager . startStopStreaming ( false , 'testsrc' , '1080' , '1920' , 'video/x-h264' , '0' , '1000' , '5' , false , false , false , true , false , '0 ', function ( err , status , addresses ) {
71
+ vManager . startStopStreaming ( false , 'testsrc' , '1080' , '1920' , 'video/x-h264' , '0' , '1000' , '5' , false , false , false , false , true , false , false , '0' , '~/Rpanion-server/media/ ', function ( err , status , addresses ) {
71
72
assert . equal ( err , null )
72
73
assert . equal ( status , false )
73
74
done ( )
0 commit comments