MCPcopy Create free account
hub / github.com/Monibuca/engine / StopPlay

Method StopPlay

subscriber.go:120–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118}
119
120func (player *TrackPlayer) StopPlay() {
121 player.CancelFunc()
122 if player.AudioReader != nil {
123 player.AudioReader.StopRead()
124 }
125 if player.VideoReader != nil {
126 player.VideoReader.StopRead()
127 }
128}
129
130// Subscriber 订阅者实体定义
131type Subscriber struct {

Callers 1

onStopMethod · 0.80

Calls 1

StopReadMethod · 0.80

Tested by

no test coverage detected