Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
GeoFlyApi
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GeoFly
GeoFlyApi
Commits
711ecb5b
Commit
711ecb5b
authored
Mar 05, 2026
by
guoxuejian
Committed by
gdj
Mar 05, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add endpoints for restarting and refreshing live streams with appropriate lifecycle events
parent
32587c42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
sample/src/main/java/com/dji/sample/manage/controller/LiveStreamController.java
+22
-0
No files found.
sample/src/main/java/com/dji/sample/manage/controller/LiveStreamController.java
View file @
711ecb5b
...
...
@@ -100,6 +100,28 @@ public class LiveStreamController {
}
/**
* Restart live stream: stop then start, and broadcast restart lifecycle events.
* @param liveParam restart parameters (workspace_id, video_id required).
* @return
*/
@PostMapping
(
"/streams/restart"
)
public
HttpResultResponse
liveRestart
(
@RequestBody
LiveTypeDTO
liveParam
)
{
return
liveStreamService
.
liveRestart
(
liveParam
);
}
/**
* Refresh live stream: frontend-controlled refresh flow.
* Executes refreshStop (device stop without clearing sessions) + start + broadcast.
* Other clients reuse session_id and wait for MQTT push to auto-recover.
* @param liveParam refresh parameters (workspace_id, video_id, url_type required).
* @return
*/
@PostMapping
(
"/streams/refresh"
)
public
HttpResultResponse
liveRefresh
(
@RequestBody
LiveTypeDTO
liveParam
)
{
return
liveStreamService
.
liveRefresh
(
liveParam
);
}
/**
* Session-aware stop: only removes the specified sessionId's viewer session.
* Actual device stop is triggered only when all viewers have left.
* @param liveParam Live streaming parameters (must include session_id from liveStart response).
...
...
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