Git Product home page Git Product logo

youtube-api-samples's Introduction

The code samples at code.google.com/p/youtube-api-samples are no longer
being maintained. Please update your code samples from the following
GitHub repository:
   
   https://github.com/youtube/api-samples

youtube-api-samples's People

Contributors

andydiamondstein avatar jeffposnick avatar ikai avatar

Watchers

James Cloos avatar

youtube-api-samples's Issues

compilation of youtube-cmdline-uploadvideo-sample fails

What steps will reproduce the problem?
1. create project of the youtube-cmdline-uploadvideo-sample in java
2. add java api v3 libs revision 64
3. compile the project

What is the expected output? What do you see instead?
expected: project will compile
actual: missing imports:
import com.google.api.services.youtube.YouTube;
import com.google.api.services.youtube.model.Video;
import com.google.api.services.youtube.model.VideoSnippet;
import com.google.api.services.youtube.model.VideoStatus;
all cannot be resolved
What version of the product are you using? On what operating system?
windows 7 java7 eclipse google-api-java-client v1.15

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 2 Jul 2013 at 1:59

Clicking on red play button on embedded video doesnt start the video on Ios devices

What steps will reproduce the problem?
1. Open 
http://apiblog.youtube.com/2014/03/introducing-youtube-developer-stories.html 
in Ipad 
2. Click on  the red Play button on the embedded youtube video -- Video wont 
start
3. Click anywhere on the embedded video -- Video starts

What is the expected output? What do you see instead?
Clicking on the red play button on embedded video should start the video. But 
video is not starting -

What version of the product are you using? On what operating system?
This happens on videos embedded using Youtube API V3. On Apple Ios devices with 
Ios 6+

Please provide any additional information below.
I gave the apiblog.youtube.com link above to show a good example. this is 
happening for my site too


Original issue reported on code.google.com by [email protected] on 2 Oct 2014 at 3:16

The Request was aborted: The request was canceled (dotnet upload)

What steps will reproduce the problem?
1. Create new console project
2. Paste in upload_video.cs and add references
3. Upload video that takes longer than about 100 seconds to upload

What is the expected output? What do you see instead?
Expect video to upload and status to update
Instead is says an error has occured - exception listed below

What version of the product are you using? On what operating system?
Sample code changed on Apr 19, 2013
Using google-youtube-v3-rev52-csharp-1.3.0-beta, and sample helper from 
google-api-dotnet-client-1.3.0-beta.samples
Windows 8 x64
Visual Studio 2012 Update 2

Please provide any additional information below.

 An error has occured:
    The request was aborted: The request was canceled.

 Press any key to display the stacktrace

 System.Net.WebException: The request was aborted: The request was canceled.
   at System.Net.ConnectStream.InternalWrite(Boolean async, Byte[] buffer, Int32
 offset, Int32 size, AsyncCallback callback, Object state)
   at System.Net.ConnectStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at Google.Apis.Upload.ResumableUpload`1.SendChunk(Stream stream, Uri uri, Int
64 position) in c:\code.google.com\google-api-dotnet-client\default_release\Tool
s\BuildRelease\bin\Debug\output\default\Src\GoogleApis\Apis\Upload\ResumableUplo
ad.cs:line 450
   at Google.Apis.Upload.ResumableUpload`1.Upload() in c:\code.google.com\google
-api-dotnet-client\default_release\Tools\BuildRelease\bin\Debug\output\default\S
rc\GoogleApis\Apis\Upload\ResumableUpload.cs:line 313
   at TestApp1.upload_video.<>c__DisplayClass3.<Main>b__2() in c:\Users\Adam\App
Data\Local\Temporary Projects\TestApp1\Program.cs:line 66
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionCo
ntext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
ontextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
ontextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

 Press any key to exit

Original issue reported on code.google.com by [email protected] on 26 May 2013 at 10:16

Upload a video to youtube - python api error


python 2.7.3/Ubuntu 12.04

I got the following error message

