player.go 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package module
  2. // PlayerSha1 one module for sha1
  3. type PlayerSha1 struct {
  4. // special fields
  5. PlayerWebDanmakuAutoscaling bool `json:"player_web_danmaku_autoscaling,omitempty"`
  6. PlayerWebHTML5DanmakuRenderingtype string `json:"player_web_html5_danmaku_renderingtype,omitempty"`
  7. PlayerAppPlaybackMode int `json:"player_app_playback_mode,omitempty"`
  8. PlayerAppPlaybackBackground bool `json:"player_app_playback_background,omitempty"`
  9. PlayerAppDanmakuStrokewidth float64 `json:"player_app_danmaku_strokewidth,omitempty"`
  10. // common fileds
  11. PlayerDanmakuOpacity float64 `json:"player_danmaku_opacity,omitempty"`
  12. PlayerDanmakuSpeed float64 `json:"player_danmaku_speed,omitempty"`
  13. PlayerDanmakuDensity int `json:"player_danmaku_density,omitempty"`
  14. PlayerDanmakuScalingfactor float64 `json:"player_danmaku_scalingfactor,omitempty"`
  15. PlayerDanmakuStrokestyle int `json:"player_danmaku_strokestyle,omitempty"`
  16. PlayerDanmakuFontname string `json:"player_danmaku_fontname,omitempty"`
  17. PlayerDanmakuFontbold bool `json:"player_danmaku_fontbold,omitempty"`
  18. PlayerDanmakuDefensivebottom bool `json:"player_danmaku_defensivebottom,omitempty"`
  19. PlayerDanmakuEnableblocklist bool `json:"player_danmaku_enableblocklist,omitempty"`
  20. PlayerDanmakuBlockrepeat bool `json:"player_danmaku_blockrepeat,omitempty"`
  21. PlayerDanmakuBlocktop bool `json:"player_danmaku_blocktop,omitempty"`
  22. PlayerDanmakuBlockscroll bool `json:"player_danmaku_blockscroll,omitempty"`
  23. PlayerDanmakuBlockbottom bool `json:"player_danmaku_blockbottom,omitempty"`
  24. PlayerDanmakuBlockcolorful bool `json:"player_danmaku_blockcolorful,omitempty"`
  25. PlayerDanmakuBlockcommon bool `json:"player_danmaku_blockcommon,omitempty"`
  26. PlayerDanmakuBlocksubtitle bool `json:"player_danmaku_blocksubtitle,omitempty"`
  27. PlayerDanmakuBlockspecial bool `json:"player_danmaku_blockspecial,omitempty"`
  28. PlayerDanmakuDomain float64 `json:"player_danmaku_domain,omitempty"`
  29. PlayerSubtitleSwitch int `json:"player_subtitle_switch,omitempty"`
  30. }
  31. // Player one module return json
  32. type Player struct {
  33. // special fields
  34. PlayerWebDanmakuAutoscaling bool `json:"player_web_danmaku_autoscaling"`
  35. PlayerWebHTML5DanmakuRenderingtype string `json:"player_web_html5_danmaku_renderingtype"`
  36. PlayerAppPlaybackMode int `json:"player_app_playback_mode"`
  37. PlayerAppPlaybackBackground bool `json:"player_app_playback_background"`
  38. PlayerAppDanmakuStrokewidth float64 `json:"player_app_danmaku_strokewidth"`
  39. // common fileds
  40. PlayerDanmakuOpacity float64 `json:"player_danmaku_opacity"`
  41. PlayerDanmakuSpeed float64 `json:"player_danmaku_speed"`
  42. PlayerDanmakuDensity int `json:"player_danmaku_density"`
  43. PlayerDanmakuScalingfactor float64 `json:"player_danmaku_scalingfactor"`
  44. PlayerDanmakuStrokestyle int `json:"player_danmaku_strokestyle"`
  45. PlayerDanmakuFontname string `json:"player_danmaku_fontname"`
  46. PlayerDanmakuFontbold bool `json:"player_danmaku_fontbold"`
  47. PlayerDanmakuDefensivebottom bool `json:"player_danmaku_defensivebottom"`
  48. PlayerDanmakuEnableblocklist bool `json:"player_danmaku_enableblocklist"`
  49. PlayerDanmakuBlockrepeat bool `json:"player_danmaku_blockrepeat"`
  50. PlayerDanmakuBlocktop bool `json:"player_danmaku_blocktop"`
  51. PlayerDanmakuBlockscroll bool `json:"player_danmaku_blockscroll"`
  52. PlayerDanmakuBlockbottom bool `json:"player_danmaku_blockbottom"`
  53. PlayerDanmakuBlockcolorful bool `json:"player_danmaku_blockcolorful"`
  54. PlayerDanmakuBlockcommon bool `json:"player_danmaku_blockcommon"`
  55. PlayerDanmakuBlocksubtitle bool `json:"player_danmaku_blocksubtitle"`
  56. PlayerDanmakuBlockspecial bool `json:"player_danmaku_blockspecial"`
  57. PlayerDanmakuDomain float64 `json:"player_danmaku_domain"`
  58. PlayerSubtitleSwitch int `json:"player_subtitle_switch"`
  59. }