Skip to content

Commit

Permalink
fix: streaming 화면 크기 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
van1164 committed Apr 22, 2024
1 parent 2a568f3 commit cc99ebf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions live-streamming/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ rtmp {
hls_path /tmp/hls;
hls_cleanup off;
hls_fragment 3;
hls_sync 500ms
hls_playlist_length 60;
hls_base_url https://video-share.shop/api/v1/stream/ts/;

Expand Down
4 changes: 1 addition & 3 deletions src/main/kotlin/com/KY/KoreanYoutube/stream/StreamService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ class StreamService(
}

fun startStream(key: String): Flux<ServerSentEvent<String>> {
val streamPath = Paths.get("stream")

val filePath = "/tmp/hls/$key"
logger.info{"==========================startStream=========================="}
val m3u8Path = Paths.get(File.separatorChar+"tmp",File.separatorChar + "hls", File.separatorChar + key,File.separatorChar + "index.m3u8" )

//Flux.merge(checkStreamStart(m3u8Path),startStreamListen(streamPath, key, m3u8Path, filePath)).subscribeOn(Schedulers.parallel()).subscribe()
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/templates/streamDetail.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<script src="https://vjs.zencdn.net/8.3.0/video.min.js"></script>
<style>
video {
max-width: 500px;
max-width: 1000px;
width: 100%;
max-height: 500px;
max-height: 1000px;
height: 100%;
object-fit: fill;
}
Expand Down

0 comments on commit cc99ebf

Please sign in to comment.