APIs to encode, play and analyze video