-
Notifications
You must be signed in to change notification settings - Fork 0
/
streamdeck.go
59 lines (52 loc) · 1.22 KB
/
streamdeck.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package server
import (
// "fmt"
fiber "github.com/gofiber/fiber/v2"
// utils "github.com/0187773933/FireC2Server/v1/utils"
)
func ( s *Server ) StreamDeckSpotify( c *fiber.Ctx ) ( error ) {
go s.TV.Prepare()
s.SpotifyNextPlaylistWithShuffle( c )
return c.JSON( fiber.Map{
"url": "/streamdeck/spotify" ,
"result": true ,
})
}
func ( s *Server ) StreamDeckYouTube( c *fiber.Ctx ) ( error ) {
go s.TV.Prepare()
s.YouTubeLiveNext( c )
return c.JSON( fiber.Map{
"url": "/streamdeck/youtube" ,
"result": true ,
})
}
func ( s *Server ) StreamDeckDisney( c *fiber.Ctx ) ( error ) {
go s.TV.Prepare()
s.DisneyMovieNext( c )
return c.JSON( fiber.Map{
"url": "/streamdeck/disney" ,
"result": true ,
})
}
func ( s *Server ) StreamDeckTwitch( c *fiber.Ctx ) ( error ) {
go s.TV.Prepare()
s.TwitchLiveNext( c )
return c.JSON( fiber.Map{
"url": "/streamdeck/twitch" ,
"result": true ,
})
}
func ( s *Server ) StreamDeckEscapeRope( c *fiber.Ctx ) ( error ) {
s.TV.Prepare()
return c.JSON( fiber.Map{
"url": "/streamdeck/escape-rope" ,
"result": true ,
})
}
func ( s *Server ) StreamDeckHeart( c *fiber.Ctx ) ( error ) {
s.TV.Prepare()
return c.JSON( fiber.Map{
"url": "/streamdeck/heart" ,
"result": true ,
})
}