[フォトアルバム]動画の再生を一覧画面か詳細画面を選べるようにしました。#2308
Merged
Conversation
iPhoneの使用時に、通信環境の良くないところでは、動画が多数あると再生できずに、数が少ないと再生できる現象を経験しています。 そのため、一覧画面で再生できるパターンと詳細画面でひとつずつ再生できるパターンを設定できるようにしました。
Contributor
Author
Contributor
Author
Contributor
Author
Contributor
Author
gakigaki
requested changes
Dec 12, 2025
Contributor
gakigaki
left a comment
There was a problem hiding this comment.
ご対応ありがとうございます。
動画がたくさんあるフォトアルバムだと、とても有効な表示形式だと思います。
コメントを参照の上、ご対応をお願いします。
| */ | ||
| public function detail($request, $page_id, $frame_id, $photoalbum_content_id) | ||
| { | ||
| // 対象のデータを取得して詳細画面を表示する。 |
Contributor
There was a problem hiding this comment.
detail() で PhotoalbumContent::find() 結果の存在チェックやバケツ一致確認がありません。
存在しない/他アルバムのIDを指定すると 500 になるか、別アルバムの動画がこのフレームで再生・パンくず表示されます。
index() と同様にバケツの確認をし、さらにコンテンツの存在確認、見つからなければ 404リダイレクトする必要があります。
| /** | ||
| * 表示する・表示しない区分 | ||
| */ | ||
| final class PhotoalbumPlayviewType extends EnumsBase |
Contributor
There was a problem hiding this comment.
このクラスがどこからも参照されておらず、ラジオの値はリテラル値 0/1 になっています。
未使用なら削除するか、ラジオのラベルと値で利用するかして、混乱を避けたいです。
| <label class="custom-control-label" | ||
| for="{{ "play_view_1" }}" | ||
| id="{{ "label_play_view_1" }}"> | ||
| 一覧はサムネイル画像のみで詳細画面で再生する |
Contributor
There was a problem hiding this comment.
「一覧」の対になるので、「詳細画面で再生する」で十分伝わると思います。
|
|
||
| {{-- 詳細画面がある場合の一覧での説明表示文字数 --}} | ||
| <div class="form-group row"> | ||
| <label class="{{$frame->getSettingLabelClass(true)}}">{{PhotoalbumFrameConfig::enum[PhotoalbumFrameConfig::description_list_length]}}</label> |
Contributor
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





概要
iPhoneの使用時に、通信環境の良くないところでは、動画が多数あると再生できずに、数が少ないと再生できる現象を経験しています。 そのため、一覧画面で再生できるパターンと詳細画面でひとつずつ再生できるパターンを設定できるようにしました。
レビュー完了希望日
関連Pull requests/Issues
参考
DB変更の有無
無し
チェックリスト