Hi,
I'm trying to manage MediaLive with AWS SDK(node.js).
I have managed create MediaPackage Channel, MediaLive Input.
But now I get weird error 'ErrorMessage: 'Destination "..." is not referenced' when I try to create MediaLive channel.
here's my parameters passing to CreateChannelCommand.
(I don't know how to make a code block so please forgive me about poor indented code.)
const params = {
Name: channelName || "TestChannel",
ChannelClass: "SINGLE_PIPELINE",
InputAttachments: [
{
InputId: mediaLiveInputId, // MediaList Input Id
InputAttachmentName:"Default Input"
}
],
InputSpecification: {
Codec: "AVC",
Resolution: "HD",
MaximumBitrate: "MAX_10_MBPS"
},
Destinations: [
{
Id: output-${mediaPackageChannelId}
,
MediaPackageSettings: [
{
ChannelId: mediaPackageChannelId || "TestMediaPackageChannel"
}
]
}
],
EncoderSettings: {},
OutputGroups: [
{
OutputGroupSettings: {
Settings: [
],
MediaPackageGroupSettings: {
Destination: {
DestinationRefId: `output-${mediaPackageChannelId}`
}
}
},
Name: "MediaPackage-group",
Outputs: \[
{
OutputSettings: {
MediaPackageOutputSettings: {
Destination: {
DestinationRefId: `output-${mediaPackageChannelId}`
}
}
}
}
]
}
]
I think I'm definitely referencing output-${mediaPackageChannelId}
in MediaPackageOutputSettings under OutputGroupSettings and OutputSettings attributes.
I can't figure out what am I missing.
Please shed some light on me!
Thank you for reading this! :)
Edited by: netscout on May 4, 2021 12:34 AM
Edited by: netscout on May 4, 2021 12:36 AM
Edited by: netscout on May 4, 2021 12:41 AM