playback

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlayBackService_PlayBackStart_FullMethodName    = "/playback.PlayBackService/PlayBackStart"
	PlayBackService_PlayBackStop_FullMethodName     = "/playback.PlayBackService/PlayBackStop"
	PlayBackService_SearchIsupRecord_FullMethodName = "/playback.PlayBackService/SearchIsupRecord"
)

Variables

View Source
var File_proto_playback_proto protoreflect.FileDescriptor
View Source
var PlayBackService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "playback.PlayBackService",
	HandlerType: (*PlayBackServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PlayBackStart",
			Handler:    _PlayBackService_PlayBackStart_Handler,
		},
		{
			MethodName: "PlayBackStop",
			Handler:    _PlayBackService_PlayBackStop_Handler,
		},
		{
			MethodName: "SearchIsupRecord",
			Handler:    _PlayBackService_SearchIsupRecord_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/playback.proto",
}

PlayBackService_ServiceDesc is the grpc.ServiceDesc for PlayBackService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPlayBackServiceServer

func RegisterPlayBackServiceServer(s grpc.ServiceRegistrar, srv PlayBackServiceServer)

Types

type EmptyPalyBackResponse

type EmptyPalyBackResponse struct {
	// contains filtered or unexported fields
}

func (*EmptyPalyBackResponse) Descriptor deprecated

func (*EmptyPalyBackResponse) Descriptor() ([]byte, []int)

Deprecated: Use EmptyPalyBackResponse.ProtoReflect.Descriptor instead.

func (*EmptyPalyBackResponse) ProtoMessage

func (*EmptyPalyBackResponse) ProtoMessage()

func (*EmptyPalyBackResponse) ProtoReflect

func (x *EmptyPalyBackResponse) ProtoReflect() protoreflect.Message

func (*EmptyPalyBackResponse) Reset

func (x *EmptyPalyBackResponse) Reset()

func (*EmptyPalyBackResponse) String

func (x *EmptyPalyBackResponse) String() string

type PlayBackResponse

type PlayBackResponse struct {
	Streamid  string `protobuf:"bytes,13,opt,name=streamid,proto3" json:"streamid,omitempty"`  //视频流id
	Deviceid  string `protobuf:"bytes,5,opt,name=deviceid,proto3" json:"deviceid,omitempty"`   //设备id
	Channelid string `protobuf:"bytes,6,opt,name=channelid,proto3" json:"channelid,omitempty"` //通道id
	Http      string `protobuf:"bytes,14,opt,name=http,proto3" json:"http,omitempty"`          //m3u8 播放地址
	Rtmp      string `protobuf:"bytes,15,opt,name=rtmp,proto3" json:"rtmp,omitempty"`          //rtmp 播放地址
	Rtsp      string `protobuf:"bytes,16,opt,name=rtsp,proto3" json:"rtsp,omitempty"`          //rtsp 播放地址
	Wsflv     string `protobuf:"bytes,17,opt,name=wsflv,proto3" json:"wsflv,omitempty"`        //flv 播放地址
	Webrtc    string `protobuf:"bytes,18,opt,name=webrtc,proto3" json:"webrtc,omitempty"`      //webrtc 播放地址
	Https     string `protobuf:"bytes,23,opt,name=https,proto3" json:"https,omitempty"`        //m3u8 播放地址
	Rtmps     string `protobuf:"bytes,24,opt,name=rtmps,proto3" json:"rtmps,omitempty"`        //rtmp 播放地址
	Rtsps     string `protobuf:"bytes,25,opt,name=rtsps,proto3" json:"rtsps,omitempty"`        //rtsp 播放地址
	Wsflvs    string `protobuf:"bytes,26,opt,name=wsflvs,proto3" json:"wsflvs,omitempty"`      //flv 播放地址
	Webrtcs   string `protobuf:"bytes,27,opt,name=webrtcs,proto3" json:"webrtcs,omitempty"`    //webrtc 播放地址
	// contains filtered or unexported fields
}

func (*PlayBackResponse) Descriptor deprecated

func (*PlayBackResponse) Descriptor() ([]byte, []int)

Deprecated: Use PlayBackResponse.ProtoReflect.Descriptor instead.

func (*PlayBackResponse) GetChannelid

func (x *PlayBackResponse) GetChannelid() string

func (*PlayBackResponse) GetDeviceid

func (x *PlayBackResponse) GetDeviceid() string

func (*PlayBackResponse) GetHttp

func (x *PlayBackResponse) GetHttp() string

func (*PlayBackResponse) GetHttps

func (x *PlayBackResponse) GetHttps() string

func (*PlayBackResponse) GetRtmp

func (x *PlayBackResponse) GetRtmp() string

func (*PlayBackResponse) GetRtmps

