1.1.9 • Published 5 years ago

we-get-video v1.1.9

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

npm version node cover Downloads size

we-get-video

Use this plug-in to get the video address on request.

Getting Started

You need to use AXIOS to initiate the request.

To begin, you'll need to install axios:

$ npm install axios --save-dev

Then install the plugin to your Project. For example:

$ npm install we-get-video --save-dev

How to use

Examples

const axios = require("axios"),weChat = require("we-get-video");


axios
  .get(url)
  .then(function (response) {
    console.log(weChat.getVideo(response))
  })
  .catch(function (error) {
    console.log(error)
  })

Simple as that, you can get Tencent video address.

Note about example

Commonly used with small programs or video sites, movie address resolution.

How?

  • Put the public address into the request address, this plug-in each request can get the video playback address, so as to ensure the freshness of the video address.

Contributing

Please take a moment to read our contributing guidelines if you haven't yet done so.

License

MIT