Video Viewership Retention for Microsoft Stream (on SharePoint)

Koshy, Jisha Ann ext. /BSS HAM 6 Reputation points
2022-08-30T10:03:11.127+00:00

Is there any way to get the Video Viewership Retention data programmatically?
or to extract this information ?
https://learn.microsoft.com/en-us/stream/streamnew/video-analytics-viewership-retention

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,525 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,645 questions
{count} vote

2 answers

Sort by: Most helpful
  1. RaytheonXie_MSFT 30,666 Reputation points Microsoft Vendor
    2022-08-31T05:15:02.26+00:00

    Hi @Koshy, Jisha Ann ext. /BSS HAM
    Per my research, there is no such function to retrieve Video Viewership Retention data programmatically. There is no such method currently. As a workaround, I will recommend you to view usage data for your SharePoint site. Please refer to the following document.
    https://support.microsoft.com/en-us/office/view-usage-data-for-your-sharepoint-site-2fa8ddc2-c4b3-4268-8d26-a772dc55779e

    You can use following code to retrieve Site Usage Report by CSOM

    clientContext.Load(clientContext.Site, s => s.Usage);  
                    try  
                    {  
                        clientContext.ExecuteQuery();  
      
                        UsageInfo usageInfo = clientContext.Site.Usage;  
                        usageData = "No. of hits: " + Convert.ToString("" + usageInfo.Hits) + "; ";  
                        usageData += "No. of visits: " + Convert.ToString("" + usageInfo.Visits) + "; ";  
                        usageData += "Storage: " + Convert.ToString("" + usageInfo.Storage) + "; ";  
                        usageData += "Storage Percentage Used: " + Convert.ToString("" + usageInfo.StoragePercentageUsed) + "; ";  
      
                        var bytes = usageInfo.Storage;  
                        Debug.Print("UsageData " + usageData);  
                        Debug.Print("Bytes " + bytes);  
                    }  
    

    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. Koshy, Jisha Ann ext. /BSS HAM 6 Reputation points
    2022-08-31T07:38:38.163+00:00

    Thanks for your reply.
    Do you think it can be got from Azure Insights ?
    its Video Viewership Retention data for Microsoft Stream (on SharePoint).
    what I specifically need is the video usage report and not the site usage.