@iamtraction/play-dl
    Preparing search index...

    Function video_info

    • Gets data from YouTube url or ID or html body data and deciphers it.

      video_basic_info + decipher_info = video_info
      

      Example

      const video = await play.video_info('youtube video url')

      const res = ... // Any https package get function.

      const video = await play.video_info(res.body, { htmldata : true })

      Parameters

      • url: string

        YouTube url or ID or html body data

      • options: InfoOptions = {}

        Video Info Options

        • boolean htmldata : given data is html data or not

      Returns Promise<InfoData>

      Deciphered Video Info InfoData.