Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this.preferredCodec.split is not a function #48

Open
CreatoonAuraML opened this issue Jun 26, 2023 · 1 comment
Open

this.preferredCodec.split is not a function #48

CreatoonAuraML opened this issue Jun 26, 2023 · 1 comment

Comments

@CreatoonAuraML
Copy link

CreatoonAuraML commented Jun 26, 2023

Describe the bug

When attempting to use pixel streaming on Firefox, an error occurs. The issue lies within the metaeditor4-ue package during debugging. Specifically, there is a problem with setting the preferredCodec for the Chrome browser. The relevant code snippet is as follows:

 constructor(
        options: RTCConfiguration,
        config: Config,
        preferredCodec: string
    ) {
        console.log('Trying looking pc: ', preferredCodec)
        this.config = config;
        this.createPeerConnection(options, preferredCodec);
    }

In the above code, the preferredCodec is inferred as a string, which is correct for the Chrome browser. To investigate further, I logged the preferredCodec values for both Chrome and Firefox browsers. Here are the respective console logs:

// chrome
console.log(prefferedCodec); // H264 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
// firefox
console.log(prefferedCodec); 

// Array [
//     "H264 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f",
//     "H264 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f"
// ]```

As observed, the ```preferredCodec``` in Firefox is an Array, whereas it is expected to be a String.
@CreatoonAuraML
Copy link
Author

@markolofsen Hey do you have any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant