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

matt howell 351 Reputation points
2021-08-24T13:35:33.003+00:00

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.

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,476 Reputation points Microsoft External Staff
    2021-08-25T08:09:09.157+00:00

    Hi @matt howell ,
    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.