question

matthowell-6829 avatar image
0 Votes"
matthowell-6829 asked RaytheonXie-MSFT commented

How to get mp4 files to play in a mobile app?

We've built a React Native mobile app and use REST and search apis and Azure authentication to grab Sharepoint content. Embedded videos don't play in the app (ios or android). When I extract a Sharepoint hosted mp4 file url from the canvascontent1 field within the app, it asks for authentication and then does nothing. The url structure is: tenant.sharepoint.com/sites/sitename/siteassets/filename.mp4.
Videos do play in Msft's Sharepoint app so need a way to replicate how they're doing it.

office-sharepoint-onlinesharepoint-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RaytheonXie-MSFT avatar image
0 Votes"
RaytheonXie-MSFT answered RaytheonXie-MSFT commented

Hi @matthowell-6829 ,
We should confirm the authentication has full control permission to the sharepoint.
The Permission Request XML should be like:

 <AppPermissionRequests AllowAppOnlyPolicy="true">
 <AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" />
 </AppPermissionRequests>


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @matthowell-6829 ,
I am checking to see if the problem has been resolved.

0 Votes 0 ·

Thanks! The app is registered in Azure Ad with delegated permissions not Sharepoint :
AllSites.Write Delegated Read and write items in all site collections

We allow user comments so need user context. I'm not sure how to include Stream in the app's permissions. There's no option for tenant wide access as there is in a SP app as far as I can tell.

0 Votes 0 ·

Hi @matthowell-6829 ,
As far as I know, We are unable to access tenant wide in Azure Ad

0 Votes 0 ·