Porównaj commity

...

3 Commity

Autor SHA1 Wiadomość Data
Namekuji 0fc4e5fbec
update introduction 2023-05-28 08:59:39 -04:00
Namekuji 30cc7930fc
disable avatar conversion 2023-05-28 08:36:24 -04:00
Namekuji 6c4ef49085
reduce sound effect volumes 2023-05-28 08:08:20 -04:00
4 zmienionych plików z 12 dodań i 9 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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,
}),
},
};

Wyświetl plik

@ -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
}

Wyświetl plik

@ -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)
}