mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Make mp4 the default streaming for now
This commit is contained in:
parent
fc68ebb312
commit
000b76e13f
@ -178,15 +178,12 @@ http {
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
||||
location /restream/ {
|
||||
|
||||
location ~ /mp4/(.*)$ {
|
||||
proxy_pass http://go2rtc/api/stream.mp4?src=$1;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
location ~ /restream/mp4/(.*)$ {
|
||||
proxy_pass http://go2rtc/api/stream.mp4?src=$1;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
||||
location /go2rtc/ {
|
||||
|
||||
@ -524,13 +524,12 @@ class RestreamConfig(FrigateBaseModel):
|
||||
class CameraLiveSourceEnum(str, Enum):
|
||||
jsmpeg = "jsmpeg"
|
||||
mp4 = "mp4"
|
||||
webrtc = "webrtc"
|
||||
|
||||
|
||||
class CameraLiveConfig(FrigateBaseModel):
|
||||
height: int = Field(default=720, title="Live camera view height")
|
||||
quality: int = Field(default=8, ge=1, le=31, title="Live camera view quality")
|
||||
source: CameraLiveSourceEnum = Field(default=CameraLiveSourceEnum.restream)
|
||||
source: CameraLiveSourceEnum = Field(default=CameraLiveSourceEnum.mp4)
|
||||
|
||||
|
||||
class CameraUiConfig(FrigateBaseModel):
|
||||
|
||||
@ -99,7 +99,6 @@ export default function Camera({ camera }) {
|
||||
<Fragment>
|
||||
<div style={`max-height: ${cameraConfig.live.height}px; max-width: ${liveWidth}px`}>
|
||||
<VideoPlayer
|
||||
audio={false}
|
||||
live={true}
|
||||
options={{
|
||||
autoplay: true,
|
||||
@ -123,7 +122,7 @@ export default function Camera({ camera }) {
|
||||
player = (
|
||||
<Fragment>
|
||||
<div>
|
||||
Not implemented
|
||||
webRTC not implemented
|
||||
</div>
|
||||
</Fragment>
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user