How to perform HLS in nodejs

Akesh
Akesh Member Posts: 1

I want to stream a video which i uploaded on cloudinary and i stored the public id of that video in my database. So i want to fetch the id from my database and then stream that video here is the code snippet.


Tagged:

Answers

  • Tom
    Tom Member, Cloudinary Staff Posts: 106

    Hi @Akesh ,

    Thanks for reaching out.

    I see you also opened a ticket with us about this so lets continue to use that and we can update here once we reach a resolution.

    Please let me know if you have any other questions or queries.

    Kind Regards,

    Thomas

  • Tom
    Tom Member, Cloudinary Staff Posts: 106

    Thanks for reaching out. 
     
    So to generate an HLS URL for a video in your account with the auto streaming profile, do:

    cloudinary.url("docs/waterfall.m3u8", {streaming_profile: "auto", resource_type: "video"})
    


    Notice, in the public_id you need to include .m3u8 . 
     
    Please let me know if you have any other questions or queries.

    Kind Regards,

    Thomas