Reputation: 383
I have used "video_embed" field in my site to add videos from Youtube. Everything is working fine but I am doubtful on the way to implementing these two points using Video Embed Module:-
These are the basic two questions whose answer will help me in maintaining my site.
Upvotes: 1
Views: 262
Reputation: 2508
You could implement hook_node_presave() to inject some code that should be executed before saving (new or edited) nodes. The code implementing this hook should perform a request to the Youtube API to find out the current status of the video.
In addition, you could schedule a cron task to check the status of all videos regularly, in order to remove them if they have been deleted / set private after the node insertion.
Upvotes: 0