Forum Discussion
Image proccessing on MS Teams
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..
- Sayali-MSFTMay 11, 2023
Microsoft
mkemalgokce -Thanks for providing the Infromation, we will check with engineering team and get back to you. Once we get any update.- Sayali-MSFTMay 23, 2023
Microsoft
mkemalgokce - We got the reply from engineering team that, Currently, we don’t have any API today for camera feed.
Could you please help by suggesting this feature on - Microsoft Teams · Community