Fixes Interface crash on Windows.
Showing the changes to interface/src/scripting/ScreenshareScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -130,8 +130,9 @@ static const uint8_t LOCAL_SCREENSHARE_WEB_ENTITY_FPS = 30; · 129 unmodified lines | ||
| 130 | 130 | // The `z` value here is dynamic. |
| 131 | 131 | static const glm::vec3 LOCAL_SCREENSHARE_WEB_ENTITY_LOCAL_POSITION(0.0128f, -0.0918f, 0.0f); |
| 132 | 132 | static const glm::vec3 LOCAL_SCREENSHARE_WEB_ENTITY_DIMENSIONS(3.6790f, 2.0990f, 0.0100f); |
| 133 | −static const QString LOCAL_SCREENSHARE_WEB_ENTITY_URL = ExternalResource::getInstance()->getUrl(ExternalResource::Bucket::HF_Content, | |
| 134 | − "Experiences/Releases/usefulUtilities/smartBoard/screenshareViewer/screenshareClient.html"); | |
| 133 | +static const ExternalResource::Bucket LOCAL_SCREENSHARE_WEB_ENTITY_BUCKET = ExternalResource::Bucket::HF_Content; | |
| 134 | +static const QString LOCAL_SCREENSHARE_WEB_ENTITY_PATH = | |
| 135 | + "Experiences/Releases/usefulUtilities/smartBoard/screenshareViewer/screenshareClient.html"; | |
| 135 | 136 | static const QString LOCAL_SCREENSHARE_WEB_ENTITY_HOST_TYPE = "local"; |
| 136 | 137 | void ScreenshareScriptingInterface::startScreenshare(const QUuid& screenshareZoneID, |
| 137 | 138 | const QUuid& smartboardEntityID, |
| @@ -283,6 +284,8 @@ void ScreenshareScriptingInterface::handleSuccessfulScreenshareInfoGet(QNetworkR · 145 unmodified lines | ||
| 283 | 284 | glm::vec3 localPosition(LOCAL_SCREENSHARE_WEB_ENTITY_LOCAL_POSITION); |
| 284 | 285 | localPosition.z = _localWebEntityZOffset; |
| 285 | 286 | localScreenshareWebEntityProps.setLocalPosition(localPosition); |
| 287 | + auto LOCAL_SCREENSHARE_WEB_ENTITY_URL = ExternalResource::getInstance()->getUrl(LOCAL_SCREENSHARE_WEB_ENTITY_BUCKET, | |
| 288 | + LOCAL_SCREENSHARE_WEB_ENTITY_PATH); | |
| 286 | 289 | localScreenshareWebEntityProps.setSourceUrl(LOCAL_SCREENSHARE_WEB_ENTITY_URL); |
| 287 | 290 | localScreenshareWebEntityProps.setParentID(_smartboardEntityID); |
| 288 | 291 | localScreenshareWebEntityProps.setDimensions(LOCAL_SCREENSHARE_WEB_ENTITY_DIMENSIONS); |