kopia lustrzana https://codeberg.org/nmkj/audon
Porównaj commity
3 Commity
85979a7ebf
...
0fc4e5fbec
Autor | SHA1 | Data |
---|---|---|
Namekuji | 0fc4e5fbec | |
Namekuji | 30cc7930fc | |
Namekuji | 6c4ef49085 |
|
@ -10,7 +10,9 @@
|
|||
|
||||
Audio + Mastodon = Audon
|
||||
|
||||
Audon is a service of realtime audio streaming for Mastodon.
|
||||
Audon is a service of realtime audio chat for Mastodon, Akkoma, GoToSocial, and Calckey.
|
||||
|
||||
Other Fediverse platforms supporting Mastodon API may work, but not tested (yet).
|
||||
|
||||
## Tech Stack
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@ export default {
|
|||
sounds: {
|
||||
boop: new Howl({
|
||||
src: [boopSound],
|
||||
volume: 0.7,
|
||||
volume: 0.5,
|
||||
}),
|
||||
message: new Howl({
|
||||
src: [messageSound],
|
||||
|
@ -85,7 +85,7 @@ export default {
|
|||
}),
|
||||
request: new Howl({
|
||||
src: [requestSound],
|
||||
volume: 0.7,
|
||||
volume: 0.5,
|
||||
}),
|
||||
},
|
||||
};
|
||||
|
|
|
@ -93,10 +93,10 @@ func (u *AudonUser) GetIndicator(ctx context.Context, fnew []byte, room *Room) (
|
|||
return
|
||||
}
|
||||
|
||||
indicator, err = u.createGIF(newImg, room.IsHost(u) || room.IsCoHost(u))
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
// indicator, err = u.createGIF(newImg, room.IsHost(u) || room.IsCoHost(u))
|
||||
// if err != nil {
|
||||
// return
|
||||
// }
|
||||
|
||||
return indicator, origImg, isGIF, nil
|
||||
}
|
||||
|
|
5
room.go
5
room.go
|
@ -383,7 +383,8 @@ func joinRoomHandler(c echo.Context) (err error) {
|
|||
}
|
||||
|
||||
// Generate indicator GIF
|
||||
indicator, original, isGIF, err := user.GetIndicator(c.Request().Context(), fnew, room)
|
||||
// indicator, original, isGIF, err := user.GetIndicator(c.Request().Context(), fnew, room)
|
||||
_, original, isGIF, err := user.GetIndicator(c.Request().Context(), fnew, room)
|
||||
origMime := "image/png"
|
||||
if isGIF {
|
||||
origMime = "image/gif"
|
||||
|
@ -393,7 +394,7 @@ func joinRoomHandler(c echo.Context) (err error) {
|
|||
return echo.NewHTTPError(http.StatusInternalServerError)
|
||||
}
|
||||
resp.Original = fmt.Sprintf("data:%s;base64,%s", origMime, base64.StdEncoding.EncodeToString(original))
|
||||
resp.Indicator = fmt.Sprintf("data:image/gif;base64,%s", base64.StdEncoding.EncodeToString(indicator))
|
||||
// resp.Indicator = fmt.Sprintf("data:image/gif;base64,%s", base64.StdEncoding.EncodeToString(indicator))
|
||||
} else if err != nil {
|
||||
c.Logger().Error(err)
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue