anand-kaushik / youtube-direct-lite

Automatically exported from code.google.com/p/youtube-direct-lite
Apache License 2.0
0 stars 0 forks source link

How to get video ID after uploading with webcam? #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi guys, when i upload the video within webcam i can't get it's Id to save in 
database.
Here in webcam.js how do i get video id? 

  onUploadSuccess: function(event) {
            utils.showMessage('Your webcam submission was received.');
             // alert (globals.parsedUrl.queryKey.id);
            window._gaq.push(['_trackEvent', 'Submission', 'Webcam', 'Success']);
          },

Thanks,

Original issue reported on code.google.com by LibinSt...@gmail.com on 5 Mar 2014 at 12:54

GoogleCodeExporter commented 9 years ago
The documentation for the upload widget is at 
https://developers.google.com/youtube/youtube_upload_widget#Events

I believe event.data.videoId will be populated with the information you're 
looking for in that callback.

Original comment by je...@google.com on 7 Mar 2014 at 3:56