getDetailEncryptedFile()
Last updated
Last updated
This method is used to get detail of an encrypted file.
Name | Type | Required | Description |
---|---|---|---|
This method returns buffer data. You can use some library as "render-media" to render data (see example)
torrentUrl
string
Yes
Torren URL.
key
string
Yes
The encrypted key.
token
string
Yes
The authentication token.
isShare
boolean
Yes
If you get file detail of a file is shared, isShare
will be true
, else isShare
will be false.
webSeed
any
No
This is an array: [url, backupUrl]. If isShare
is true, webSeed
is required.
account
any
No
User Owallet address. If isShare
is true, account
is required.
onProcess
function
No
This function is used to handle the process get a file.
The first param torrent
is an object that includes some torrent information (see more).
The second param remaining
is the time remaining to get file.