tpstreams_player_sdk 2.1.0 copy "tpstreams_player_sdk: ^2.1.0" to clipboard
tpstreams_player_sdk: ^2.1.0 copied to clipboard

TPStreams Player SDK makes it easy to play our DRM-protected and non-DRM content.

TPStreams Flutter player SDK #

To use this package, add tpstreams_player_sdk as a dependency in your pubspec.yaml file.

Initializing TPStreamsSDK #

First, imported our package:

import 'package:tpstreams_player_sdk/tpstreams_player_sdk.dart';

Next, you can initialize the TPStreamsSDK with your organization code.

TPStreamsSDK.initialize(orgCode: "YOUR_ORG_CODE");

Make sure to replace "YOUR_ORG_CODE" with your actual organization code. This code snippet should be placed at the entry point of your application (usually in the main function) to ensure proper initialization of the TPStreamsSDK.

Play a Video #

To play a video using the TPStreams Player SDK, use the TPStreamPlayer widget:

TPStreamPlayer(assetId: 'ASSET_ID', accessToken: 'ACCESS_TOKEN');

Replace ASSET_ID and ACCESS_TOKEN with the actual assetId and accessToken of the video you wish to play. After executing your Flutter application, the TPStreams player will display the video specified by the provided assetId and accessToken.

For a practical implementation and usage of tpstreams_player_sdk, refer to our Sample Flutter App.

1
likes
0
points
308
downloads

Publisher

unverified uploader

Weekly Downloads

TPStreams Player SDK makes it easy to play our DRM-protected and non-DRM content.

Homepage

Documentation

Documentation

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on tpstreams_player_sdk