Cloudinary Account and Initialization
Last updated
Last updated
Create the cloudinaryInstance
instance so you can pass it to VideoPlayer
.
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.
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 the div
tag:
Add a created
lifecycle method to the App
object for initializing Cloudinary with your cloud name:
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: