Forum Discussion
grant_jenkins
Sep 10, 2023Steel Contributor
New Stream Webpart - Disappointing
The new Stream Webpart has just come through to our tenant and started to set it up to see how it actually works. Quite disappointing so far, and not fit for purpose in our video architecture. I ...
tjhunt
Nov 03, 2023Copper Contributor
Debaray In our case the Highlighted Content web part would do everything we need it to do EXCEPT that you can't pull from OneDrive--only other SharePoint sites. We are storing most of our videos in OneDrive because of SharePoint storage limitations (not to mention OneDrive is where Teams recordings save by default). I was glad to see the new Stream web part had an option to pull from a OneDrive folder, but the lack of ability to filter makes it useless to us. Please either build in a OneDrive option to the Highlighted Content web part, or give the Stream web part the same filtering functionality as the Highlighted Content web part!
grant_jenkins
Nov 04, 2023Steel Contributor
tjhunt Some great news for you. The Highlighted Content Webpart can bring videos from OneDrive now using the KQL Query option.
Make sure you select All sites initially, then click on Custom query. This will bring up the KQL Query section where you can specify where you want to pull videos from as well as other filters. Below is a query that brings back videos from a folder in my OneDrive called Videos (it contains 4 videos).
//You would need to put your tenant in place of TENANT
//You would need to put your userPrincipalName in place of USERPRINCIPALNAME
//You would need to put your specific folder(s) in place of FOLDER
//Note that you need to add /* at the end of your last folder
documentlink:"https://TENANT-my.sharepoint.com/personal/USERPRINCIPALNAME_TENANT_onmicrosoft_com/Documents/FOLDER/*" AND (FileType:3gp OR FileType:asf OR FileType:avi OR FileType:mkv OR FileType:mod OR FileType:mov OR FileType:mp4 OR FileType:mpeg OR FileType:mpg OR FileType:mts OR FileType:ts OR FileType:vob OR FileType:wmv OR FileType:webm)
Below are my four videos in the Videos folder.
And my Highlighted Content Webpart showing the videos.
- tjhuntNov 09, 2023Copper ContributorThat is great news! I will give that a try.
As for storage, we did limit our versioning, but it won't let us set the maximum below 100, so with larger files it still adds up quickly. I'll check with our Network Administrator about the Azure storage. Thanks for your replies and suggestions!- grant_jenkinsApr 13, 2024Steel Contributor
tjhunt I know it's been a while since your reply, but thought it was worth adding the below so that yourself, or others can see how to reduce versions on lists and libraries. See examples below taken from the PnP PowerShell site: Set-PnPList | PnP PowerShell
#You would replace TENANT with your tenant, and SITE with your site Connect-PnPOnline -Url "https://TENANT.sharepoint.com/sites/SITE" -Interactive #Disable versions Set-PnPList -Identity "Demo Library" -EnableVersioning $false #Limit major versions (minimum of 1 version) Set-PnPList -Identity "Demo Library" -EnableVersioning $true -MajorVersions 20 #Limit major and minor verions (minimum of 1 version for major and minor) Set-PnPList -Identity "Demo Library" -EnableVersioning $true -EnableMinorVersions $true -MajorVersions 20 -MinorVersions 5
Note that if you have a document that contains (for example) 10 versions, and you run the script to reduce versions to 5, that document will still have 10 versions until you update it again. So, reducing versions on the list/library won't automatically reduce the current versions for an item/document that are above what you set.