How to access live streaming on cloud player?
Hi,
I have followed this guide https://cloudinary.com/documentation/video_live_streaming_webrtc and this example https://codepen.io/eyalkt/pen/RwPPPvq to set up live streaming. What should the embedUrl be if I get a response like this from initLiveStream:
{
"asset_id": "f3d38bcae17803d501f1fbccb4dc6bfb",
"public_id": "blob_p955kf",
"version": 1652114765,
"version_id": "a72789d1cadcd2e89001c57dff7ec013",
"signature": "e88b174f1e734692882637d2ff4341840ad1a000",
"format": "live",
"resource_type": "video",
"created_at": "2022-05-09T16:46:05Z",
"tags": [],
"bytes": 223,
"type": "upload",
"etag": "0feafdb5fb97db2669fcb0040b686c04",
"placeholder": false,
"url": "http://res.cloudinary.com/{CLOUD_NAME}/video/upload/s--QaD1HC3G--/v1652114765/blob_p955kf.live",
"secure_url": "https://res.cloudinary.com/{CLOUD_NAME}/video/upload/s--QaD1HC3G--/v1652114765/blob_p955kf.live",
"access_mode": "authenticated",
"existing": false,
"original_filename": "blob"
}
Since https://player.cloudinary.com/embed/?cloud_name={CLOUD_NAME}&public_id=blob_p955kf&source%5BsourceTypes%5D%5B0%5D=hls says Video cannot be played- deny or ACL failure, am I missing some parameters?
Thanks.
-
Hi Andres,
In order to get a valid embedUrl, you will need to change the access mode from authenticated to public in your upload preset.
Please give it a try and let me know your feedback.
Regards,
Wissam
1 -
Yup that worked, thanks!
0
Post is closed for comments.
Comments
2 comments