Uploading file...
No handlers could be found for logger "oauth2client.util"
Traceback (most recent call last):
  File "upload_video.py", line 162, in <module>
    initialize_upload(options)
  File "upload_video.py", line 107, in initialize_upload
    resumable_upload(insert_request)
  File "upload_video.py", line 117, in resumable_upload
    status, response = insert_request.next_chunk()
  File "/home/npedialap2/SenthilMurugan/youtube-python/youtube-v3-python-cmd-line/oauth2client/util.py", line 121, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/home/npedialap2/SenthilMurugan/youtube-python/youtube-v3-python-cmd-line/apiclient/http.py", line 733, in next_chunk
    raise ResumableUploadError("Failed to retrieve starting URI.")
apiclient.errors.ResumableUploadError: Failed to retrieve starting URI.



Original issue reported on code.google.com by [email protected] on 28 Feb 2013 at 9:49

Attachments:

Patch for yt_analytics_report.py

I had to make a small change to this script to prevent a 400 "Bad Request" 
error.

https://code.google.com/r/mattfaus-youtube-api-samples/source/detail?r=5c9c715b9
ab78463fcaf43329bed7ee8be52c6ab

Original issue reported on code.google.com by [email protected] on 3 Aug 2013 at 1:25

ResumableUploadError

Returning this error when attempting to upload a file with a title, 
description, keywords, category, and privacyStatus="private"

Uploading file...
No handlers could be found for logger "oauth2client.util"
Traceback (most recent call last):
  File "/Users/mileslauridsen/Dropbox/PRODUCTION/SYSTEMS/python/upload_video.py", line 162, in <module>
    initialize_upload(options)
  File "/Users/mileslauridsen/Dropbox/PRODUCTION/SYSTEMS/python/upload_video.py", line 107, in initialize_upload
    resumable_upload(insert_request)
  File "/Users/mileslauridsen/Dropbox/PRODUCTION/SYSTEMS/python/upload_video.py", line 117, in resumable_upload
    status, response = insert_request.next_chunk()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/oauth2client/util.py", line 128, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/apiclient/http.py", line 747, in next_chunk
    raise ResumableUploadError(resp, content)
apiclient.errors.ResumableUploadError: <HttpError 400 "Bad Request">


Original issue reported on code.google.com by [email protected] on 13 Apr 2013 at 10:27

"youtubeSignupRequired : Unauthorized" error if the user doesn't have channel

What steps will reproduce the problem?
1. create a new google account
2. go to 
https://youtube-api-samples.googlecode.com/git/yt-upload-javascript/index.html
3. sign in with your new account
4. open your console

What is the expected output? What do you see instead?
- Creating a channel via API (v3)
- "youtubeSignupRequired : Unauthorized" error

What version of the product are you using? On what operating system?
YouTube Data API v3.0 on Mac OS X (same issue on every OS even mobile)

Please provide any additional information below.

I tried to fix it via : 
https://developers.google.com/youtube/create-channel?hl=fr , but :

- https://m.youtube.com/create_channel?chromeless=1&next=/channel_creation_done 
doesn't close itself after channel creation, and i think it's easiest to create 
channel via API.

Thanks for help

Original issue reported on code.google.com by [email protected] on 30 Aug 2013 at 4:17

upload_video.py - TypeError: argument of type 'NoneType' is not iterable

What steps will reproduce the problem?
1. try to upload a 200mb video file
2. it errors.
3. im sad.

What is the expected output? What do you see instead?
Uploading file... and be done.

This seems unexpected:

    if 'id' in response:
TypeError: argument of type 'NoneType' is not iterable


What version of the product are you using? On what operating system?


Please provide any additional information below.

I suspect this hasn't been tested on files that need more than one chunk.
I think it is expected too loop, but instead it errors:

  while response is None:
    try:
      print "Uploading file..."
      status, response = insert_request.next_chunk()
      if 'id' in response:


Original issue reported on code.google.com by [email protected] on 6 May 2014 at 7:02

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.