안녕하세요. 젠드 프레임 워크 쿼리를 통해 비디오가 목록에 없는지 알아야합니다. read 메소드 isVideoPrivate() 및 write 메소드 setVideoPublic() 및 setVideoPrivate()가 있지만 목록에없는 상태에 대해서는 아무것도 찾을 수 없다는 것을 알고 있습니다. 도와 주시겠습니까? 감사합니다.Zend를 사용하여 Youtube에 비디오가 표시되지 않는지 확인하십시오.
0
A
답변
0
어쩌면 이렇게 될까요?
try {
//do stuff with the video
}
catch(Zend_Gdata_App_Exception $e) {
next;
}
catch(Zend_Gdata_App_HttpException $httpException) {
next;
}
}
1
나는 같은 시점에서 고민했다. 하지만 "공개"또는 "비공개"는 다음과 같이 구분할 수있었습니다. 당신이 6 인덱스 5 변화에 대한 올바른 데이터를 얻을 수없는 경우
$videostatus = $videoEntry->extensionElements[6]->extensionAttributes[permission][value];
if($videostatus == 'allowed'){
$videostatus = 'public';
}elseif($videostatus == 'denied'){
$videostatus = 'unlisted';
}
-1
어쩌면
$permission = $video->extensionElements[5]->extensionAttributes['permission']['value'];
if ($permission == 'denied') {
$state = 'unlisted';
} else if ($permission == 'allowed' || is_null($permission)) {
$state = 'public';
}
같은 것을 시도;
이해가 안됨 : 동영상이 UNLISTED 상태에 있고이를 찾는 방법을 찾을 수 없는지 알아야합니다. – Andrea