Skip to content

Enable VP9 SVC with webrtc m94#131

Merged
jmillan merged 6 commits intoversatica:v3from
harvestsure:v3
Dec 9, 2021
Merged

Enable VP9 SVC with webrtc m94#131
jmillan merged 6 commits intoversatica:v3from
harvestsure:v3

Conversation

@harvestsure
Copy link
Copy Markdown

@harvestsure harvestsure commented Sep 28, 2021

Enable VP9 SVC with webrtc m94 webrtc::RtpEncodingParameters.scalability_mode

Copy link
Copy Markdown
Member

@ibc ibc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll continue review later

Comment thread src/Handler.cpp Outdated

offer = this->pc->CreateOffer(options);
auto localSdpObject = sdptransform::parse(offer);
json localSdpObject = sdptransform::parse(offer);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing, just my personal habit. You can ignore it

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot ignore it, it's part of your proposed PR 😀

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll pay attention next time 🙂

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes please, move it back to auto.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have modified it

Comment thread src/Handler.cpp Outdated
{
// Panic here. Try to undo things.
transceiver->SetDirection(webrtc::RtpTransceiverDirection::kInactive);
//transceiver->SetDirection(webrtc::RtpTransceiverDirection::kInactive);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this commented? If it doesn't make sense let's just remove the line. But why?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just mark it,maybe i will change lower version of webrtc

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand. How does lower version of webrtc affect here? My question is: why is that line commented in your PR?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm careless. The old interface has been deprecated:
RTC_DEPRECATED virtual void SetDirection(
RtpTransceiverDirection new_direction);

Comment thread src/mediasoupclient.cpp
Comment thread src/sdp/Utils.cpp Outdated

return (
jsonAttributeIt->get<std::string>() == "cname" && jsonIdIt->get<uint32_t>() == firstSsrc);
jsonAttributeIt->get<std::string>() == "cname" /*&& jsonIdIt->get<uint32_t>() == firstSsrc*/);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I refer to project mediasoup-client,
`const ssrcCnameLine = offerMediaObject.ssrcs
.find((line: any) => line.attribute === 'cname');

if (!ssrcCnameLine)
	throw new Error('a=ssrc line with cname information not found');`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, then please remove the commented code. @jmillan do you know why we were doing this different here than in mediasoup-client? It doesn't make any sense to me.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed🙂

Comment thread src/sdp/Utils.cpp
Copy link
Copy Markdown
Member

@ibc ibc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@ibc
Copy link
Copy Markdown
Member

ibc commented Sep 29, 2021

@jmillan anything else from your side? should we merge and release?

@ibc
Copy link
Copy Markdown
Member

ibc commented Sep 29, 2021

@harvestsure I'd appreciate a PR in the mediasoup-website project with updated API documentation.

@jmillan
Copy link
Copy Markdown
Member

jmillan commented Sep 30, 2021

@jmillan anything else from your side? should we merge and release?

It looks good to me. I'Il merge it and release tomorrow if you don't do it before.

@ibc
Copy link
Copy Markdown
Member

ibc commented Oct 10, 2021

Sorry for the delay, terribly busy. Will check this in next days but cannot provide with a proper ETA yet.

@ibc
Copy link
Copy Markdown
Member

ibc commented Nov 14, 2021

@jmillan ping

@jmillan
Copy link
Copy Markdown
Member

jmillan commented Nov 22, 2021

I'm testing this PR with m89.

@jmillan
Copy link
Copy Markdown
Member

jmillan commented Nov 22, 2021

Actually m89 fails to compile with Xcode 13 and it's already very old. I'll try the newest stable branch instead.

@jmillan
Copy link
Copy Markdown
Member

jmillan commented Nov 23, 2021

@harvestsure,

You didn't modify the tests, which do not compile. Please, adapt the test files accordingly and also, let me ask you to target this PR against the new libmediasoupclient which uses M94.

@harvestsure harvestsure changed the title Enable VP9 SVC with webrtc m89 Enable VP9 SVC with webrtc m94 Nov 26, 2021
@harvestsure
Copy link
Copy Markdown
Author

@harvestsure,

You didn't modify the tests, which do not compile. Please, adapt the test files accordingly and also, let me ask you to target this PR against the new libmediasoupclient which uses M94.

I have compiled using the M94 version with test files.

@jmillan
Copy link
Copy Markdown
Member

jmillan commented Nov 29, 2021

There's a warning here @harvestsure,

Screenshot 2021-11-29 at 13 38 08

Also, since this changes the API we'd appreciate a PR in the mediasoup-website project with updated API documentation

@harvestsure
Copy link
Copy Markdown
Author

There's a warning here @harvestsure,

Screenshot 2021-11-29 at 13 38 08

Also, since this changes the API we'd appreciate a PR in the mediasoup-website project with updated API documentation

I'll deal with it later

@jmillan jmillan merged commit 6e30a33 into versatica:v3 Dec 9, 2021
@jmillan
Copy link
Copy Markdown
Member

jmillan commented Dec 9, 2021

Thanks, the doc will be updated.

jpgneves pushed a commit to daily-co/libmediasoupclient-public that referenced this pull request Dec 6, 2022
* Enable VP9 SVC with webrtc m89 webrtc::RtpEncodingParameters.scalability_mode
Co-authored-by: yangcj <gupar@qq.com>
jpgneves pushed a commit to daily-co/libmediasoupclient-public that referenced this pull request Dec 6, 2022
* Enable VP9 SVC with webrtc m89 webrtc::RtpEncodingParameters.scalability_mode
Co-authored-by: yangcj <gupar@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants