I dont fully understand the live APIs, if I start a live https://github.com/dilame/instagram-private-api/blob/master/examples/live.example.ts what will it stream, where from will it get the camera feed or video ?
Put an [x] if you meet the condition, else leave [ ].
I dont fully understand the live APIs, if I start a live https://github.com/dilame/instagram-private-api/blob/master/examples/live.example.ts what will it stream, where from will it get the camera feed or video ?
await ig.live.create({
// create a stream in 720x1280 (9:16)
previewWidth: 720,
previewHeight: 1280,
// this message is not necessary, because it doesn't show up in the notification
message: 'My message',
});
// (optional) get the key and url for programs such as OBS
const { stream_key, stream_url } = LiveEntity.getUrlAndKey({ broadcast_id, upload_url });
Where is path to video to be streamed ?
If you've streamed with OBS before, you maybe know, there's a StreamUrl and a StreamKey, the url is the destination of your live broadcast and the stream key is like your password.
You can view your Livestream either on the website itself or using the dash_playback_url with players like VLC
ok got it working with OBS, thanks a lot. now I can access and reply to chats too.
I have another question,
I want to pin a chat from one specific user how do I do that?
Use ig.live.pinComment(broadcastId, commentId).
Most helpful comment
Use
ig.live.pinComment(broadcastId, commentId).