Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

WIP Live #287

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

WIP Live #287

wants to merge 2 commits into from

Conversation

kmlx
Copy link

@kmlx kmlx commented Nov 22, 2019

based on:
https://github.com/mgp25/Instagram-API/blob/master/src/Request/Live.php
for actual insta requests

https://github.com/mgp25/Instagram-API/blob/master/examples/liveBroadcast.php
for functionality minus the ffmpeg part.

i will try to add some of the other methods in this order:

  • comment(s)
  • final viewer list
  • viewer count/list/heartbeat

for now the following are available:
Live.Create(width int, height int) => returns response.BroadcastId string, err
Live.Start(broadcastId string)
Live.End(broadcastId string)

these methods have been manually tested in a http rest environment and worked consistently.

@kmlx kmlx mentioned this pull request Nov 22, 2019
type LiveCreateResponse struct {
BroadcastID int `json:"broadcast_id"`
UploadUrl string `json:"upload_url"`
// MaxTimeInSeconds int `json:"max_time_in_seconds"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need this commented out code?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, not really. but i've kept it there in case someone needs it.

@felipeinf
Copy link
Collaborator

basado en:
https://github.com/mgp25/Instagram-API/blob/master/src/Request/Live.php
para solicitudes de insta reales

https://github.com/mgp25/Instagram-API/blob/master/examples/liveBroadcast.php
para la funcionalidad menos la parte ffmpeg.

Intentaré agregar algunos de los otros métodos en este orden:

  • comentario (s)
  • lista final de espectadores
  • número de espectadores / lista / latido

por ahora están disponibles los siguientes:
Live.Create (ancho int, alto int) => devuelve response.BroadcastId string, err
Live.Start (broadcastId string)
Live.End (broadcastId string)

estos métodos se han probado manualmente en un entorno http rest y han funcionado de forma coherente.

Hi! How is this working? @kmlx

@kmlx
Copy link
Author

kmlx commented Sep 22, 2020

@felipeinf this was working when i developed it. right now the project that i worked on that relied on this repo is on hold until later in autumn when i will have to look over this again.

the biggest problem with this repo wasn't starting live, it was with the instagram authentication which was (and still is) a bit of a nightmare.

compared with instagram's authentication, the starting of a live broadcast is straightforward and should still be working.

@felipeinf
Copy link
Collaborator

@felipeinf esto estaba funcionando cuando lo desarrollé. En este momento, el proyecto en el que trabajé que se basó en este repositorio está en espera hasta finales de otoño, cuando tendré que revisarlo nuevamente.

El mayor problema con este repositorio no estaba comenzando en vivo, fue con la autenticación de Instagram que fue (y sigue siendo) una pesadilla.

En comparación con la autenticación de Instagram, el inicio de una transmisión en vivo es sencillo y aún debería estar funcionando.

We could talk about the issue of authentication, I have discovered some things that can help you. 100pipeee@gmail.com

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants