Skip to content

Commit bde3294

Browse files
authored
Merge pull request #1 from omgate234/feat/docs
Feat/docs
2 parents 047cbbf + 5c64e2c commit bde3294

72 files changed

Lines changed: 2176 additions & 526 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/docs.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Deploy Docs to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main,docs]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: '20'
28+
cache: 'npm'
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Build documentation
34+
run: npm run docs:html
35+
36+
- name: Setup Pages
37+
uses: actions/configure-pages@v4
38+
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v3
41+
with:
42+
path: docs-html
43+
44+
deploy:
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
runs-on: ubuntu-latest
49+
needs: build
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules
22
dist
33
coverage
4+
docs-html
45
**/.DS_Store

docs/README.md

Lines changed: 49 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,46 @@ videodb / [Exports](modules.md)
3838

3939
VideoDB Node.js SDK allows you to interact with the VideoDB serverless database. Manage videos as intelligent data, not files. It's scalable, cost efficient & optimized for AI applications and LLM integration.
4040

41+
<!-- TABLE OF CONTENTS -->
42+
# Table of Contents
43+
44+
- [About The Project](#videoDB-nodejs-sdk)
45+
- [Installation](#installation)
46+
- [Quick Start](#quick-start)
47+
* [Creating a Connection](#creating-a-connection)
48+
* [Getting a Connection](#getting-a-collection)
49+
- [Working with a single video](#working-with-a-single-video)
50+
* [⬆️ Upload Video](#upload-video)
51+
* [📺 View your Video](#view-your-video)
52+
* [⛓️ Stream Sections of videos](#stream-sections-of-videos)
53+
* [🗂️ Indexing a Video](#indexing-a-video)
54+
* [🔍 Searching inside a video](#searching-inside-a-video)
55+
* [Viewing Search Results](#viewing-search-results)
56+
- [RAG: Search inside Multiple Videos](#rag-search-inside-multiple-videos)
57+
* [🔄 Using Collection to Upload Multiple Videos](#using-collection-to-upload-multiple-videos)
58+
* [📂 Search inside multiple videos in a collection](#search-inside-multiple-videos-in-a-collection)
59+
- [Timeline And Assets](#timeline-and-assets)
60+
* [Understanding Assets](#understanding-assets)
61+
* [Creating Assets](#creating-assets)
62+
* [VideoAsset](#videoasset)
63+
* [AudioAsset](#audioasset)
64+
* [ImageAsset](#imageasset)
65+
* [TextAsset](#textasset)
66+
* [Understanding Timeline](#understanding-timeline)
67+
* [Creating Timeline](#creating-timeline)
68+
- [More on `Video` object](#more-on-video-object)
69+
* [Get the video's transcript](#get-the-videos-transcript)
70+
* [Get the video's thumbnail](#get-the-videos-thumbnail)
71+
* [Overlay Subtitle on video](#overlay-subtitle-on-video)
72+
* [Delete the video](#delete-the-video)
73+
- [More on `Collection` object](#more-on-collection-object)
74+
* [Get all videos](#get-all-videos)
75+
* [Get a video given videoId](#get-a-video-given-videoid)
76+
* [Delete a video](#delete-a-video)
77+
- [Roadmap](#roadmap)
78+
- [Contributing](#contributing)
79+
- [License](#license)
80+
4181
<!-- Installation -->
4282

4383
## Installation
@@ -86,7 +126,7 @@ Or using `async`/`await`
86126

87127
## Working with a single video
88128

89-
#### ⬆️ Upload Video
129+
#### Upload Video
90130

91131
Now that you have established a connection to VideoDB, you can upload your videos using `coll.uploadURL()` or `coll.uploadFile()`.
92132
You can directly upload files from `youtube`, `any public url`, `S3 bucket` or a `local file path`. A default collection is created when you create your first connection.
@@ -109,7 +149,7 @@ uploadJob.on('error', err => {
109149
uploadJob.start();
110150
```
111151

112-
#### 📺 View your Video
152+
#### View your Video
113153

114154
Once uploaded, your video is immediately available for viewing in 720p resolution. ⚡️
115155

@@ -125,7 +165,7 @@ const playerUrl = await video.play();
125165
console.log('Video Preview : ', playerUrl);
126166
```
127167

128-
#### ⛓️ Stream Sections of videos
168+
#### Stream Sections of videos
129169

130170
You can easily clip specific sections of a video by passing a timeline of the start and end timestamps (in seconds) as a parameter.
131171
For example, this will generate a streaming URL for a compilation of the fist `10 seconds`, and the part between the `120th` and the `140th` second.
@@ -142,7 +182,7 @@ const streamPreview = playStream(streamLink);
142182
console.log('Clipped Video Preview : ', streamPreview);
143183
```
144184

145-
#### 🗂️ Indexing a Video
185+
#### Indexing a Video
146186

147187
To search bits inside a video, you have to first index the video. This can be done by a invoking the index function on the `Video`. VideoDB offers two type of indexes currently.
148188

@@ -168,7 +208,7 @@ job2.start();
168208
>
169209
> ⏱️ Indexing may take some time for longer videos, structure it as a batch job in your application.
170210
171-
#### 🔍 Searching inside a video
211+
#### Searching inside a video
172212

173213
Search the segments inside a video. While searching you have options to choose the type of search. VideoDB offers following type of search :
174214

@@ -192,7 +232,7 @@ indexJob.start();
192232

193233
Similarly, you can index and search from scenes using `Video.indexScenes()`
194234

195-
#### Viewing Search Results :
235+
#### Viewing Search Results
196236

197237
`video.search()` will return a `SearchResult` object, which contains the sections or as we call them, `shots` of videos which semantically match your search query.
198238

@@ -203,7 +243,7 @@ Similarly, you can index and search from scenes using `Video.indexScenes()`
203243

204244
`VideoDB` can store and search inside multiple videos with ease. By default, videos are uploaded to your default collection.
205245

206-
#### 🔄 Using Collection to Upload Multiple Videos
246+
#### Using Collection to Upload Multiple Videos
207247

208248
```ts
209249
const uploadJobHandler = video => {
@@ -237,7 +277,7 @@ job3.start();
237277
- `Collection.getVideo(videoId)`: Returns Video, respective video object from given `videoId`
238278
- `Collection.deleteVideo(videoId)`: Deletes the video from Collection
239279

240-
#### 📂 Search inside multiple videos in a collection
280+
#### Search inside multiple videos in a collection
241281

242282
You can simply Index all the videos in a collection and use the search method to find relevant results. Here we are indexing the spoken content of a collection and performing semantic search.
243283

@@ -269,7 +309,7 @@ The result here has all the matching bits in a single stream from your collectio
269309

270310
> As you can see VideoDB fundamentally removes the limitation of files and gives you power to access and stream videos in a very seamless way. Stay tuned for exciting features in our upcoming version and keep building awesome stuff with VideoDB 🤘
271311
272-
## 🎞 Timeline And Assets
312+
## Timeline And Assets
273313

274314
**Timeline and Assets** lets you create programmatic compilation streams with audio, image and text overlays using your video data in VideoDB.
275315

docs/classes/core_asset.AudioAsset.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ MediaAsset.constructor
5858

5959
#### Defined in
6060

61-
[src/core/asset.ts:83](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L83)
61+
[src/core/asset.ts:83](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L83)
6262

6363
## Properties
6464

@@ -72,7 +72,7 @@ MediaAsset.assetId
7272

7373
#### Defined in
7474

75-
[src/core/asset.ts:31](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L31)
75+
[src/core/asset.ts:31](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L31)
7676

7777
___
7878

@@ -82,7 +82,7 @@ ___
8282

8383
#### Defined in
8484

85-
[src/core/asset.ts:73](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L73)
85+
[src/core/asset.ts:73](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L73)
8686

8787
___
8888

@@ -92,7 +92,7 @@ ___
9292

9393
#### Defined in
9494

95-
[src/core/asset.ts:72](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L72)
95+
[src/core/asset.ts:72](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L72)
9696

9797
___
9898

@@ -102,7 +102,7 @@ ___
102102

103103
#### Defined in
104104

105-
[src/core/asset.ts:74](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L74)
105+
[src/core/asset.ts:74](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L74)
106106

107107
___
108108

@@ -112,7 +112,7 @@ ___
112112

113113
#### Defined in
114114

115-
[src/core/asset.ts:75](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L75)
115+
[src/core/asset.ts:75](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L75)
116116

117117
___
118118

@@ -122,7 +122,7 @@ ___
122122

123123
#### Defined in
124124

125-
[src/core/asset.ts:71](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L71)
125+
[src/core/asset.ts:71](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L71)
126126

127127
## Methods
128128

@@ -145,4 +145,4 @@ ___
145145

146146
#### Defined in
147147

148-
[src/core/asset.ts:107](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L107)
148+
[src/core/asset.ts:107](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L107)

docs/classes/core_asset.ImageAsset.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ MediaAsset.constructor
5252

5353
#### Defined in
5454

55-
[src/core/asset.ts:126](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L126)
55+
[src/core/asset.ts:126](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L126)
5656

5757
## Properties
5858

@@ -66,7 +66,7 @@ MediaAsset.assetId
6666

6767
#### Defined in
6868

69-
[src/core/asset.ts:31](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L31)
69+
[src/core/asset.ts:31](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L31)
7070

7171
___
7272

@@ -76,7 +76,7 @@ ___
7676

7777
#### Defined in
7878

79-
[src/core/asset.ts:124](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L124)
79+
[src/core/asset.ts:124](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L124)
8080

8181
___
8282

@@ -86,7 +86,7 @@ ___
8686

8787
#### Defined in
8888

89-
[src/core/asset.ts:121](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L121)
89+
[src/core/asset.ts:121](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L121)
9090

9191
___
9292

@@ -96,7 +96,7 @@ ___
9696

9797
#### Defined in
9898

99-
[src/core/asset.ts:120](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L120)
99+
[src/core/asset.ts:120](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L120)
100100

101101
___
102102

@@ -106,7 +106,7 @@ ___
106106

107107
#### Defined in
108108

109-
[src/core/asset.ts:122](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L122)
109+
[src/core/asset.ts:122](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L122)
110110

111111
___
112112

@@ -116,7 +116,7 @@ ___
116116

117117
#### Defined in
118118

119-
[src/core/asset.ts:123](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L123)
119+
[src/core/asset.ts:123](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L123)
120120

121121
## Methods
122122

@@ -139,4 +139,4 @@ ___
139139

140140
#### Defined in
141141

142-
[src/core/asset.ts:142](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L142)
142+
[src/core/asset.ts:142](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L142)

docs/classes/core_asset.TextAsset.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ MediaAsset.constructor
4949

5050
#### Defined in
5151

52-
[src/core/asset.ts:159](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L159)
52+
[src/core/asset.ts:159](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L159)
5353

5454
## Properties
5555

@@ -63,7 +63,7 @@ MediaAsset.assetId
6363

6464
#### Defined in
6565

66-
[src/core/asset.ts:31](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L31)
66+
[src/core/asset.ts:31](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L31)
6767

6868
___
6969

@@ -73,7 +73,7 @@ ___
7373

7474
#### Defined in
7575

76-
[src/core/asset.ts:156](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L156)
76+
[src/core/asset.ts:156](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L156)
7777

7878
___
7979

@@ -83,7 +83,7 @@ ___
8383

8484
#### Defined in
8585

86-
[src/core/asset.ts:157](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L157)
86+
[src/core/asset.ts:157](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L157)
8787

8888
___
8989

@@ -93,7 +93,7 @@ ___
9393

9494
#### Defined in
9595

96-
[src/core/asset.ts:155](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L155)
96+
[src/core/asset.ts:155](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L155)
9797

9898
## Methods
9999

@@ -139,4 +139,4 @@ ___
139139

140140
#### Defined in
141141

142-
[src/core/asset.ts:168](https://github.com/video-db/videodb-node/blob/4dc9a20/src/core/asset.ts#L168)
142+
[src/core/asset.ts:168](https://github.com/omgate234/videodb-node/blob/047cbbf/src/core/asset.ts#L168)

0 commit comments

Comments
 (0)