-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I cancel Youtube Upload ? #150
Comments
It has not been implemented in the youtube api, you will have to do it yourself. For me, I did it using akka actors, and throw an exception while the progress function (setProgressListener provided by the youtube api) was in the MEDIA_IN_PROGRESS case. I am still wondering why is it not implemented in the api itself. Can be a good addition as far as I can think. |
i need also this functionality to stop uploading... |
@akshanshjain95 |
@mindforger |
this is possible? nice!
but how? my code is stuck on insert_request.next() while it is uploading isn't it? (to be clear i have not yet verified that the code really is stuck but from the example script it looks like maybe i should add some debug outputs this evening to look what is going on there :P) |
@mindforger |
maybe got a hint where to search for that function or a more comprehensive documentation than this tutorials scattered over the internet (i am sorrys for bothering but i feel like not seeing the woods because of all those trees ... hope that translates right :P) (i honestly never killed a thread forecfully before, i always used soem sort of sleep polling methode to shutdown threads safely) |
@mindforger You cannot call anything to abort .next(). You will have to kill the thread as far as I can think. |
thanks for spending so much time helping me, i'll try it out this evening, i also have to deal with moving the files from my PC to my PI prior starting the upload (and some way to fill in the meta data for the upload required), so there will be a lot of other issues around before i can try out the multithread upload approach |
@mindforger |
the biggest pain is living with only 1mbit upload ... it's the worst ... especially when you had only a choice between 12mbits upload for the price of sanity becasue of ignorant neighbours or 1mbits but a piece of heaven to live in :) |
I want to implemment upload function in youtube api with function pause, continue and cancel
How do I make cancel function.
The text was updated successfully, but these errors were encountered: