• Welcome to PHPVIBE Forums. Please log in.
avatar_marius20foc

[ Video Sharing CMS v4 ] Deleted/disabled videos

Started by marius20foc,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

marius20focTopic starter

is there a way you would develop a plugin that checks the availability of the videos inserted in a phpvibe based site, and if not available then drops them ?
  •  

PHPVibe A.


marius20focTopic starter

no, not local videos.
I'm sure it's easier for those..youtube served videos is my interest
  •  

PHPVibe A.

#3
Youtube api does not have a deleted videos feed (last time I've checked).

It would need to check http://gdata.youtube.com/feeds/api/videos/video_ID for every video stored, and that may go wrong in many ways.

marius20focTopic starter

ok. thanks for the quick answer...

so the only(safe) way to get rid of them is to manually track them down and unpublish/delete them ;)
  •  

PHPVibe A.

I've built a script for PHPVibe 3.1 that did this, but every morning my server was offline after the cron started, so yeah, not safe.

SonicSync

Quote from: Alexander on
Youtube api does not have a deleted videos feed (last time I've checked).

It would need to check http://gdata.youtube.com/feeds/api/videos/video_ID for every video stored, and that may go wrong in many ways.

Actually they do:

https://developers.google.com/youtube/iframe_api_reference#onError

onError

This event fires if an error occurs in the player. The API will pass an event object to the event listener function. That object's data property will specify an integer that identifies the type of error that occurred. Possible values are:

2 – The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.

5 – The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.

100 – The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.

101 – The owner of the requested video does not allow it to be played in embedded players.

150 – This error is the same as 101. It's just a 101 error in disguise!
  •  

PHPVibe A.

But that's individual player related, not list via api.
It would work handy if it's set on the front-end video page, but what happens if it triggers an fake error (happens often with api)? Video get unpublished and traffic is lost in this situations also.
also, would have the limitation of not working if you embed via jwplayer/other player the youtube videos.

Similar topics (7)