
Gsy Option Builder
用 GSYVideoOptionBuilder 一次性把播放器所有可调项配好;等价于对 StandardGSYVideoPlayer 挨个 setter 但更紧凑。
Install
npx skills add CarGuo/GSYVideoPlayer --skill gsy-option-builder -g -a claude-code -y- Repository
- CarGuo/GSYVideoPlayer21.5k
- Category
- Engineering
- Updated
- 26d ago
- License
- Apache-2.0
- Context cost
- Mediumabout 2,492 tokens
- Runs scripts
- No, instructions only
What it does
用 GSYVideoOptionBuilder 一次性把播放器所有可调项配好;等价于对 StandardGSYVideoPlayer 挨个 setter 但更紧凑。
gsy-option-builder
API 总览
链式调用,最后 build(player) 把状态灌到具体 GSYBaseVideoPlayer。
new GSYVideoOptionBuilder()
.setUrl(url)
.setCacheWithPlay(true)
.setVideoTitle(title)
.setIsTouchWiget(true)
.setRotateViewAuto(false)
.setLockLand(false)
.setLooping(false)
.setSpeed(1.0f)
.setSeekOnStart(0)
.setVideoAllCallBack(callback)
.build(player);
