File tree Expand file tree Collapse file tree 1 file changed +23
-20
lines changed Expand file tree Collapse file tree 1 file changed +23
-20
lines changed Original file line number Diff line number Diff line change 1
1
< html >
2
- < head >
3
- < script src ="../dist/index.js "> </ script >
4
- </ head >
5
- < body >
6
2
7
- < form >
8
- < input type ="file " id ="input " onchange ="uploadFile(this.files) ">
9
- </ form >
10
- < script type ="text/javascript ">
11
- function uploadFile ( files ) {
12
- const uploader = new VideoUploader ( {
13
- file : files [ 0 ] ,
14
- videoId : "vi7Wub9QiEDdkMd5CZmnrD1Y" ,
15
- accessToken : "1ZeyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NTMzMTAwMzIuMzE4MzgyLCJuYmYiOjE2NTMzMTAwMzIuMzE4MzgyLCJleHAiOjE2NTMzMTM2MzIuMzE4MzgyLCJhcGlLZXlWYWx1ZSI6IjNYbUwxTXE0NkxQUmNnazVDTW1lMmZCc0liWU1LWGJRSVg1RHJUa0NPamcifQ.MCGVn1CrdEnKL_b-3MGuNTdb3y-IoUCwoikzIQEzWIyJgsz7338UJ_yYF0njGXJFjjhOWz3M_ywyVkr5E1Vx0K8RExq5gUEvehmBERkoOtPjYLxvIsKCms7mml_cPBWuh21-ofxNKH1W58AhP8uvvNTqSSKgeh01abOr8gpyaR8cgqAEcFjkcko0LULAEb44mCmiBMBwJAAfh4iuAyyqLQO1TC63ev92xAhWyKJY23npHfAkzpE_F8HpCp6VbAQwZdZ6Tmsg2lj4kMFgvZi2EiaUZuW5RS5rkq4uBTmuOBNNTqwtuSl0bYcp-NBQ4W2Ubc_Kw04_2KcIkn4O1NEwbw" ,
16
- refreshToken : "1eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NTMzMTE3MDMuMzE5NTcyLCJuYmYiOjE2NTMzMTE3MDMuMzE5NTcyLCJleHAiOjE2NTU5OTAxMDMuMzE5NTcyLCJyZWZyZXNoVG9rZW4iOnRydWUsImFwaUtleVZhbHVlIjoiM1htTDFNcTQ2TFBSY2drNUNNbWUyZkJzSWJZTUtYYlFJWDVEclRrQ09qZyJ9.soMScSuENRqqrIIOXdDnevDc1iNbl9Qcow71D6bOn4f9corRQhHgRwhOpKNoVAYX-SbbAgd1rbjiG95YgFLB9avDvCxqtW-7m_YVylywpGXOoaoz7wJSS2isB794_NYq6vAlivX22MB9aeA84JzwEZyajIOcwCJ-eOG-JbrW6kAtjW2Fl2I6rGIc6qQidYFSidZYI16p88aV-_-fHk8wV70B2Wb7CNOjrFeR51aIgtqeA-oheluRUwb0_3z5fgSTOy03CtOriloNSf9kGexvACnu1sIJ10D2cbHJshPv7djlQn8doGxhzoMpN7qy9MifO7KY5VFer_hQD0FuNFr5YQ"
17
- } ) ;
18
-
19
- uploader . upload ( ) . catch ( e => console . log ( e ) ) ;
20
- }
21
- </ script >
22
- </ body >
3
+ < head >
4
+ < script src ="../dist/index.js "> </ script >
5
+ </ head >
6
+
7
+ < body >
8
+
9
+ < form >
10
+ < input type ="file " id ="input " onchange ="uploadFile(this.files) ">
11
+ </ form >
12
+ < script type ="text/javascript ">
13
+ function uploadFile ( files ) {
14
+ const uploader = new VideoUploader ( {
15
+ file : files [ 0 ] ,
16
+ uploadToken : "to7EcLLzRSsqhkzxyIhavEHA" // ecosystem sandbox upload token
17
+ } ) ;
18
+
19
+ uploader . upload ( )
20
+ . then ( v => console . log ( v ) )
21
+ . catch ( e => console . log ( e ) ) ;
22
+ }
23
+ </ script >
24
+ </ body >
25
+
23
26
</ html >
You can’t perform that action at this time.
0 commit comments