Files
go-rtmp/state_handler.go
2020-01-31 04:06:23 -05:00

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
}