-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexamples.ts
37 lines (28 loc) · 940 Bytes
/
examples.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// import { createM3u8Download_v1 } from './src'
// createM3u8Download_v1('16924')
// .catch(console.error)
// import { createM3u8Download_v2 } from './src'
// createM3u8Download_v2('16119')
// .catch(console.error)
// import { createM3u8Download_v1, traversalFolder } from './src'
// traversalFolder(async (k) => {
// console.log(k)
// await createM3u8Download_v1(k)
// })
// import { secondsToTime, timeToSeconds } from './src'
// console.log(timeToSeconds('00:00:00'))
// console.log(timeToSeconds('00:00:01'))
// console.log(secondsToTime(0))
// console.log(secondsToTime(1))
// import { getScreenshot } from './src'
// getScreenshot(
// 'H:\\resources\\1680\\1680.mp4',
// 'H:\\resources\\1680\\screenshots\\post.jpg',
// '00:00:01',
// )
import { getScreenshots } from './src'
getScreenshots(
'H:\\resources\\1680\\1680.mp4',
'H:\\resources\\1680\\screenshots',
10,
)