Sanity Library Reference Docs
    Preparing search index...
    • Extract playback tokens from signed video playback info

      Parameters

      Returns VideoPlaybackTokens | undefined

      The playback tokens or undefined if the response is not signed

      const tokens = getPlaybackTokens(playbackInfo) console.log(tokens)

      {
      stream: "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
      thumbnail: "eyJ0a2VuIjoiVGh1bWJuYWlsVG9rZW4tMTIz...",
      animated: "eyJ0a2VuIjoiQW5pbWF0ZWRUb2tlbi1kZWY...",
      storyboard: "eyJ0a2VuIjoiU3Rvcnlib2FyZFRva2VuLTc4..."
      }