devtools

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package devtools provides common code for interacting with media Devtools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHWDRMPipeline

func CheckHWDRMPipeline(ctx context.Context, observer media.PlayerPropertiesChangedClient, url string) (isHWDRMPipeline bool, err error)

CheckHWDRMPipeline waits for observer to produce a Player properties and parses it to figure out if a the pipeline matches what we expect for HW DRM playback. That means the video is encrypted, we are using a HW video decoder and we are not using a video decrypting demuxer (which is a sign of L3 fallback in dev mode). It returns true if expectations are met for HW DRM.

func GetVideoDecoder

func GetVideoDecoder(ctx context.Context, observer media.PlayerPropertiesChangedClient, url string) (isPlatform bool, name string, err error)

GetVideoDecoder waits for observer to produce a Player properties and parses it to figure out the video decoder name and if this is accelerated.

func GetVideoEncoder

func GetVideoEncoder(ctx context.Context, observer media.PlayerPropertiesChangedClient, url string) (isPlatform bool, name string, err error)

GetVideoEncoder waits for observer to produce a Player properties and parses it to figure out the video encoder name and if this is accelerated.

func GetVideoPlaybackRoughness

func GetVideoPlaybackRoughness(ctx context.Context, observer media.PlayerPropertiesChangedClient, url string) (roughness float64, err error)

GetVideoPlaybackRoughness waits for and collects the video playback roughness as provided by Media DevTools. Simply put it's the RMSE of the actual playback times vs the ideal ones (1/fps). See go/chrome-video-roughness.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL