Add video profile/benchmarking and make safe to call in Firefox