model.go 837 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package model
  2. import "time"
  3. type RtcMediaSource struct {
  4. SourceID uint32
  5. ChannelID uint64
  6. UserID uint64
  7. Type uint8
  8. Codec string
  9. MediaSpecific string
  10. Status uint8
  11. }
  12. type RtcChannel struct {
  13. ChannelID uint64
  14. OwnerUserID uint64
  15. Type uint8
  16. Status uint8
  17. Cluster string
  18. }
  19. type RtcCall struct {
  20. CallID uint32
  21. UserID uint64
  22. ChannelID uint64
  23. Version uint32
  24. Token string
  25. Status uint8
  26. JoinTime time.Time
  27. LeaveTime time.Time
  28. }
  29. type RtcMediaPublish struct {
  30. UserID uint64
  31. CallID uint32
  32. ChannelID uint64
  33. Switch uint8
  34. Width uint32
  35. Height uint32
  36. FrameRate uint8
  37. VideoCodec string
  38. VideoProfile string
  39. Channel uint8
  40. SampleRate uint32
  41. AudioCodec string
  42. Bitrate uint32
  43. MixConfig string
  44. }