Forum Discussion
hughmcmaster
Jan 23, 2023Copper Contributor
Accessing video length via JSON
I've recently migrated my videos from Stream (Classic) to Stream (on SharePoint)
I'm now using custom formatting to make the document library appear more like the search results on YouTube, for example -- large thumbnail, title and description.
I'd like to add the video length as well. I can see the Duration field in each video's properties (along with Dimensions, Type etc.), but how do I access the value via JSON?
3 Replies
Sort By
- Marc Mroz
Microsoft
As far as I know you can't access the duration, dimensions or other video info from json formatting. I don't think that info is stored in columns in SharePoint I believe they are stored in a different way under the covers.- hughmcmasterCopper ContributorThanks, Marc. Since video files are now a big part of SharePoint, I'll open a request for this feature. I expect other users will want this too.
- Eric RENAUDCopper ContributorHello, it would also be useful to access all the "video metadata": thumbnail, description, duration...