File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ <h1>Tutorial Uploads</h1>
1313 < button id ="upload_widget " class ="cloudinary-button "> Upload Video</ button >
1414 < p id ="thanks "> </ p >
1515 < p id ="publicId "> </ p >
16+ < p > < a id ="transcript " href =""> </ a > </ p >
17+ < p > < a id ="chapters " href =""> </ a > </ p >
1618 </ div >
1719
1820 < script type ="text/javascript ">
@@ -34,6 +36,16 @@ <h1>Tutorial Uploads</h1>
3436 // Extract and display the public ID
3537 document . getElementById ( "thanks" ) . innerText = "Thank you!" ;
3638 document . getElementById ( "publicId" ) . innerText = `Public ID: ${ result . info . public_id } ` ;
39+
40+ let transcriptUrl = `https://cloudinary-res.cloudinary.com/raw/upload/${ result . info . public_id } .transcript` ;
41+ let chaptersUrl = `https://cloudinary-res.cloudinary.com/raw/upload/${ result . info . public_id } -chapters.vtt` ;
42+
43+ document . getElementById ( "transcript" ) . href = `${ transcriptUrl } ?response-content-disposition=attachment` ;
44+ document . getElementById ( "transcript" ) . innerText = transcriptUrl ;
45+
46+ document . getElementById ( "chapters" ) . href = `${ chaptersUrl } ?response-content-disposition=attachment` ;
47+ document . getElementById ( "chapters" ) . innerText = chaptersUrl ;
48+
3749 }
3850 } ) ;
3951
You can’t perform that action at this time.
0 commit comments