• lmstearn

    (@lmstearn)


    Hi, before embedding a video url into a post, a url typically from some of the supported websites such as YouTube, Vimeo or TikTok, it might be useful to know if your webpage viewers from other countries are able to play it. Could we then envisage a plugin with the capability of extracting the list of countries blocked by whoever generated the source video content?

    The plugin would want to listen for paste operations in the edit form, (nothing like that here unfortunately) and then check through the string for candidate url(s). The url is then parsed for video provider names viz. the three mentioned above. Tricky, after which extract the video ids (regex at least), then, e.g. for YouTube, obtain the regionCode values that should accord to the region list. Present the county names in a tooltip, traytip or small popup flyout form overlay.

    There’s an example of how to extract some YT video data here, can the regionCode be obtained without the API key though? Another website that runs this page in quirks mode performs what we want with ease, cgi is more an Apache thing unfortunately.

    Haven’t researched this topic enough to be absolutely sure something like this has not been covered before, in any case, sure to be one for the backburner milestone.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • WordPress does not track visitor’s IP addresses, and NEVER will, for good reason.

    So something like this can ever happen in WordPress core, or as an official plugin by the WordPress team.

    Thread Starter lmstearn

    (@lmstearn)

    If determining whether a video URL link will play in the known country of your known audience somehow involves tracking visitor IP addresses, then yes, it ?can never happen in WordPress core, or as an official plugin by the WordPress team.

    your known audience

    Here’s the crux of the matter. Where’s this knowledge of “known audience” coming from? And how does WordPress get to have this information without tracking the visitor’s IP address (or worse, request users’ location)?

    Thread Starter lmstearn

    (@lmstearn)

    Apologies if not clear: The forum correspondents reside in countries known to me, thus there exists a personal list of recipient countries under consideration. Best of luck to correspondents from other countries. Therefore, before embedding some video link in BBPress, I want to know if any countries in the above-mentioned list are blocked by the originators of the video.

    All the WordPress plugin would do is parse the video url and return a list of countries blocked by it, as the above linked cgi script does, no user tracking required, fortunately.

    HTH

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Detect Country Restrictions on Video’ is closed to new replies.