mirror of
https://github.com/encounter/go-rtmp.git
synced 2026-03-30 11:12:49 -07:00
20 lines
675 B
Go
20 lines
675 B
Go
//
|
|
// Copyright (c) 2018- yutopp (yutopp@gmail.com)
|
|
//
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
// file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
|
|
//
|
|
|
|
package rtmp
|
|
|
|
import (
|
|
"github.com/encounter/go-rtmp/message"
|
|
)
|
|
|
|
type stateHandler interface {
|
|
onMessage(chunkStreamID int, timestamp uint32, msg message.Message) error
|
|
onData(chunkStreamID int, timestamp uint32, dataMsg *message.DataMessage, body interface{}) error
|
|
onCommand(chunkStreamID int, timestamp uint32, cmdMsg *message.CommandMessage, body interface{}) error
|
|
onWinAckSize(chunkStreamID int, timestamp uint32, ackMsg *message.WinAckSize) error
|
|
}
|