nodejs を使用してラムダ関数から AWS MediaPackage 入力エンドポイントに hls メディアを配信しようとしています。私は次のことを行っており、メディア ファイル チャンク (ts ファイル) をプッシュしているようです。
const auth = 'Basic ' + Buffer.from(endpoints[0].Username + ':' + endpoints[0].Password).toString('base64');
const options = {
hostname: endpoints[0].Url.hostname,
path: endpoints[0].Url.path,
headers: {
'Content-Type': 'application/json',
'Authorization': auth,
'Content-Length': Buffer.byteLength(data.Body)
},
body: data.Body // body of ts file
};
console.log(options);
const res = await httpsPut(options); //Promise using https put to send the body in options
ただし、CloudWatch に MediaPackage チャネルへのログが表示されません。
これは、挿入メディアを MediaPackage に送信する正しい方法ですか? ドキュメントが見つかりませんでした
ありがとう、