Rewind rewinds the current position to the start. Rewind returns error when seeking the source stream returns error.
()
| 244 | // |
| 245 | // Rewind returns error when seeking the source stream returns error. |
| 246 | func (p *Player) Rewind() error { |
| 247 | return p.Seek(0) |
| 248 | } |
| 249 | |
| 250 | // Seek seeks the position with the given offset. |
| 251 | // |