We would like to embed our box videos in our websites, just as we can with Youtube or Vimeo, but Box Embed introduces a header with links, like Login and Signup buttons, which we don't want. For what I've read, I understand that the only way to get rid of that header is to use Content Preview (UI Elements) instead. Is that right?
Despite there is a working example in codepen.io, this looks quite complex to implement if you just want to embed a video, compared with other video providers. First because I need to create an "app" in the Box platform, using the Developer Console. Second because I need to generate an access token, even when we only want anonymous users to watch the video in the website.
Apparently, access tokens expire after 60 minutes, so that would force us to implement code in the backend (in our case it would be PHP), just to request that access token, for every different visit to our website. Or even more complex, we would need to retry or refresh the token every hour with a scheduled script. This seems to be too much just to embed videos, isn't it? Which makes me thing I'm missing something. Isn't really a much simple way or just preview the video publicly and nothing else?
However, I see the codepen.io source data example uses a "readonly token", and the corresponding files are public data on a demo enterprise. We want exactly the same, public data (videos) on our enterprise box to be watched. How could we implement that? I can't find a way to generate a readonly permanent token like the one in the example. That would solve our problem.
Thanks in advance for helping and makes this clearer.
Please sign in to leave a comment.