10000 Fix thinclient address in dev builds and move thinclient by mcm001 · Pull Request #586 · PhotonVision/photonvision · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix thinclient address in dev builds and move thinclient #586

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

Merged
merged 6 commits into from
Nov 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,6 @@ jobs:
name: built-client
path: photon-server/src/main/resources/web/

# Copy thinclient in as well
- run: cp -r photon-thinclient/* photon-server/src/main/resources/web/

# Download docs artifact to resources folder.
- uses: actions/download-artifact@v3
with:
Expand Down
File renamed without changes
File renamed without changes.
3 changes: 2 additions & 1 deletion photon-client/src/components/common/cv-image.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
data() {
return {
seed: 1.0,
src: ""
}
},
computed: {
Expand Down Expand Up @@ -73,7 +74,7 @@
},
mounted() {
var wsvs = require('../../plugins/WebsocketVideoStream');
this.wsStream = new wsvs.WebsocketVideoStream(this.id, this.port, window.location.host);
this.wsStream = new wsvs.WebsocketVideoStream(this.id, this.port, this.$address);
},
unmounted() {
this.wsStream.setPort(0);
Expand Down
2 changes: 2 additions & 0 deletions photon-client/src/plugins/WebsocketVideoStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export class WebsocketVideoStream{


constructor(drawDiv, streamPort, host) {
console.log("host " + host + " port " + streamPort)

this.drawDiv = drawDiv;
this.image = document.getElementById(this.drawDiv);
Expand Down Expand Up @@ -205,6 +206,7 @@ export class WebsocketVideoStream{
}

ws_onMessage(e){
console.log("Got message from " + this.serverAddr)
if(typeof e.data === 'string'){
//string data from host
//TODO - anything to receive info here? Maybe "available streams?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ public void removeSubscription(WsContext user) {
if (port != null && port != NO_STREAM_PORT) {
var stream = streams.get(port);
userSubscriptions.put(user, NO_STREAM_PORT);
stream.removeUser();
if (stream != null) {
stream.removeUser();
}
} else {
logger.error(
"User attempted to unsubscribe, but had not yet previously subscribed successfully.");
Expand Down
1 change: 0 additions & 1 deletion photon-server/src/main/resources/web/docs/index.html

This file was deleted.

2 changes: 1 addition & 1 deletion photon-server/src/main/resources/web/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<p>UI has not been copied!</p>
<p>UI has not been copied!</p>
0