Forum Discussion
Image proccessing on MS Teams
mkemalgokce- Thanks for reporting your issue.
Could you please elaborate your requirement, so that we can try it from our end.
- mkemalgokceMay 09, 2023Copper ContributorThanks for your answer. I am using teams-js extension. I want to access my camera frames or other peers camera frames on live meeting from teams-js. Is there any way to do this? Have a nice days..
- Sayali-MSFTMay 11, 2023
Microsoft
mkemalgokce - Could you please try with the below sample code-
const CaptureImage = () => { const [capturedImage] = useState(''); const [capturedImages, setCapturedImages] = useState<any[]>([]); useEffect(() => { // initializing microsoft teams sdk microsoftTeams.app.initialize() }) // Method to validate before capturing media function captureMultipleImages(mediaCount: number) { // Method to ask for image capture permission and then select media let imageProp: microsoftTeams.media.ImageProps = { sources: [microsoftTeams.media.Source.Camera, microsoftTeams.media.Source.Gallery], startMode: microsoftTeams.media.CameraStartMode.Photo, ink: false, cameraSwitcher: false, textSticker: false, enableFilter: true, }; let mediaInput: microsoftTeams.media.MediaInputs = { mediaType: microsoftTeams.media.MediaType.Image, maxMediaCount: mediaCount, imageProps: imageProp };Also refer the below sample-
Microsoft-Teams-Samples/CaptureImage.tsx at main · OfficeDev/Microsoft-Teams-Samples · GitHub
- mkemalgokceMay 11, 2023Copper Contributor
Sayali-MSFT It's not about my problem. I want to get camera frames during live meeting. It can be possible with meeting app ? How can I get camera frames ? And also when I tried to log microsoftTeams.video.https://learn.microsoft.com/en-us/javascript/api/@microsoft/teams-js/video?view=msteams-client-js-latest#@microsoft-teams-js-video-issupported equals to false. Even if can I get only local camera frames, it is good for me.
https://learn.microsoft.com/en-us/javascript/api/@microsoft/teams-js/video?view=msteams-client-js-latest
Thanks..