How to show video from Sharepoint Documents to Flutter ?

Kevin Kurniawan 20 Reputation points
2023-08-30T04:31:15.1466667+00:00

Hello everyone.

I want to ask something about showing video from SharePoint Documents to Flutter, i have this sharepoint link:
https://{xxx}.sharepoint.com/sites/{site_name}/Shared%20Documents/Medias/20230829112012.mp4

it shows like this:
User's image

it's a video, i can use that format in Flutter but when i use the link, it needs a Microsoft Login to access that.

How can i access that link without need to login/ use a Token(like Bearer or anything)

Thank you.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,603 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ling Zhou_MSFT 13,105 Reputation points Microsoft Vendor
    2023-08-31T08:07:04.2933333+00:00

    Hi @Kevin Kurniawan,

    Thank you for your reply.

    However, we are sorry to inform you that it is not possible to play video files in SharePoint without logging in if you use the link form you provided.

    For SharePoint, file security is important. Only after logging in can we decide if the current user is legitimately able to access SharePoint files. (Imagine how easy it would be to compromise the privacy of a Share Point file without logging in to access the file. That's a bad thing.) This is by SharePoint's design and we can't change it.

    If you need to access SharePoint files on third-party software, then the only way to do this at the moment is to download the files and use a local copy of the files.

    Please accept my sincerely apologize for any inconvenience this may cause. Thank you for you kind understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Kevin Kurniawan 20 Reputation points
    2023-08-31T02:51:14.98+00:00

    Hi @Ling Zhou_MSFT

    Thank you for answering my question.

    I already did all the steps you mentioned but it still doesn't work, what i mean is not a share link but this type of link:

    https://{xxx}.sharepoint.com/sites/{site_name}/Shared%20Documents/Medias/20230829112012.mp4

    it opens not from Microsoft Stream, just a plain video player from web browser.

    it still needs a login to open that link.

    0 comments No comments

  2. Ling Zhou_MSFT 13,105 Reputation points Microsoft Vendor
    2023-08-30T07:51:10.18+00:00

    Hi @Kevin Kurniawan,

    Thank you for posting in this community.

    You can use an anonymous link to access SharePoint files, which does not require a login.

    To enable anonymous access to SharePoint Online, we need to first set up external access policy and make sure that the limited access lockdown policy feature is disabled under site collection features.

    First, change the organization-level external sharing setting.

    1.Go to Sharing in the SharePoint admin center and sign in with an account that has admin permissions for your organization.

    2.Under External sharing, specify your sharing level for SharePoint and OneDrive. The default level for both is Anyone.

    enter image description here  

    Second, change the site-level external sharing setting.

    1.Navigate to SharePoint Admin Center.

    2.Open Sites --> Active Sites --> search your site.

    3.Select your site and edit -->Settings-> External file Sharing --> select Anyone.

    2

    4.Click Save.

    Third, make sure that the limited access lockdown policy feature is disabled under site collection features.
    1.Go to Site Collection Settings with an account that has admin permissions for your site collection.

    2.Under Site Collection Administration select site collection features. Make sure the limited access lockdown policy feature is disabled.

    3

    To share any file or folder anonymously, do the following:

    1.Navigate to the SharePoint Site Collection. Select the file/folder which you want to share anonymously --> Click Share and copy link directly.

    4

    2.In my test, I choose “Anyone with the link can edit”. You can click “Anyone with the link can edit” to change permissions.

    5

    6


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.

    0 comments No comments