diff --git a/build.sh b/build.sh index d064652..02fae51 100644 --- a/build.sh +++ b/build.sh @@ -116,7 +116,11 @@ function FixArgs() { exit 1 fi if [ ! "$WEB_VERSION" ]; then - GetLatestWebVersion "synctv-org/synctv-web" + if [ "$VERSION" == "dev" ]; then + WEB_VERSION="dev" + else + GetLatestWebVersion "synctv-org/synctv-web" + fi fi LDFLAGS="$LDFLAGS \ -X 'github.com/synctv-org/synctv/internal/conf.Version=$VERSION' \ diff --git a/internal/conf/rtmp.go b/internal/conf/rtmp.go index a358329..ef9d873 100644 --- a/internal/conf/rtmp.go +++ b/internal/conf/rtmp.go @@ -6,7 +6,7 @@ type RtmpConfig struct { CustomPublishHost string `yaml:"custom_publish_host" lc:"publish host (default use http header host)" env:"RTMP_CUSTOM_PUBLISH_HOST"` RtmpPlayer bool `yaml:"rtmp_player" lc:"enable rtmp player (default: false)" env:"RTMP_PLAYER"` - HlsPlayer bool `yaml:"hls_player" lc:"enable hls player (default: false)" env:"HLS_PLAYER"` + HlsPlayer bool `yaml:"hls_player" lc:"enable hls player (default: true)" env:"HLS_PLAYER"` } func DefaultRtmpConfig() RtmpConfig { @@ -15,6 +15,6 @@ func DefaultRtmpConfig() RtmpConfig { Port: 0, CustomPublishHost: "", RtmpPlayer: false, - HlsPlayer: false, + HlsPlayer: true, } }