# ByteArk Lighthouse
ByteArk Player SDK for Flutter supports analytics through ByteArk Lighthouse (opens new window), configured via lighthouseSetting on ByteArkPlayerConfig.
# Configure
final config = ByteArkPlayerConfig(
licenseKey: licenseKey,
playerItem: playerItem,
lighthouseSetting: ByteArkLighthouseSetting(
projectId: "<PROJECT_ID>",
debug: false,
),
);
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
| Property | Type | Description |
|---|---|---|
projectId | String? | Lighthouse Project ID (contact ByteArk to obtain) |
debug | bool? | Enable debug mode for development |
# Send metadata per video
final playerItem = ByteArkPlayerItem(
url: "<MEDIA_URL>",
mediaId: "VIDEO_ID",
title: "Big Buck Bunny",
lighthouseMetaData: ByteArkPlayerLighthouseMetaData(
// ... fields
),
);
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
Note
Using Lighthouse always requires mediaId and title on ByteArkPlayerItem.