Accessing video length via JSON

New Contributor

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?

2 Replies
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.
Thanks, 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.