How to get AppId
G9000
0
Reputation points
When running locally, the stageView opens flawlessly, and the appId that works is called M365_APP_ID. However, after provisioning and running it on the Azure cloud environment, none of the IDs seem to work. I'm unsure about the exact steps and which appId I should be using in the cloud and production environment. I have tried all ID on the env none work.
My usage scenario Is when the user clicks on any video it's going to open in stage view
app.initialize().then(() => {
if (stageView.isSupported()) {
stageView
.open({
appId: config.appId as string,
contentUrl: `${window.location.origin}/stageView?mediaUrl=${mediaAsset?.url}&thumbnailUrl=${coverAsset.url}&autoplay=true`,
title: title,
websiteUrl: window.location.origin,
openMode: stageView.StageViewOpenMode.modal,
threadId: "",
})
.catch((error) => {
console.error(error);
});
}
});