Merge pull request #416 from neilsb/report-playback-crashes

Check video and position are both valid before reporting playback info
This commit is contained in:
Anthony Lavado 2021-04-10 21:47:09 -04:00 committed by GitHub
commit be79ff3669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -314,6 +314,9 @@ function getAudioInfo(meta as object) as object
end function
function ReportPlayback(video, state = "update" as string)
if video = invalid or video.position = invalid then return void
params = {
"PlaySessionId": video.PlaySessionId,
"PositionTicks": int(video.position) * 10000000&, 'Ensure a LongInteger is used