#295 上映会のし組み作り

Closed
opened 1 week ago by みてるぞ · 0 comments

/theatres

誰かが再生リストっぽい感じで上映会場を開いて,そこに人が集まる感じにすればいいのかな.
必要なリソース多さぅだなー.

theatrestheatre_poststheatre_comments 作ればおほむね行ける?
theatres(仮)と theatres_comments 作ることにした.
あと theatre_watching_users も.

ルーティング
  • GET /theatres/:id
  • PUT /theatres/:id/watching (毎秒叩く;有効期限の更新;ホストかどうかの情報や現在再生中の投稿情報も来る)
  • GET /theatres/:id/comments
  • POST /theatres/:id/comments
  • DELETE /theatres/:id/watching (ページ遷移時)
  • PATCH /theatres/:id/next_post (再生終了時,ホストが叩く)
動作イメージ
  1. 上映会場に入ると,今視聴中のユーザが何人ゐるかの判定が始まり,誰もゐなければホストとなる.
  2. ホストは上映会の状態をサーバに送る役割を持つ;現状次の投稿取得程度のことしかしない.
  3. 上映会では,current_post や current_post_started_at などの情報から対応する投稿を表示し,再生位置も合はせる.
  4. ホストが不在となった場合は最も失効が先のユーザにホスト権を渡す.ホストの不在はホストの視聴情報の失効をもって判断する.
  5. ホストかどうかに限らず,上映会から離れる操作をした者については即時失効とする.
問題

2 窓や複数デバイスで同じユーザが入ると狂ひ出す.ここは,今後の課題とする.


ここから先は未来の話.

自動追加とか,さぅいふの欲しいよね.
あと常に全動画再生するみたぃなのは欲しかったりする.

theatres.kind とかいふコラム作って,それが 1 だったらとりま全件にしとくか……

ユーザが自由に上映会開いたりできるのはまた後の実装でいいよね.
逐次再生か,ランダム再生か,さぅいふのも選べるとよきかと.

`/theatres` 誰かが再生リストっぽい感じで上映会場を開いて,そこに人が集まる感じにすればいいのかな. 必要なリソース多さぅだなー. ~~`theatres` と `theatre_posts` と `theatre_comments` 作ればおほむね行ける?~~ `theatres`(仮)と `theatres_comments` 作ることにした. あと `theatre_watching_users` も. ##### ルーティング - GET /theatres/:id - PUT /theatres/:id/watching (毎秒叩く;有効期限の更新;ホストかどうかの情報や現在再生中の投稿情報も来る) - GET /theatres/:id/comments - POST /theatres/:id/comments - ~~DELETE /theatres/:id/watching (ページ遷移時)~~ - PATCH /theatres/:id/next_post (再生終了時,ホストが叩く) ##### 動作イメージ 1. 上映会場に入ると,今視聴中のユーザが何人ゐるかの判定が始まり,誰もゐなければホストとなる. 2. ホストは上映会の状態をサーバに送る役割を持つ;現状次の投稿取得程度のことしかしない. 3. 上映会では,current_post や current_post_started_at などの情報から対応する投稿を表示し,再生位置も合はせる. 4. ホストが不在となった場合は最も失効が先のユーザにホスト権を渡す.ホストの不在はホストの視聴情報の失効をもって判断する. 5. ホストかどうかに限らず,上映会から離れる操作をした者については即時失効とする. ##### 問題 2 窓や複数デバイスで同じユーザが入ると狂ひ出す.ここは,今後の課題とする. --- ここから先は未来の話. 自動追加とか,さぅいふの欲しいよね. あと常に全動画再生するみたぃなのは欲しかったりする. `theatres.kind` とかいふコラム作って,それが 1 だったらとりま全件にしとくか…… ユーザが自由に上映会開いたりできるのはまた後の実装でいいよね. 逐次再生か,ランダム再生か,さぅいふのも選べるとよきかと.
みてるぞ added the
area/backend
label 1 week ago
みてるぞ added the
type/enhancement
label 1 week ago
みてるぞ added the
P0
label 1 week ago
みてるぞ added the
status/ready
label 1 week ago
みてるぞ referenced this issue from a commit 1 week ago
みてるぞ removed the
status/ready
label 1 week ago
みてるぞ added the
status/in-progress
label 1 week ago
みてるぞ added the
area/frontend
label 1 week ago
みてるぞ started working 1 week ago
みてるぞ referenced this issue from a commit 1 week ago
みてるぞ referenced this issue from a commit 1 week ago
みてるぞ cancelled time tracking 1 week ago
みてるぞ started working 1 week ago
みてるぞ stopped working 1 week ago
1h 4min 31s
みてるぞ referenced this issue from a commit 1 week ago
みてるぞ referenced this issue from a commit 1 week ago
みてるぞ referenced this issue from a commit 1 week ago
みてるぞ referenced this issue from a commit 1 week ago
みてるぞ removed the
P0
label 6 days ago
みてるぞ removed the
status/in-progress
label 6 days ago
みてるぞ closed this issue 6 days ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Total Time Spent: 1h 4min 31s
みてるぞ
1h 4min 31s
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.