func (x *PlayBackResponse) GetRtmps() string

func (*PlayBackResponse) GetRtsp

func (x *PlayBackResponse) GetRtsp() string

func (*PlayBackResponse) GetRtsps

func (x *PlayBackResponse) GetRtsps() string

func (*PlayBackResponse) GetStreamid

func (x *PlayBackResponse) GetStreamid() string

func (*PlayBackResponse) GetWebrtc

func (x *PlayBackResponse) GetWebrtc() string

func (*PlayBackResponse) GetWebrtcs

func (x *PlayBackResponse) GetWebrtcs() string

func (*PlayBackResponse) GetWsflv

func (x *PlayBackResponse) GetWsflv() string

func (*PlayBackResponse) GetWsflvs

func (x *PlayBackResponse) GetWsflvs() string

func (*PlayBackResponse) ProtoMessage

func (*PlayBackResponse) ProtoMessage()

func (*PlayBackResponse) ProtoReflect

func (x *PlayBackResponse) ProtoReflect() protoreflect.Message

func (*PlayBackResponse) Reset

func (x *PlayBackResponse) Reset()

func (*PlayBackResponse) String

func (x *PlayBackResponse) String() string

type PlayBackServiceClient

type PlayBackServiceClient interface {
	// *
	// 录像播放
	PlayBackStart(ctx context.Context, in *PlaybackRequest, opts ...grpc.CallOption) (*PlayBackResponse, error)
	PlayBackStop(ctx context.Context, in *StopPalyBackRequest, opts ...grpc.CallOption) (*EmptyPalyBackResponse, error)
	SearchIsupRecord(ctx context.Context, in *SearchIsupRecordRequest, opts ...grpc.CallOption) (*SearchIsupRecordResponse, error)
}

PlayBackServiceClient is the client API for PlayBackService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type PlayBackServiceServer

type PlayBackServiceServer interface {
	// *
	// 录像播放
	PlayBackStart(context.Context, *PlaybackRequest) (*PlayBackResponse, error)
	PlayBackStop(context.Context, *StopPalyBackRequest) (*EmptyPalyBackResponse, error)
	SearchIsupRecord(context.Context, *SearchIsupRecordRequest) (*SearchIsupRecordResponse, error)
	// contains filtered or unexported methods
}

PlayBackServiceServer is the server API for PlayBackService service. All implementations must embed UnimplementedPlayBackServiceServer for forward compatibility

type PlaybackRequest

