OdyseeTeam / player-server

Media server for Odysee
28 stars 12 forks source link

Trigger file view on APIs when playback or download requested #64

Open tzarebczan opened 3 years ago

tzarebczan commented 3 years ago

Right now, the app triggers a file view event on internal APIs.

On top of this, we also want to track any playback events from RSS feeds or any other sources who access content directly.

We still want to track authenticated calls through the apps, so we'll need to pass a param with these player requests/download links so you know not to call it again.

tzarebczan commented 3 years ago

Or maybe it can read the request headers and ignore if they come from known apps?

tzarebczan commented 3 years ago

API example: https://api.odysee.com/file/view?uri=lbry%3A%2F%2F%40True_Anarchy%238%2Fvaccine-still-work%23d&outpoint=cbb86a357f6ab320c51e48b51cbab6c08be92cb2c5e6e247f70b74dc61da0e7d%3A0&claim_id=d198b50c08fe843d2730e73c049496cd44c4b40e

An auth token is required currently - we can make a dummy one for this purpose or remove the requirement.