Show / Hide Table of Contents

    Interface IAudioVideoFramePlayer

    Interface for the AudioVideoFramePlayer responsible for streaming real time audio video

    Namespace: Microsoft.Skype.Bots.Media
    Assembly: Microsoft.Skype.Bots.Media.dll
    Syntax
    public interface IAudioVideoFramePlayer

    Methods

    ClearAsync(Boolean, List<VideoFormat>)

    Clears media buffers from the param settings, if nothing is specified it will clear all the audio and video buffers that are in the queue

    Declaration
    Task ClearAsync(bool clearAudio = true, List<VideoFormat> videoFormats = null)
    Parameters
    Type Name Description
    Boolean clearAudio

    true will clear the audio buffers, default value is set to true

    List<VideoFormat> videoFormats

    list of video formats to clear, default value is null

    Returns
    Type Description
    Task

    EnqueueBuffersAsync(IList<AudioMediaBuffer>, IList<VideoMediaBuffer>)

    Enqueue the audio and video media buffers. Usage should be to enqueue the same audio and video length, if audio and video socket are active.

    Declaration
    Task EnqueueBuffersAsync(IList<AudioMediaBuffer> audioMediaBuffers, IList<VideoMediaBuffer> videoMediaBuffers)
    Parameters
    Type Name Description
    IList<AudioMediaBuffer> audioMediaBuffers
    IList<VideoMediaBuffer> videoMediaBuffers
    Returns
    Type Description
    Task

    ShutdownAsync()

    This will shutdown the player and clean the associated resources

    Declaration
    Task ShutdownAsync()
    Returns
    Type Description
    Task

    Events

    LowOnFrames

    This event will be raised if the player is low on frames

    Declaration
    event EventHandler<LowOnFramesEventArgs> LowOnFrames
    Event Type
    Type Description
    EventHandler<LowOnFramesEventArgs>
    Back to top Copyright (c) Microsoft Corporation. All rights reserved.