File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,8 @@ namespace info
266
266
{
267
267
case PushState::Ready:
268
268
return " ready" ;
269
+ case PushState::Connecting:
270
+ return " connecting" ;
269
271
case PushState::Pushing:
270
272
return " pushing" ;
271
273
case PushState::Stopping:
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ namespace info
17
17
enum class PushState : int8_t
18
18
{
19
19
Ready,
20
+ Connecting,
20
21
Pushing,
21
22
Stopping,
22
23
Stopped,
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ namespace pub
45
45
bool PushSession::Start ()
46
46
{
47
47
GetPush ()->UpdatePushStartTime ();
48
- GetPush ()->SetState (info::Push::PushState::Pushing);
48
+ GetPush ()->SetState (info::Push::PushState::Connecting);
49
+
49
50
50
51
ov::String rtmp_url;
51
52
if (GetPush ()->GetStreamKey ().IsEmpty ())
@@ -120,6 +121,8 @@ namespace pub
120
121
return false ;
121
122
}
122
123
124
+ GetPush ()->SetState (info::Push::PushState::Pushing);
125
+
123
126
logtd (" PushSession(%d) has started." , GetId ());
124
127
125
128
return Session::Start ();
You can’t perform that action at this time.
0 commit comments