Forum Discussion

hughmcmaster's avatar
hughmcmaster
Copper Contributor
Jan 23, 2023

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

  • 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.
    • hughmcmaster's avatar
      hughmcmaster
      Copper Contributor
      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.
      • Eric RENAUD's avatar
        Eric RENAUD
        Copper Contributor
        Hello, it would also be useful to access all the "video metadata": thumbnail, description, duration...

Resources