- Posts: 2
COMMUNITY FORUM
different video source based on ip location?
- kinglam
-
Topic Author
- Offline
- New Member
Less
More
14 years 8 months ago #34967
by kinglam
different video source based on ip location? was created by kinglam
hello,
as you probably know, youtube.com is blocked from China, and in China, people mostly use tudou.com.
I am planning to create a joomla article page that depends on where the access IP is, it will display a different video source.
For example, I have the same video in youtube.com and tudou.com. If the IP is from China, it will show the article with
{tudou} videoID {/tudou}
else it will show the video from youtube.com
with
{youtube} videoID {/youtube}
Is this possible?
Can I create a custom wrapper tag
{tudou_youtube} videoID1, videoID2 {/tudou_youtube}
where videoID1 is the ID for tudou and videoID2 is for youtube and it will do the above logic based on IP?
What is the best way to do this?
as you probably know, youtube.com is blocked from China, and in China, people mostly use tudou.com.
I am planning to create a joomla article page that depends on where the access IP is, it will display a different video source.
For example, I have the same video in youtube.com and tudou.com. If the IP is from China, it will show the article with
{tudou} videoID {/tudou}
else it will show the video from youtube.com
with
{youtube} videoID {/youtube}
Is this possible?
Can I create a custom wrapper tag
{tudou_youtube} videoID1, videoID2 {/tudou_youtube}
where videoID1 is the ID for tudou and videoID2 is for youtube and it will do the above logic based on IP?
What is the best way to do this?
Please Log in or Create an account to join the conversation.
- Katia
-
- Offline
- Platinum Member
Less
More
- Posts: 4696
14 years 8 months ago #34968
by Katia
Replied by Katia on topic Re: different video source based on ip location?
We will add tudou.com in our providers for AllVideos asap.
;)
;)
Please Log in or Create an account to join the conversation.
- kinglam
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 2
14 years 8 months ago #34969
by kinglam
Replied by kinglam on topic Re: different video source based on ip location?
Actually, tudou.com is already in the provider list.
My question is really about the logic to do ip 2 location and determine which video source to provide. Would this logic reside in allvideo, or I should use jumi to implement the logic in the joomla article page.
My question is really about the logic to do ip 2 location and determine which video source to provide. Would this logic reside in allvideo, or I should use jumi to implement the logic in the joomla article page.
Please Log in or Create an account to join the conversation.
- Katia
-
- Offline
- Platinum Member
Less
More
- Posts: 4696
14 years 8 months ago #34970
by Katia
Replied by Katia on topic Re: different video source based on ip location?
Sorry this is not possible.
Please Log in or Create an account to join the conversation.
- hvdb
-
- Offline
- New Member
Less
More
- Posts: 7
14 years 6 months ago #34971
by hvdb
Replied by hvdb on topic Re: different video source based on ip location?
What you could do is look in to something like GeoIP (maxmind.com) and load/display a different movie based on IP location. This however is obviously not an "out of the box" feature so you will need to do some coding to get it to work.
Please Log in or Create an account to join the conversation.