View Single Post
Old 2022-02-05, 09:55 AM   #4
sarettah
Asleep at the switch? I wasn't asleep, I was drunk
 
Join Date: Apr 2005
Posts: 214
Quote:
Originally Posted by Greenguy View Post
So it randomly loads a live cam where you can click the chat link to go to that camshow or click the arrows to get a new cam feed.

Just making sure I have it correct lol
Quote:
Originally Posted by JAI-LING View Post
I like the beginning of this idea. Great concept. How are you spacing the minute updates? All at once or staggered throughout the minute?
Once a minute, server side, I pull in the api feeds for Chaturbate, Stripchat and Cherry. I combine the 3 feeds into 1 feed alternating the cams in order Chaturbate, Cherry, Stripchat.

The users page updates once a minute starting from the last page load, either by when they entered the site or by when they refreshed the page.

I keep track underneath the sheets of what cam (by count) the user is on so if they refresh I try to return them to that particular cam.

The apis come in pretty much the same order each time they are pulled with the variance being new cams added or cams that have ended dropping off. So, it sometimes ends up with a cam being repeated because it has moved down the list.

Swiping in mobile - Right or down goes forward one cam, Left goes back one cam. I have swipe up turned off because of the banner at the bottom of the page.

On desktop - arrow keys work as right or down moves forward one cam, left or up goes back one cam.

Arrows on the screen right forward, left back.

I originally did not have the like in the middle saying "click here to join the chat", was going to keep it slimmed down and just have the sponsor logo linking to the chat room. Changed that up to make it more obvious that there is a chat they can join.

Same thing with the banners, originally had a very simple screen, decided to add the banners and include them in the rotation.

Original idea was to be kind of like Tik Tok or Naughty Tok, obviously.

I do not know if I will keep all 3 apis feeding it. Cherry still has some load issues and I end up with dead cams. Stripchat sometimes too. Chaturbate seems to be the most reliable. Original implementation was just Chaturbate and the api was being pulled on the client side every 5 minutes. It worked well but I wanted to add more apis just because. Stripchat's api call in ajax gets blocked by the adblocker and that moves the implementation to the server. I would much rather just have it all running in the users brwser with the only server calls being the initial page load and the clicks through to the chatroom.


The original implementation can be seen at https://camtok.com/original

.

Last edited by sarettah; 2022-02-05 at 10:17 AM..
sarettah is offline   Reply With Quote