tencent cloud

Feedback

API Documentation

Last updated: 2022-07-13 17:59:31

    TXLivePlayer

    Video player

    For more information, see TXLivePlayer.
    TXLivePlayer decodes the audio and video data in live streams and performs local rendering. It provides the following capabilities:
    For Tencent Cloud's playback addresses, use low-delay playback to implement live streaming mic connect.
    For Tencent Cloud's playback addresses, use live streaming time shifting to implement seamless switching between live viewing and time-shifting viewing.
    Custom audio and video data processing allows you to process the audio and video data in live streams based on project requirements and then render and playback them.

    Basic SDK APIs

    API
    Description
    Creates a TXLivePlayer instance.
    Sets TXLivePlayer playback configuration items.
    Sets the stream push callback.

    Basic playback APIs

    API
    Description
    Sets the player's rendering view.
    Starts playback.
    Stops playback.
    Gets whether playback is ongoing.
    Pauses playback.
    Resumes playback.
    Uses the surface mode for local rendering.
    Sets the rendering surface size.

    Playback configuration APIs

    API
    Description
    Sets the playback rendering mode.
    Sets the image rendering angle.
    Enables hardware acceleration.
    Sets whether to mute the player.
    Sets the audio playback mode.
    Sets the volume level.
    Switches between definitions.
    Sets the volume level callback.

    Local recording and screenshot APIs

    API
    Description
    Sets the recording callback.
    Starts video recording.
    Stops video recording.
    Takes a screenshot locally during playback.

    Custom data processing APIs

    API
    Description
    Sets the software decoding data carrier buffer.
    Sets the software decoding video data callback.
    Sets the audio data callback.

    Live streaming time shifting APIs

    API
    Description
    Prepares for live streaming time shifting.
    Seeks to the live stream playback time.
    Resumes live streaming.

    Screenshot callback APIs

    For more information, see ITXSnapshotListener.
    API
    Description
    A screenshot taken.

    Video data callback APIs for software decoding

    For more information, see ITXVideoRawDataListener.
    API
    Description
    A frame decoded by the software decoder.

    Raw audio data callback APIs

    For more information, see ITXAudioRawDataListener.
    API
    Description
    Audio playback data in PCM format.
    Audio playback information.

    Player volume callback APIs

    For more information, see ITXAudioVolumeEvaluationListener.
    API
    Description
    The player's volume level. Value range: 0–100.

    TXLivePlayConfig

    TXLivePlayer parameter configuration module

    For more information, see TXLivePlayConfig.
    It is used to set TXLivePlayer parameters, most of which cannot take effect if they are set after playback starts.

    Common APIs

    API
    Description
    Sets whether to automatically adjust the cache time.
    Sets the player cache time.
    Sets the maximum cache time.
    Sets the minimum cache time.
    Sets the video lagging alarm threshold for the player.
    Sets the maximum number of player reconnection attempts.
    Sets the player reconnection interval.

    Dedicated APIs

    API
    Description
    Enables the message channel.
    Sets acoustic echo cancellation (AEC).

    ITXLivePlayListener

    TXLivePlayer callback notifications

    For more information, see ITXLivePlayListener.
    API
    Description
    Playback event notification.
    Network status notification.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support