Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / YouTube videos

Author
Message
TamBam
9
Years of Service
User Offline
Joined: 29th Nov 2011
Location: India
Posted: 18th Nov 2020 21:19
I want to make a app where some one watch youtube video so that particular video get some watch time and he/she earn some coin and then he/she also can promote his/her own youtube video with that coin . But problems is that the youtube videos run over the application so I unable to count the time as well as unable to show anything to the user like timing and user I'd and coin etc.

This is not a bug because TGC says the video comes over the app .

Anyone have solution / suggestions.
Conjured Entertainment
AGK Developer
16
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 20th Nov 2020 01:58 Edited at: 20th Nov 2020 01:59
Server sided script ???

I have used the GET method to pass form variables before securely by using an encrypted KEY that used a private key added to the variables before encrypting it using the openbrowser() command. (in classic)

That way no one could simply change the values in the path.

I haven't tried to do anything like this before, but I am sure it could be done if you let the server sided script do most of the work.

Getting those results for time watched should be easy enough with the HTTP stuff for the response if the results are written to a plain text file on the server by your script.

Can't remember exactly how I was doing it for the 64x64 Jam for matching players card info, but it was pretty straight forward using the mid() to pull out the parts of the results string that I wanted.

Again, never done this before with playing YouTube videos, but it seems like it should be doable running it in a separate window via the server's script rather than the app.

Once you have the server playing the video and recording the time watched so the app can access that info, then adding the coins and stuff on the app side should be doable.

Just a thought on a possible work around... so not sure if you could pull it off, but it seems like it could be done if you can time that video being played with your script.

Coding things my way since 1981 -- Currently using AppGameKit V2 Tier 1

Login to post a reply

Server time is: 2021-09-19 20:57:27
Your offset time is: 2021-09-19 20:57:27