Doubt to change token to video

I want to see if it is possible to implement a token to the url of the video to make it able to protect it I am using nginx

?token=-LKUq-mrM6dGDofYAYs7Fw&expire=1497208523

I want to make this switch to continue playing

help pliss

Some help would be very good