-
Notifications
You must be signed in to change notification settings - Fork 6
fix(RawImageDisplayArea): add user_data echo when frame received #13
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
base: master
Are you sure you want to change the base?
Conversation
|
Hum, can we talk? I see the idea, but I don't like the naming and how things are done. We can achieve more with less. |
…ame received When a frame is sent by the server to the RawImageDisplayArea, allow the inclusion of `ack_id` in the meta information, which is sent as message back to the server when the frame is received. Allows the server to track if the client is keeping up with the frames sent. Also allow `user_data` in the meta information, which is propagated to the client as a Vue event.
00c408c to
29c66cb
Compare
|
Updated to |
|
Missing event listing in Python classes (i.e.: RemoteControlledArea). |
| } | ||
| // if the frame sender provide user_data, emit as a client event | ||
| if (meta['user_data'] !== undefined) { | ||
| this.$emit('user_data', meta['user_data']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.$emit('user-data', meta.user_data);
| ctx.putImageData(imageData, 0, 0); | ||
| // if the frame sender provided an ack_id, send back to the server | ||
| // so they know this frame has been processed | ||
| if (meta['ack_id'] !== undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meta.ack_id !== undefined
When a frame is sent by the server to the RawImageDisplayArea, allow the inclusion of
user_datain the meta information, which is sent as message back to the server when the frame is received. Allows the server to track if the client is keeping up with the frames sent.