bitfocus / companion-module-songbeamer-osc

Songbeamer OSC Module
MIT License
5 stars 0 forks source link

/video/length returns 0 #17

Closed bensteUEM closed 2 months ago

bensteUEM commented 1 year ago

length is returned as 0 might be a mixup with #16 which returns a static value which is likely the length

Lasibian commented 1 year ago

Test again in SongBeamer 6.04c

bensteUEM commented 1 year ago

Download link for 6.04c?

bensteUEM commented 1 year ago

With 6.04c different values are received for 2 different videos - might be an indication that this was fixed. Needs further implementation and warning removal in module


debug: Received OSC message from: {"address":"192.168.0.28","family":"IPv4","port":10023,"size":28}
debug: OSC Content is: {"address":"/playlist/itemindex","args":[{"type":"i","value":3}]}
debug: /playlist/itemindex 3
info: 'playlist_itemindex' changed to 3
debug: Received OSC message from: {"address":"192.168.0.28","family":"IPv4","port":10023,"size":24}
debug: OSC Content is: {"address":"/video/length","args":[{"type":"f","value":0.0006943750195205212}]}
debug: /video/length 0.0006943750195205212
warn: There might be a bug in Songbeamer 6.0.0d which always results in a 0 value #17
debug: Received OSC message from: {"address":"192.168.0.28","family":"IPv4","port":10023,"size":28}
debug: OSC Content is: {"address":"/playlist/itemindex","args":[{"type":"i","value":4}]}
debug: /playlist/itemindex 4
info: 'playlist_itemindex' changed to 4
debug: Received OSC message from: {"address":"192.168.0.28","family":"IPv4","port":10023,"size":24}
debug: OSC Content is: {"address":"/video/length","args":[{"type":"f","value":0.00034722223062999547}]}
debug: /video/length 0.00034722223062999547
warn: There might be a bug in Songbeamer 6.0.0d which always results in a 0 value #17
Lasibian commented 1 year ago

Multiply with 86400 and you will have the video length in seconds.