我尝试使用此代码将视频上传到youtube
intent = new Intent(Intent.ACTION_PICK, null).setType("video/*");
intent.putExtra(EXTRA_LOCAL_ONLY, true);
startActivityForResult(intent, SELECT_VIDEO_REQUEST);
在onActivityResult上我把它:
if (resultCode == RESULT_OK) {
switch (requestCode) {
case SELECT_VIDEO_REQUEST:
Intent intent = YouTubeIntents.createUploadIntent(this, returnedIntent.getData());
startActivity(intent);}}
与api演示中的示例完全相同
但是当我尝试从我的设备上传视频时,它看起来像是开始uplod但堆叠,写等待......
任何建议???
提前谢谢