diff options
| author | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-07-22 18:47:14 -0400 |
|---|---|---|
| committer | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-07-22 18:47:14 -0400 |
| commit | 4446a3a52c4cf4b03c201ab2d6a9179647686e40 (patch) | |
| tree | 960914ad762daf0f7a51f55154c2fadd48bc5d92 /src/client/DocServer.ts | |
| parent | de7176884493c79ba11ecd871c3b444d36165367 (diff) | |
Pulled Duration and ViewCount details, Need to csss duration
Diffstat (limited to 'src/client/DocServer.ts')
| -rw-r--r-- | src/client/DocServer.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/DocServer.ts b/src/client/DocServer.ts index bc5819061..8a9abb514 100644 --- a/src/client/DocServer.ts +++ b/src/client/DocServer.ts @@ -168,6 +168,10 @@ export namespace DocServer { Utils.EmitCallback(_socket, MessageStore.YoutubeApiQuery, { type: YoutubeQueryTypes.SearchVideo, userInput: videoTitle }, callBack); } + export function getYoutubeVideoDetails(videoIds: string, callBack: (videoDetails: any[]) => void) { + Utils.EmitCallback(_socket, MessageStore.YoutubeApiQuery, { type: YoutubeQueryTypes.VideoDetails, videoIds: videoIds }, callBack); + } + /** * Given a list of Doc GUIDs, this utility function will asynchronously attempt to each id's associated |
