Giter Club home page Giter Club logo

Comments (13)

Pratik-Hub avatar Pratik-Hub commented on July 30, 2024 6

Guys I am creating my own Video Chat App but not using this I have used react and etc... If you want to include share screen in this wonder project of Zoom-Clone then You may use my API and do it!. I will release it in few weeks!!!!

Is That Cool!!! 😎😎😎

from nodejs-zoom-clone.

ChitrangSharma avatar ChitrangSharma commented on July 30, 2024 1

For all of you guys, who want to integrate Screen-Sharing option in the project .
you can get what you want to build here in this channel link below..
https://youtu.be/X8QHHB7DA90
I hope it will help you

from nodejs-zoom-clone.

idsus avatar idsus commented on July 30, 2024

I need same help I will support this question so people see it.

from nodejs-zoom-clone.

micaiah-effiong avatar micaiah-effiong commented on July 30, 2024

Also have it in mind the mobile browsers don't support screen sharing

from nodejs-zoom-clone.

Pratik-Hub avatar Pratik-Hub commented on July 30, 2024

Also have it in mind the mobile browsers don't support screen sharing

It does works Man

Maybe I am wrong. If yes please forgive me. I am testing my API and it's working correctly in all devices including screenshare in mobile

from nodejs-zoom-clone.

ChandanRabha avatar ChandanRabha commented on July 30, 2024

Yes please i have been trying to find sources where screen sharing is possible. I even tried changing the mediastream of my webcam video stream to screen share video stream but it then the screen on peer side just freezes as soon as i changed the video stream. Would really be big help if someone finds a way. Thank You

from nodejs-zoom-clone.

pankajjossy1 avatar pankajjossy1 commented on July 30, 2024

Guys I am creating my own Video Chat App but not using this I have used react and etc... If you want to include share screen in this wonder project of Zoom-Clone then You may use my API and do it!. I will release it in few weeks!!!!

Is That Cool!!! 😎😎😎

how pls tell how can i add screen share

from nodejs-zoom-clone.

ChitrangSharma avatar ChitrangSharma commented on July 30, 2024

Guys I am creating my own Video Chat App but not using this I have used react and etc... If you want to include share screen in this wonder project of Zoom-Clone then You may use my API and do it!. I will release it in few weeks!!!!
Is That Cool!!! 😎😎😎

how pls tell how can i add screen share

well if you want to make it, super quick I have given a link there , okay let me paste the link here as well https://youtu.be/X8QHHB7DA90
in this video you will get how to make screen sharing possible in this application .Thanks.

from nodejs-zoom-clone.

Boopalan-M avatar Boopalan-M commented on July 30, 2024

can you please let me knew how can i add a screen sharing option to it

i also having that question.Are u acheived that one

from nodejs-zoom-clone.

ttejas123 avatar ttejas123 commented on July 30, 2024

I added screenShare via replacing video stream with screen share.
and user who started screen share == can't see screen share
other user connected == can see screen share;
for that I use this code down below

`//IN HTML
//add button
//IN JS FILE
//screenShare
const screenshare = () =>{
navigator.mediaDevices.getDisplayMedia({
video:{
cursor:'always'
},
audio:{
echoCancellation:true,
noiseSupprission:true
}

}).then(stream =>{
let videoTrack = stream.getVideoTracks()[0];
videoTrack.onended = function(){
stopScreenShare();
}
for (let x=0;x<currentPeer.length;x++){

   let sender = currentPeer[x].getSenders().find(function(s){  //replace video track 
      return s.track.kind == videoTrack.kind;
    })
    
    sender.replaceTrack(videoTrack);

}
})

}

function stopScreenShare(){
let videoTrack = myVideoStream.getVideoTracks()[0];
for (let x=0;x<currentPeer.length;x++){
let sender = currentPeer[x].getSenders().find(function(s){
return s.track.kind == videoTrack.kind;
})
sender.replaceTrack(videoTrack);
}
}`

from nodejs-zoom-clone.

Boopalan-M avatar Boopalan-M commented on July 30, 2024

I added screenShare via replacing video stream with screen share.
and user who started screen share == can't see screen share
other user connected == can see screen share;
for that I use this code down below

`//IN HTML
//add button
//IN JS FILE
//screenShare
const screenshare = () =>{
navigator.mediaDevices.getDisplayMedia({
video:{
cursor:'always'
},
audio:{
echoCancellation:true,
noiseSupprission:true
}

}).then(stream =>{
let videoTrack = stream.getVideoTracks()[0];
videoTrack.onended = function(){
stopScreenShare();
}
for (let x=0;x<currentPeer.length;x++){

   let sender = currentPeer[x].getSenders().find(function(s){  //replace video track 
      return s.track.kind == videoTrack.kind;
    })
    
    sender.replaceTrack(videoTrack);

}
})

}

function stopScreenShare(){
let videoTrack = myVideoStream.getVideoTracks()[0];
for (let x=0;x<currentPeer.length;x++){
let sender = currentPeer[x].getSenders().find(function(s){
return s.track.kind == videoTrack.kind;
})
sender.replaceTrack(videoTrack);
}
}`

i use this code i didn't get any error. but the screen is not visible to others..

from nodejs-zoom-clone.

idsus avatar idsus commented on July 30, 2024

Thanks!

from nodejs-zoom-clone.

anujmittal2308 avatar anujmittal2308 commented on July 30, 2024

https://stackoverflow.com/questions/72003682/cant-fix-expresspeerserver-is-not-a-function-in-server-js

from nodejs-zoom-clone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.