Documentation ¶
Overview ¶
Package devtools provides common code for interacting with media Devtools.
Index ¶
- func CheckHWDRMPipeline(ctx context.Context, observer media.PlayerPropertiesChangedClient, url string) (isHWDRMPipeline bool, err error)
- func GetVideoDecoder(ctx context.Context, observer media.PlayerPropertiesChangedClient, url string) (isPlatform bool, name string, err error)
- func GetVideoEncoder(ctx context.Context, observer media.PlayerPropertiesChangedClient, url string) (isPlatform bool, name string, err error)
- func GetVideoPlaybackRoughness(ctx context.Context, observer media.PlayerPropertiesChangedClient, url string) (roughness float64, err error)
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.