Skip to content

lk cli: Add arg to set a track name #669

@haffi-mazhar-oxa

Description

@haffi-mazhar-oxa

Could be useful to have the ability to set a track name when publishing with lk cli. Unless I missed something, I think there's no option for this currently. This can be useful for subscriber clients to identify the media track

i.e

lk room join --api-key={key} --api-secret={secret} --url={lk_url} --identity=video-test --room test-room --publish h264://127.0.0.1:5004 --fps 10
2025-08-28T09:04:26.118+0100	INFO	lk	lk/room.go:981	connected to room	{"room": "test-room"}
2025-08-28T09:04:26.135+0100	INFO	lk	[email protected]/localparticipant.go:138	published track	{"name": "", "source": "CAMERA", "trackID": "TR_VCtoEeEigzVuNf"}
2025-08-28T09:04:26.228+0100	INFO	lk	[email protected]/room.go:991	handling subscribed quality update	{"trackID": "TR_VCtoEeEigzVuNf", "mime": "", "subscribedQualityUpdate": {"trackSid": "TR_VCtoEeEigzVuNf", "subscribedQualities": [{"quality": "LOW", "enabled": true}, {"quality": "MEDIUM", "enabled": true}, {"quality": "HIGH", "enabled": true}], "subscribedCodecs": [{"codec": "h264", "qualities": [{"quality": "LOW", "enabled": true}, {"quality": "MEDIUM", "enabled": true}, {"quality": "HIGH", "enabled": true}]}]}}
finished writing
2025-08-28T09:04:36.072+0100	INFO	lk	[email protected]/localparticipant.go:403	unpublished track	{"name": "", "trackID": "TR_VCtoEeEigzVuNf"}

See log:

published track	{"name": "", "source": "CAMERA", "trackID": "TR_VCtoEeEigzVuNf"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions