microsoftgraph / microsoftgraph/microsoft-graph-comms-samples

How to record VBSS stream in compliancerecordingbot

Open
#147 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
253
Forks
275
Avg merge
1d 5h
Merged PRs (30d)
1

Description

Hello,

I am currently trying this inside BotMediaStream.cs.OnVbssMediaReceived:

 try
            {
                unsafe
                {
                    FileStream file = new FileStream("c:/tmp.h264", FileMode.Append, FileAccess.Write);
                    UnmanagedMemoryStream ustream = new UnmanagedMemoryStream((byte*)e.Buffer.Data, e.Buffer.Length);
                    ustream.CopyTo(file);
                    ustream.Close();
                    file.Close();
                }
            }
            catch
            {
                this.GraphLogger.Warn("Exception");
            }

This gives me a video file with a frame rate which is too fast and has no audio. Is there a sample available somewhere which describes how to convert the media buffer to a playable file?

Thanks
Prashant

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with BotMediaStream.cs and its OnVbssMediaReceived handler to understand what the VBSS media buffer contains and how timing and audio are represented. Review the surrounding samples for an existing recording or playback path. Done means providing a documented sample or supported approach that produces playable output with correct video timing and explains audio handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
audio-video-rtc
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.