Source File
media.go
Belonging Package
github.com/chromedp/cdproto/media
// Package media provides the Chrome DevTools Protocol// commands, types, and events for the Media domain.//// This domain allows detailed inspection of media elements.//// Generated by the cdproto-gen command.package media// Code generated by cdproto-gen. DO NOT EDIT.import ()// EnableParams enables the Media domain.type EnableParams struct{}// Enable enables the Media domain.//// See: https://chromedevtools.github.io/devtools-protocol/tot/Media#method-enablefunc () *EnableParams {return &EnableParams{}}// Do executes Media.enable against the provided context.func ( *EnableParams) ( context.Context) ( error) {return cdp.Execute(, CommandEnable, nil, nil)}// DisableParams disables the Media domain.type DisableParams struct{}// Disable disables the Media domain.//// See: https://chromedevtools.github.io/devtools-protocol/tot/Media#method-disablefunc () *DisableParams {return &DisableParams{}}// Do executes Media.disable against the provided context.func ( *DisableParams) ( context.Context) ( error) {return cdp.Execute(, CommandDisable, nil, nil)}// Command names.const (CommandEnable = "Media.enable"CommandDisable = "Media.disable")
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |