TUM-Dev / gocast

TUMs lecture streaming service.
https://live.rbg.tum.de/
MIT License
177 stars 41 forks source link

Watched state determined automatically #1350

Closed SebiWrn closed 2 months ago

SebiWrn commented 2 months ago

Motivation and Context

Fixes #1312

Description

If progress > 90%, the vod is marked as watched

github-actions[bot] commented 2 months ago

Your Testserver will be ready at https://1350.test.live.mm.rbg.tum.de in a few minutes.

Logins | Kurs1 | Kurs2 | Kurs3 | Kurs4 | | ---------------------------------------- | ------------------------- | ------------------------- | ------------------------- | | public | public | loggedin | enrolled | | prof1 | prof1 | prof2 | prof1
prof2 | | student1
student2
student3 | student1
student2 | student2
student3 | student1
student2 |
SebiWrn commented 2 months ago

I fixed another bug, that the watched state isn't set in the database and I added, that watched is set if only silence is after the current timestamp.

SebiWrn commented 2 months ago

Nvm, I have to have a look into it, in the tumLiveContext, the stream is null

joschahenningsen commented 2 months ago

Nvm, I have to have a look into it, in the tumLiveContext, the stream is null

Probably because there is no :streamID in the url of that endpoint, right?

SebiWrn commented 2 months ago

I fixed it by adding a MockDao to the test. Now everything should be working fine