Skip to content

dolong2/video_streaming_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

video_streaming_server

  • 한번 해보고 싶어서 만들어봄

video.html

/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>

About

동영상을 다루는 서버 만들기

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages