Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
car-controlserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenzhongjian
car-controlserver
Commits
171c51f4
Commit
171c51f4
authored
Nov 26, 2026
by
huangtingjiang@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
恢复 Chromium 推流入口为 index.html
parent
ddae56c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
browser_open.c
modules/browser/browser_open.c
+3
-3
No files found.
modules/browser/browser_open.c
View file @
171c51f4
...
...
@@ -12,7 +12,7 @@
#define BROWSER_URL_SIZE 768
#define MD5_HEX_SIZE 33
#define BROWSER_
TEST_PAGE "index-test.html"
/* 临时推流测试入口 */
#define BROWSER_
STREAM_PAGE "index.html"
static
char
s_webcam
[
2048
];
//存放启动火狐网站命令
static
char
s_active_stream_url
[
BROWSER_URL_SIZE
];
/* 最近一次启动 chromium 的推流网址 */
...
...
@@ -580,9 +580,9 @@ static int browser_build_stream_urls(const char *url, char *base_url, size_t bas
while
(
prefix_end
[
-
1
]
!=
'/'
)
{
prefix_end
--
;
}
page
=
BROWSER_
TEST
_PAGE
;
page
=
BROWSER_
STREAM
_PAGE
;
}
else
{
page
=
"/"
BROWSER_
TEST
_PAGE
;
page
=
"/"
BROWSER_
STREAM
_PAGE
;
}
}
int
prefix_length
=
snprintf
(
base_url
,
base_size
,
"%.*s%s"
,
(
int
)(
prefix_end
-
url
),
url
,
page
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment