tencent cloud

Feedback

API Documentation

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

    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
    Sets the playback callback. For more information, see the detailed definition in the TXLivePlayListener.h file.
    Sets the video processing callback. For more information, see the detailed definition in the TXVideoCustomProcessDelegate.h file.
    Sets the audio processing callback. For more information, see the detailed definition in the TXAudioRawDataDelegate.h file.
    Sets whether to enable hardware acceleration. Default value: NO.
    Sets TXLivePlayConfig playback configuration items. For more information, see the detailed definition in the TXLivePlayConfig.h file.
    Sets the short video recording callback. For more information, see the detailed definition in the TXLiveRecordListener.h file.
    Sets whether to start playback immediately after call of startPlay. This API takes effect only for VOD. Default value: YES.

    Basic playback APIs

    API
    Description
    Creates the video rendering view. This control is used to display the video content.
    Removes the video rendering widget.
    Plays back the RTMP audio/video stream at the specified URL.
    Stops the audio/video stream.
    Gets whether playback is ongoing.
    Pauses playback.
    Resumes playback. This API can be used for VOD and live streaming.

    Video APIs

    API
    Description
    Sets the orientation of the video image.
    Sets the image cropping mode.
    Takes a screenshot.

    Audio APIs

    API
    Description
    Mutes/Unmutes the player.
    Sets the volume level.
    Sets the audio playback mode (speaker or receiver).
    Sets the volume level callback.

    Live streaming time shifting APIs

    API
    Description
    Prepares for live streaming time shifting and pulls the playback start time of the live stream.
    Resumes live playback from time-shifting playback.
    -

    Video recording APIs

    API
    Description
    Starts short video recording.
    Stops short video recording.
    Sets the playback speed.

    Other APIs

    API
    Description
    Sets the margin between the rendering view and the status floating view.
    Sets whether to display the playback status statistics and event message floating view.
    Switches FLV live streams smoothly.
    Calls an experimental API.

    Enumerated values

    Enumerated Value
    Description
    Supported live streaming and VOD types.

    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.

    TXLivePlayListener

    TXLivePlayer callback notifications

    For more information, see TXLivePlayListener.
    API
    Description
    Live streaming 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