Cloudinary Account and Initialization
Create the cloudinaryInstance
instance so you can pass it to VideoPlayer
.
Create a Cloudinary Account
In the MANAGEMENT CONSOLE LOGIN screen, create a Cloudinary account or, if you have already done so, sign in.
The Dashboard is then displayed:
Your credentials are displayed under Cloud name, API Key, and API Secret. You need the cloud name on the client for image requests.
Note: The contents (images and videos) in the rest of this lab do not exist in your account. If you need them, note the sources in the browser, download them, and upload them to your server.
Import the Cloudinary SDKs
Cloudinary offers SDKs that speed up the process. To import them, go to each of the media files and fetch its URL from the Cloudinary Dashboard. This is a manual task and can be tedious for automated tasks. Actually, all you need is the media's public ID, not the full URL.
Select any image on your cloud for both the URL and the public ID:
Import the SDK libraries to your
public/index.html
file by specifying their URLs below thediv
tag:Add a
created
lifecycle method to theApp
object for initializing Cloudinary with your cloud name:
Set up a Moive Data Model
Since you do not have any data to show yet and are just working with the defaults, initialize movie
as an empty object:
So far, so good:
Last updated