- 한번 해보고 싶어서 만들어봄
/video/{videoId}로 접속시 영상 재생됨 댓글(유저 ID와 유저 이름도 포함)과 유저 이름도 출력
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
</head>
<body>
<video width="320" height="240" autoplay="autoplay" controls>
<source th:src="'/v1/video/stream/'+${videoId}" src="/videos/${videoName}" type="video/mp4">
</video>
<div>
<p th:text="${video.getTitle()}"></p>
<p th:text="${video.owner.getName()}"></p>
<div th:each="comment : *{comments}">
<p th:text="${comment.getMember().getId()}"></p>
<p th:text="${comment.getMember().getName()}"></p>
<p th:text="${comment.getContent()}"></p>
</div>
</div>
</body>
</html>