type PlaybackRequest struct {

	// monitor_id
	DeviceId  string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	// 开始时间
	StartTime int64 `protobuf:"varint,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// 结束时间
	EndTime int64 `protobuf:"varint,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaybackRequest) Descriptor deprecated

func (*PlaybackRequest) Descriptor() ([]byte, []int)

Deprecated: Use PlaybackRequest.ProtoReflect.Descriptor instead.

func (*PlaybackRequest) GetChannelId

func (x *PlaybackRequest) GetChannelId() string

func (*PlaybackRequest) GetDeviceId

func (x *PlaybackRequest) GetDeviceId() string

func (*PlaybackRequest) GetEndTime

func (x *PlaybackRequest) GetEndTime() int64

func (*PlaybackRequest) GetStartTime

func (x *PlaybackRequest) GetStartTime() int64

func (*PlaybackRequest) ProtoMessage

func (*PlaybackRequest) ProtoMessage()

func (*PlaybackRequest) ProtoReflect

func (x *PlaybackRequest) ProtoReflect() protoreflect.Message

func (*PlaybackRequest) Reset

func (x *PlaybackRequest) Reset()

func (*PlaybackRequest) String

func (x *PlaybackRequest) String() string

type RecordItem

type RecordItem struct {
	FileName  string `protobuf:"bytes,1,opt,name=FileName,proto3" json:"FileName,omitempty"`
	StartTime string `protobuf:"bytes,2,opt,name=StartTime,proto3" json:"StartTime,omitempty"`
	EndTime   string `protobuf:"bytes,3,opt,name=EndTime,proto3" json:"EndTime,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordItem) Descriptor deprecated

func (*RecordItem) Descriptor() ([]byte, []int)

Deprecated: Use RecordItem.ProtoReflect.Descriptor instead.

func (*RecordItem) GetEndTime

func (x *RecordItem) GetEndTime() string

func (*RecordItem) GetFileName

func (x *RecordItem) GetFileName() string

func (*RecordItem) GetStartTime

func (x *RecordItem) GetStartTime() string

func (*RecordItem) ProtoMessage

func (*RecordItem) ProtoMessage()

func (*RecordItem) ProtoReflect

func (x *RecordItem) ProtoReflect() protoreflect.Message

func (*RecordItem) Reset

func (x *RecordItem) Reset()

func (*RecordItem) String

func (x *RecordItem) String() string

type SearchIsupRecordRequest

type SearchIsupRecordRequest struct {

	// monitor_id
	DeviceId  string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	// 开始时间
	StartTime int64 `protobuf:"varint,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// 结束时间
	EndTime int64 `protobuf:"varint,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchIsupRecordRequest) Descriptor deprecated

func (*SearchIsupRecordRequest) Descriptor() ([]byte, []int)

Deprecated: Use SearchIsupRecordRequest.ProtoReflect.Descriptor instead.

func (*SearchIsupRecordRequest) GetChannelId

func (x *SearchIsupRecordRequest) GetChannelId() string

func (*SearchIsupRecordRequest) GetDeviceId

func (x *SearchIsupRecordRequest) GetDeviceId() string

func (*SearchIsupRecordRequest) GetEndTime

func (x *SearchIsupRecordRequest) GetEndTime() int64

func (*SearchIsupRecordRequest) GetStartTime

func (x *SearchIsupRecordRequest) GetStartTime() int64

func (*SearchIsupRecordRequest) ProtoMessage

func (*SearchIsupRecordRequest) ProtoMessage()

func (*SearchIsupRecordRequest) ProtoReflect

func (x *SearchIsupRecordRequest) ProtoReflect() protoreflect.Message

func (*SearchIsupRecordRequest) Reset

func (x *SearchIsupRecordRequest) Reset()

func (*SearchIsupRecordRequest) String

func (x *SearchIsupRecordRequest) String() string

type SearchIsupRecordResponse

type SearchIsupRecordResponse struct {
	DeviceID  string        `protobuf:"bytes,1,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"`
	ChannelID string        `protobuf:"bytes,2,opt,name=ChannelID,proto3" json:"ChannelID,omitempty"`
	SumNum    int32         `protobuf:"varint,3,opt,name=SumNum,proto3" json:"SumNum,omitempty"`
	Item      []*RecordItem `protobuf:"bytes,4,rep,name=Item,proto3" json:"Item,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchIsupRecordResponse) Descriptor deprecated

func (*SearchIsupRecordResponse) Descriptor() ([]byte, []int)

Deprecated: Use SearchIsupRecordResponse.ProtoReflect.Descriptor instead.

func (*SearchIsupRecordResponse) GetChannelID

func (x *SearchIsupRecordResponse) GetChannelID() string

func (*SearchIsupRecordResponse) GetDeviceID

func (x *SearchIsupRecordResponse) GetDeviceID() string

func (*SearchIsupRecordResponse) GetItem

func (x *SearchIsupRecordResponse) GetItem() []*RecordItem

func (*SearchIsupRecordResponse) GetSumNum

func (x *SearchIsupRecordResponse) GetSumNum() int32

func (*SearchIsupRecordResponse) ProtoMessage

func (*SearchIsupRecordResponse) ProtoMessage()

func (*SearchIsupRecordResponse) ProtoReflect

func (x *SearchIsupRecordResponse) ProtoReflect() protoreflect.Message

func (*SearchIsupRecordResponse) Reset

func (x *SearchIsupRecordResponse) Reset()

func (*SearchIsupRecordResponse) String

func (x *SearchIsupRecordResponse) String() string

type StopPalyBackRequest

type StopPalyBackRequest struct {
	Streamid []string `protobuf:"bytes,1,rep,name=streamid,proto3" json:"streamid,omitempty"` //视频流句柄id
	// contains filtered or unexported fields
}

func (*StopPalyBackRequest) Descriptor deprecated

func (*StopPalyBackRequest) Descriptor() ([]byte, []int)

Deprecated: Use StopPalyBackRequest.ProtoReflect.Descriptor instead.

func (*StopPalyBackRequest) GetStreamid

func (x *StopPalyBackRequest) GetStreamid() []string

func (*StopPalyBackRequest) ProtoMessage

func (*StopPalyBackRequest) ProtoMessage()

func (*StopPalyBackRequest) ProtoReflect

func (x *StopPalyBackRequest) ProtoReflect() protoreflect.Message

func (*StopPalyBackRequest) Reset

func (x *StopPalyBackRequest) Reset()

func (*StopPalyBackRequest) String

func (x *StopPalyBackRequest) String() string

type UnimplementedPlayBackServiceServer

type UnimplementedPlayBackServiceServer struct {
}

UnimplementedPlayBackServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPlayBackServiceServer) PlayBackStart

func (UnimplementedPlayBackServiceServer) PlayBackStop

func (UnimplementedPlayBackServiceServer) SearchIsupRecord

type UnsafePlayBackServiceServer

type UnsafePlayBackServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePlayBackServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PlayBackServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL