-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4c9333
commit 332c968
Showing
3 changed files
with
95 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package migration | ||
|
||
import ( | ||
"github.com/google/uuid" | ||
"github.com/shigde/sfu/internal/activitypub/models" | ||
"github.com/shigde/sfu/internal/auth" | ||
"github.com/shigde/sfu/internal/lobby" | ||
"github.com/shigde/sfu/internal/stream" | ||
) | ||
|
||
func buildLiveStream(video *models.Video, account *auth.Account) *stream.LiveStream { | ||
streamID, _ := uuid.Parse(video.Uuid) | ||
space := stream.NewSpace(video.Channel, account) | ||
lobbyEntity := lobby.NewLobbyEntity(streamID, space.Identifier, video.Instance.Actor.ActorIri) | ||
return stream.NewLiveStream(account, lobbyEntity, space, video) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters