History

Merge branch 'pr/691' into fix/URL-migrations

Kalila L committed 6 years ago

Commit b1f32dd2 parents f465ecb 929f395141 files · +178388 −6056Browse files

Showing the changes to interface/src/scripting/ScreenshareScriptingInterface.cpp (1 of 141 files). Show all

Unified · Split

interface/src/scripting/ScreenshareScriptingInterface.cpp+4−3
@@ -24,6 +24,7 @@ · 23 unmodified lines
2424
2525 #include "EntityScriptingInterface.h"
2626 #include "ScreenshareScriptingInterface.h"
27+#include "ExternalResource.h"
2728
2829 static const int SCREENSHARE_INFO_REQUEST_RETRY_TIMEOUT_MS = 300;
2930 ScreenshareScriptingInterface::ScreenshareScriptingInterface() {
@@ -109,7 +110,7 @@ void ScreenshareScriptingInterface::requestScreenshareInfo() { · 79 unmodified lines
109110 // See `DomainServer::screensharePresence()` for more info about that.
110111
111112 QString currentDomainID = uuidStringWithoutCurlyBraces(addressManager->getDomainID());
112− QString requestURLPath = "api/v1/domains/%1/screenshare";
113+ QString requestURLPath = "/api/v1/domains/%1/screenshare";
113114 JSONCallbackParameters callbackParams;
114115 callbackParams.callbackReceiver = this;
115116 callbackParams.jsonCallbackMethod = "handleSuccessfulScreenshareInfoGet";
@@ -129,8 +130,8 @@ static const uint8_t LOCAL_SCREENSHARE_WEB_ENTITY_FPS = 30; · 13 unmodified lines
129130 // The `z` value here is dynamic.
130131 static const glm::vec3 LOCAL_SCREENSHARE_WEB_ENTITY_LOCAL_POSITION(0.0128f, -0.0918f, 0.0f);
131132 static const glm::vec3 LOCAL_SCREENSHARE_WEB_ENTITY_DIMENSIONS(3.6790f, 2.0990f, 0.0100f);
132−static const QString LOCAL_SCREENSHARE_WEB_ENTITY_URL =
133− NetworkingConstants::CONTENT_CDN_URL + "Experiences/Releases/usefulUtilities/smartBoard/screenshareViewer/screenshareClient.html";
133+static const QString LOCAL_SCREENSHARE_WEB_ENTITY_URL = ExternalResource::getInstance()->getUrl(ExternalResource::Bucket::HF_Content,
134+ "Experiences/Releases/usefulUtilities/smartBoard/screenshareViewer/screenshareClient.html");
134135 static const QString LOCAL_SCREENSHARE_WEB_ENTITY_HOST_TYPE = "local";
135136 void ScreenshareScriptingInterface::startScreenshare(const QUuid& screenshareZoneID,
136137 const QUuid& smartboardEntityID,