web_player.go 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package module
  2. // WebPlayerSha1 one module for sha1
  3. type WebPlayerSha1 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. }
  29. // WebPlayer one module return json
  30. type WebPlayer struct {
  31. // special fields
  32. PlayerWebDanmakuAutoscaling bool `json:"player_web_danmaku_autoscaling"`
  33. PlayerWebHTML5DanmakuRenderingtype string `json:"player_web_html5_danmaku_renderingtype"`
  34. PlayerAppPlaybackMode int `json:"player_app_playback_mode"`
  35. PlayerAppPlaybackBackground bool `json:"player_app_playback_background"`
  36. PlayerAppDanmakuStrokewidth float64 `json:"player_app_danmaku_strokewidth"`
  37. // common fileds
  38. PlayerDanmakuOpacity float64 `json:"player_danmaku_opacity"`
  39. PlayerDanmakuSpeed float64 `json:"player_danmaku_speed"`
  40. PlayerDanmakuDensity int `json:"player_danmaku_density"`
  41. PlayerDanmakuScalingfactor float64 `json:"player_danmaku_scalingfactor"`
  42. PlayerDanmakuStrokestyle int `json:"player_danmaku_strokestyle"`
  43. PlayerDanmakuFontname string `json:"player_danmaku_fontname"`
  44. PlayerDanmakuFontbold bool `json:"player_danmaku_fontbold"`
  45. PlayerDanmakuDefensivebottom bool `json:"player_danmaku_defensivebottom"`
  46. PlayerDanmakuEnableblocklist bool `json:"player_danmaku_enableblocklist"`
  47. PlayerDanmakuBlockrepeat bool `json:"player_danmaku_blockrepeat"`
  48. PlayerDanmakuBlocktop bool `json:"player_danmaku_blocktop"`
  49. PlayerDanmakuBlockscroll bool `json:"player_danmaku_blockscroll"`
  50. PlayerDanmakuBlockbottom bool `json:"player_danmaku_blockbottom"`
  51. PlayerDanmakuBlockcolorful bool `json:"player_danmaku_blockcolorful"`
  52. PlayerDanmakuBlockcommon bool `json:"player_danmaku_blockcommon"`
  53. PlayerDanmakuBlocksubtitle bool `json:"player_danmaku_blocksubtitle"`
  54. PlayerDanmakuBlockspecial bool `json:"player_danmaku_blockspecial"`
  55. }