Embedded videos give you Error code: 0x50000000 (login problem)

%3CLINGO-SUB%20id%3D%22lingo-sub-1230190%22%20slang%3D%22en-US%22%3EEmbedded%20videos%20give%20you%20Error%20code%3A%200x50000000%20(login%20problem)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1230190%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EProblem%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EWe%20have%20built%20a%20PWA%20that%20is%20used%20by%20electricians%20to%20shows%20drawings%20and%20instruction%20videos%20from%20SharePoint%20and%20Stream.%20When%20the%20PWA%20is%20installed%20on%20the%20home%20screen%20on%20an%20iPhone%20and%20you%20press%20play%2C%20embedded%20videos%20give%20you%20Error%20code%3A%200x50000000.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EWorkaround%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThe%20workaround%20is%20to%20have%20a%20link%20in%20the%20application%20that%20opens%20%3CA%20href%3D%22https%3A%2F%2Fweb.microsoftstream.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fweb.microsoftstream.com%2F%3C%2FA%3E.%20The%20user%20manually%20clicks%20the%20link%2C%20closes%20the%20window%20and%20then%20all%20embedded%20videos%20work.%20This%20is%20extremely%20annoying%20for%20the%20users%20and%20we%20need%20to%20come%20up%20with%20a%20better%20solution.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EAnalysis%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EI%20think%20PWA%E2%80%99s%20run%20in%20some%20kind%20of%20sandbox%20on%20the%20iPhone.%20Whatever%20magic%20Microsoft%20Stream%20is%20doing%2C%20it%20is%20lost%20every%20time%20you%20close%20the%20PWA.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20comes%20the%20strange%20part.%3C%2FP%3E%3CUL%3E%3CLI%3EThe%20PWA%20backend%20authentication%20is%20working%20fine.%20When%20the%20application%20start%2C%20the%20user%20is%20seamlessly%20signed%20into%20Azure%20AD%20and%20redirected%20back.%3C%2FLI%3E%3CLI%3EThe%20PWA%20client%20is%20also%20successfully%20authenticated.%20We%20can%20get%20all%20the%20data%20we%20want%20from%20the%20Microsoft%20Graph%20(implicit%20flow%2C%20MSAL).%20%26nbsp%3B%3C%2FLI%3E%3CLI%3EAll%20links%20to%20Office%20365%20sites%20work%20fine%2C%20the%20user%20is%20already%20logged%20in%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ESimilar%20threads%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThe%20recommended%20solution%20for%20this%20problem%20is%20to%20use%20domain_hint%20and%20noSignupCheck.%20In%20this%20scenario%2C%20it%20does%20not%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EConclusion%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3ESomething%20is%20absolutely%20wrong%20with%20authentication%20in%20embedded%20Stream%20videos.%20Our%20users%20are%20signed%20into%20Azure%20AD%20on%20both%20the%20backend%20and%20client%20side.%20Identity%20tokens%20and%20access%20tokens%20are%20working%2C%20but%20we%20still%20can%E2%80%99t%20play%20videos.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%2C%3CBR%20%2F%3ERickard%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

Hi

 

Problem:

We have built a PWA that is used by electricians to shows drawings and instruction videos from SharePoint and Stream. When the PWA is installed on the home screen on an iPhone and you press play, embedded videos give you Error code: 0x50000000.

 

Workaround:

The workaround is to have a link in the application that opens https://web.microsoftstream.com/. The user manually clicks the link, closes the window and then all embedded videos work. This is extremely annoying for the users and we need to come up with a better solution.

 

Analysis:

I think PWA’s run in some kind of sandbox on the iPhone. Whatever magic Microsoft Stream is doing, it is lost every time you close the PWA.

 

Here comes the strange part.

  • The PWA backend authentication is working fine. When the application start, the user is seamlessly signed into Azure AD and redirected back.
  • The PWA client is also successfully authenticated. We can get all the data we want from the Microsoft Graph (implicit flow, MSAL).  
  • All links to Office 365 sites work fine, the user is already logged in

 

Similar threads:

The recommended solution for this problem is to use domain_hint and noSignupCheck. In this scenario, it does not work.

 

Conclusion:

Something is absolutely wrong with authentication in embedded Stream videos. Our users are signed into Azure AD on both the backend and client side. Identity tokens and access tokens are working, but we still can’t play videos.

 

Cheers,
Rickard

0 Replies