Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event playback scaling issue #766

Closed
hgregorian opened this issue Dec 21, 2018 · 4 comments
Closed

Event playback scaling issue #766

hgregorian opened this issue Dec 21, 2018 · 4 comments
Labels

Comments

@hgregorian
Copy link

Platform & OS Version

iOS 12.1

The version of zmNinja you are reporting:

1.3.039 (although I'm fairly certain issue was present as early as 1.3.033, but definitely was not present in versions earlier than that)

The version of ZoneMinder you are using:

1.32.3

Device details:

iPhone 8

What is the nature of your issue

Event viewing scaling issues.

Details

When viewing a specific event in portrait (after tapping the red "play" button) and then rotating to landscape, image does not scale as expected. If device is in landscape when viewing list of events and then tapping red play button, issue is not observed, but can easily be reproduced by rotating to portrait and then back to landscape.

Debug Logs (if applicable)

Dec 20, 2018 03:54:05 PM INFO Returning pre-loaded list of 20 monitors
Dec 20, 2018 03:54:05 PM INFO EventCtrl called with: E/MID=0 playEvent =  false
Dec 20, 2018 03:54:05 PM DEBUG >>>height of list/scrub set to 330 and 370
Dec 20, 2018 03:54:05 PM INFO Image padding digits reported as 5
Dec 20, 2018 03:54:05 PM DEBUG ~~~~ sendMessage: Sending->{"event":"push","data":{"type":"badge","badge":0}}
Dec 20, 2018 03:54:06 PM DEBUG getInitialEvents called
Dec 20, 2018 03:54:06 PM DEBUG EventCtrl: grabbing # of event pages
Dec 20, 2018 03:54:06 PM DEBUG EventCtrl: grabbing events for: id=0 Date/Time:-
Dec 20, 2018 03:54:06 PM DEBUG getEvents:https://example.com/zm/api/events/index/AlarmFrames >=:0.json?&sort=StartTime&direction=desc&page=1
Dec 20, 2018 03:54:06 PM DEBUG Setting up carousel watchers
Dec 20, 2018 03:54:07 PM DEBUG We have a total of 30 and are at page=1
Dec 20, 2018 03:54:07 PM DEBUG EventCtrl: success, got 100 events
Dec 20, 2018 03:54:31 PM DEBUG unbinding eventCtrl watchers as modal has its own
Dec 20, 2018 03:54:31 PM INFO Using stream mode single
Dec 20, 2018 03:54:31 PM DEBUG EventModalCtrl called from app.events
Dec 20, 2018 03:54:31 PM DEBUG Setting playback to undefined
Dec 20, 2018 03:54:31 PM DEBUG If recording is in progress, live feed will be shown
Dec 20, 2018 03:54:31 PM DEBUG Generated Connkey:707782
Dec 20, 2018 03:54:31 PM INFO *** Constructed API for detailed events: https://example.com/zm/api/events/24270.json
Dec 20, 2018 03:54:32 PM DEBUG Neighbor next URL=https://example.com/zm/api/events/index/StartTime >: 2018-12-20 15:41:55/AlarmFrames >=: 0.json?sort=StartTime&direction=asc&limit=1
Dec 20, 2018 03:54:32 PM DEBUG Neighbor pre URL=https://example.com/zm/api/events/index/StartTime <: 2018-12-20 15:41:55/AlarmFrames >=: 0.json?sort=StartTime&direction=desc&limit=1
Dec 20, 2018 03:54:32 PM DEBUG Video url passed to player is: https://example.com/zm/index.php?view=view_video&eid=24270&auth=5ae20390f42c9738111c5b44f54cdca3
Dec 20, 2018 03:54:33 PM DEBUG neighbors of 24270are pre=24268 next=24271
Dec 20, 2018 03:54:33 PM INFO >>>Starting checkAllEvents interval...
Dec 20, 2018 03:54:41 PM DEBUG On Play Ready invoked
Dec 20, 2018 03:54:41 PM DEBUG Player is ready
Dec 20, 2018 03:54:41 PM DEBUG *** Invoking play
Dec 20, 2018 03:54:43 PM DEBUG This video can be played
Dec 20, 2018 03:54:43 PM DEBUG Setting cue points..
Dec 20, 2018 03:54:43 PM DEBUG API-Total length:15.85
Dec 20, 2018 03:54:43 PM DEBUG Player-Total length:17.949
Dec 20, 2018 03:54:49 PM DEBUG >>>EventCtrl:Close & Destroy Modal
Dec 20, 2018 03:54:49 PM DEBUG Rebinding watchers of eventCtrl
Dec 20, 2018 03:54:49 PM DEBUG Setting up carousel watchers
Dec 20, 2018 03:54:49 PM DEBUG Modal removed - killing connkey
Dec 20, 2018 03:54:53 PM DEBUG unbinding eventCtrl watchers as modal has its own
Dec 20, 2018 03:54:53 PM INFO Using stream mode single
Dec 20, 2018 03:54:53 PM DEBUG EventModalCtrl called from app.events
Dec 20, 2018 03:54:53 PM DEBUG Setting playback to undefined
Dec 20, 2018 03:54:53 PM DEBUG If recording is in progress, live feed will be shown
Dec 20, 2018 03:54:53 PM DEBUG Generated Connkey:346221
Dec 20, 2018 03:54:53 PM INFO *** Constructed API for detailed events: https://example.com/zm/api/events/24270.json
Dec 20, 2018 03:54:54 PM DEBUG Neighbor next URL=https://example.com/zm/api/events/index/StartTime >: 2018-12-20 15:41:55/AlarmFrames >=: 0.json?sort=StartTime&direction=asc&limit=1
Dec 20, 2018 03:54:54 PM DEBUG Neighbor pre URL=https://example.com/zm/api/events/index/StartTime <: 2018-12-20 15:41:55/AlarmFrames >=: 0.json?sort=StartTime&direction=desc&limit=1
Dec 20, 2018 03:54:54 PM DEBUG Video url passed to player is: https://example.com/zm/index.php?view=view_video&eid=24270&auth=5ae20390f42c9738111c5b44f54cdca3
Dec 20, 2018 03:54:55 PM DEBUG neighbors of 24270are pre=24268 next=24271
Dec 20, 2018 03:54:55 PM INFO >>>Starting checkAllEvents interval...
Dec 20, 2018 03:55:50 PM DEBUG On Play Ready invoked
Dec 20, 2018 03:55:50 PM DEBUG Player is ready
Dec 20, 2018 03:55:50 PM DEBUG *** Invoking play
Dec 20, 2018 03:55:51 PM DEBUG This video can be played
Dec 20, 2018 03:55:51 PM DEBUG Setting cue points..
Dec 20, 2018 03:55:51 PM DEBUG API-Total length:15.85
Dec 20, 2018 03:55:51 PM DEBUG Player-Total length:17.949
Dec 20, 2018 03:56:00 PM DEBUG >>>EventCtrl:Close & Destroy Modal
Dec 20, 2018 03:56:00 PM DEBUG Rebinding watchers of eventCtrl
Dec 20, 2018 03:56:00 PM DEBUG Setting up carousel watchers
Dec 20, 2018 03:56:00 PM DEBUG Modal removed - killing connkey
Dec 20, 2018 03:56:06 PM DEBUG unbinding eventCtrl watchers as modal has its own
Dec 20, 2018 03:56:06 PM INFO Using stream mode single
Dec 20, 2018 03:56:06 PM DEBUG EventModalCtrl called from app.events
Dec 20, 2018 03:56:06 PM DEBUG Setting playback to undefined
Dec 20, 2018 03:56:06 PM DEBUG If recording is in progress, live feed will be shown
Dec 20, 2018 03:56:06 PM DEBUG Generated Connkey:372896
Dec 20, 2018 03:56:06 PM INFO *** Constructed API for detailed events: https://example.com/zm/api/events/24270.json
Dec 20, 2018 03:56:07 PM DEBUG Neighbor next URL=https://example.com/zm/api/events/index/StartTime >: 2018-12-20 15:41:55/AlarmFrames >=: 0.json?sort=StartTime&direction=asc&limit=1
Dec 20, 2018 03:56:07 PM DEBUG Neighbor pre URL=https://example.com/zm/api/events/index/StartTime <: 2018-12-20 15:41:55/AlarmFrames >=: 0.json?sort=StartTime&direction=desc&limit=1
Dec 20, 2018 03:56:07 PM DEBUG Video url passed to player is: https://example.com/zm/index.php?view=view_video&eid=24270&auth=5ae20390f42c9738111c5b44f54cdca3
Dec 20, 2018 03:56:08 PM DEBUG neighbors of 24270are pre=24268 next=24271
Dec 20, 2018 03:56:08 PM INFO >>>Starting checkAllEvents interval...
Dec 20, 2018 03:56:20 PM DEBUG On Play Ready invoked
Dec 20, 2018 03:56:20 PM DEBUG Player is ready
Dec 20, 2018 03:56:20 PM DEBUG *** Invoking play
Dec 20, 2018 03:56:21 PM DEBUG This video can be played
Dec 20, 2018 03:56:21 PM DEBUG Setting cue points..
Dec 20, 2018 03:56:21 PM DEBUG API-Total length:15.85
Dec 20, 2018 03:56:21 PM DEBUG Player-Total length:17.949
Dec 20, 2018 03:56:31 PM DEBUG >>>EventCtrl:Close & Destroy Modal
Dec 20, 2018 03:56:31 PM DEBUG Rebinding watchers of eventCtrl
Dec 20, 2018 03:56:31 PM DEBUG Setting up carousel watchers
Dec 20, 2018 03:56:31 PM DEBUG Modal removed - killing connkey
Dec 20, 2018 03:56:33 PM INFO -->Clearing online/offine
Dec 20, 2018 03:56:33 PM INFO ROOT APP:App is going into background
Dec 20, 2018 03:56:33 PM INFO Clearing error/close cbk, disconnecting and deleting Event Server socket...
Dec 20, 2018 03:56:33 PM DEBUG Closing native websocket as websocket = 2B995615-58E2-4BB7-BA9C-F3925A953A3D
Dec 20, 2018 03:56:33 PM INFO Cancelling zmAutologin timer
Dec 20, 2018 03:56:33 PM DEBUG MontageCtrl: onpause called
Dec 20, 2018 03:56:33 PM DEBUG Montage View Cleanup was already done, skipping
Dec 20, 2018 03:56:33 PM DEBUG ModalCtrl: onpause called
Dec 20, 2018 03:56:33 PM DEBUG Killing single stream...
Dec 20, 2018 03:56:33 PM DEBUG DataModel: killing  live stream ck:996656
Dec 20, 2018 03:56:33 PM DEBUG MontageCtrl: onpause called
Dec 20, 2018 03:56:33 PM DEBUG Montage View Cleanup was already done, skipping
Dec 20, 2018 03:56:33 PM DEBUG MontageCtrl: onpause called
Dec 20, 2018 03:56:33 PM DEBUG Montage View Cleanup was already done, skipping
Dec 20, 2018 03:56:33 PM DEBUG MontageCtrl: onpause called
Dec 20, 2018 03:56:33 PM DEBUG Montage View Cleanup was already done, skipping
Dec 20, 2018 03:56:33 PM DEBUG EventCtrl:onpause called
Dec 20, 2018 03:56:33 PM DEBUG EventCtrl Pause:Deregistering broadcast handles
Dec 20, 2018 03:56:33 PM INFO EventModalCtrl: paused
Dec 20, 2018 03:56:33 PM DEBUG EventCtrl:onpause called
Dec 20, 2018 03:56:33 PM DEBUG EventCtrl Pause:Deregistering broadcast handles
Dec 20, 2018 03:56:33 PM INFO EventModalCtrl: paused
Dec 20, 2018 03:56:33 PM INFO EventModalCtrl: paused
Dec 20, 2018 03:56:33 PM INFO EventModalCtrl: paused
Dec 20, 2018 03:56:33 PM DEBUG EventCtrl:onpause called
Dec 20, 2018 03:56:33 PM DEBUG EventCtrl Pause:Deregistering broadcast handles
Dec 20, 2018 03:56:33 PM DEBUG EventCtrl:onpause called
Dec 20, 2018 03:56:33 PM DEBUG EventCtrl Pause:Deregistering broadcast handles
Dec 20, 2018 03:56:33 PM INFO Login screen going to background, saving data
Dec 20, 2018 03:56:33 PM DEBUG MontageCtrl: onpause called
Dec 20, 2018 03:56:33 PM DEBUG Montage View Cleanup was already done, skipping
Dec 20, 2018 03:56:33 PM DEBUG EventCtrl:onpause called
Dec 20, 2018 03:56:33 PM DEBUG EventCtrl Pause:Deregistering broadcast handles
Dec 20, 2018 03:56:33 PM INFO EventModalCtrl: paused
Dec 20, 2018 03:56:33 PM INFO EventModalCtrl: paused
Dec 20, 2018 03:56:33 PM INFO EventModalCtrl: paused
Dec 20, 2018 03:56:35 PM DEBUG App closed socket, not reconnecting
Dec 20, 2018 03:56:35 PM INFO ******* resumeHandler device ready
Dec 20, 2018 03:56:35 PM INFO App is resuming from background
Dec 20, 2018 03:56:35 PM INFO -->Re-registering online/offine
Dec 20, 2018 03:56:35 PM DEBUG going to portal login
Dec 20, 2018 03:56:35 PM INFO Entering Portal Main
Dec 20, 2018 03:56:35 PM DEBUG EventCtrl: Deregistering resize listener
Dec 20, 2018 03:56:35 PM DEBUG Inside Portal login Enter handler
Dec 20, 2018 03:56:35 PM INFO User credentials are provided
Dec 20, 2018 03:56:35 PM INFO not checking for touchID
Dec 20, 2018 03:56:35 PM DEBUG unlock called with check PIN=true
Dec 20, 2018 03:56:35 PM DEBUG PIN code entered is correct, or there is no PIN set
Dec 20, 2018 03:56:35 PM INFO Cancelling zmAutologin timer
Dec 20, 2018 03:56:35 PM DEBUG Clearing cookies
Dec 20, 2018 03:56:35 PM INFO https://example.com/zm=>Logging out of any existing ZM sessions...
Dec 20, 2018 03:56:35 PM DEBUG Logging out using API method
Dec 20, 2018 03:56:36 PM DEBUG Logout returned... 
Dec 20, 2018 03:56:36 PM DEBUG Resetting zmCookie...
Dec 20, 2018 03:56:36 PM INFO zmAutologin called
Dec 20, 2018 03:56:36 PM DEBUG API based login returned... 
Dec 20, 2018 03:56:36 PM DEBUG Setting server version to:1.32.3
Dec 20, 2018 03:56:36 PM INFO Stream authentication construction: &auth=5ae20390f42c9738111c5b44f54cdca3
Dec 20, 2018 03:56:36 PM INFO zmAutologin successfully logged into Zoneminder via API
Dec 20, 2018 03:56:36 PM DEBUG auth-success broadcast:Successful
Dec 20, 2018 03:56:36 PM DEBUG PortalLogin: auth success
Dec 20, 2018 03:56:36 PM DEBUG getAPIversion called with https://example.com/zm/api/host/getVersion.json
Dec 20, 2018 03:56:37 PM DEBUG snapshot  supported in image.php
Dec 20, 2018 03:56:37 PM DEBUG Setting server version to:1.32.3
Dec 20, 2018 03:56:37 PM DEBUG getAPI version succeeded with 1.32.3
Dec 20, 2018 03:56:37 PM INFO Got API version: 1.32.3
Dec 20, 2018 03:56:37 PM INFO Initializing Websocket with URL wss://example.com:9000
Dec 20, 2018 03:56:37 PM DEBUG Using native websockets...
Dec 20, 2018 03:56:37 PM DEBUG Transitioning state to: app.events with param {"id":"0","playEvent":"false"}
Dec 20, 2018 03:56:37 PM INFO Returning pre-loaded list of 20 monitors
Dec 20, 2018 03:56:37 PM INFO EventCtrl called with: E/MID=0 playEvent =  false
Dec 20, 2018 03:56:37 PM DEBUG >>>height of list/scrub set to 330 and 370
Dec 20, 2018 03:56:37 PM INFO Image padding digits reported as 5
Dec 20, 2018 03:56:37 PM DEBUG Event server not initalized, not sending message
Dec 20, 2018 03:56:37 PM DEBUG getInitialEvents called
Dec 20, 2018 03:56:37 PM DEBUG EventCtrl: grabbing # of event pages
Dec 20, 2018 03:56:37 PM DEBUG EventCtrl: grabbing events for: id=0 Date/Time:-
Dec 20, 2018 03:56:37 PM DEBUG getEvents:https://example.com/zm/api/events/index/AlarmFrames >=:0.json?&sort=StartTime&direction=desc&page=1
Dec 20, 2018 03:56:37 PM DEBUG Setting up carousel watchers
Dec 20, 2018 03:56:37 PM DEBUG WebSocket open called with:{"webSocketId":"F5FA7C41-90E8-4F10-8B6C-B4B4CBCE168B","code":1000}
Dec 20, 2018 03:56:37 PM INFO openHandshake: Websocket open, sending Auth
Dec 20, 2018 03:56:37 PM DEBUG ~~~~ sendMessage: Sending->{"event":"auth","data":{"user":"admin",<password removed>,"monlist":"20,22,7,9,8,11,10,4,5,6","intlist":"0,0,0,0,0,0,0,0,0,0"}}
Dec 20, 2018 03:56:37 PM DEBUG openHandShake: state of push is enabled
Dec 20, 2018 03:56:37 PM DEBUG ~~~~ sendMessage: Sending->{"event":"push","data":{"type":"token","platform":"ios","token":"fqA62aYIG0w:APA91bGrhk4S7XXVuuB7PL3JcloDjjOzyOK2SHIPzcEXpr2gbTOd-Eu9ljz_LA58rbNt0obp5Lut7VSYVsRyUpKNuS6L27UDLSgqZrrvnn8C8GX3H9vC3oS645KafguIYZeeXtw0P2pB","monlist":"20,22,7,9,8,11,10,4,5,6","intlist":"0,0,0,0,0,0,0,0,0,0","state":"enabled"}}
Dec 20, 2018 03:56:37 PM DEBUG Real-time event: {"event":"auth","version":"2.4","type":"","status":"Success","reason":""}
Dec 20, 2018 03:56:39 PM INFO ZM_EVENT_IMAGE_DIGITS is 5
Dec 20, 2018 03:56:39 PM DEBUG Real value of PRIVACY is:0
Dec 20, 2018 03:56:40 PM DEBUG We have a total of 30 and are at page=1
Dec 20, 2018 03:56:40 PM DEBUG EventCtrl: success, got 100 events
Dec 20, 2018 03:56:45 PM DEBUG EventCtrl: Deregistering resize listener

Specific event in portrait:
unadjustednonraw_thumb_35e1

Rotated phone to landscape:
unadjustednonraw_thumb_35df

Pressed play (scaling/dimensions of video appear to be sized for portrait):
unadjustednonraw_thumb_35e3

Same event, however entered event while in landscape:
unadjustednonraw_thumb_35e2

Pressed play, dimensions are normal:
unadjustednonraw_thumb_35e7

@pliablepixels
Copy link
Member

yup, noticed it a while ago - did not get to figuring out why. Think I've fixed it

@hgregorian
Copy link
Author

Great! I'd give it a shot on TestFlight, but that version (1.3.034) is older than the current release.

@pliablepixels
Copy link
Member

yes I'll build and release soon on TF

@hgregorian
Copy link
Author

Just installed 1.3.040 via TF - so far so good. Thanks!

@pliablepixels pliablepixels reopened this Jan 26, 2019
Simpler1 pushed a commit to Simpler1/zmNinja that referenced this issue Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants