Domanda

Mi rendo conto che il protocollo di streaming supportato ufficiale per l'iPhone è Streaming HTTP .Questo è ottimo, ma molti elettrodomestici implementano il protocollo RTSP per lo streaming video.Ho guardato intorno per un bel po 'di tempo alla ricerca di librerie RTSP nell'obiettivo c e non li ho trovati.Qualcuno sa di tali libarie?

In caso contrario, qualcuno sa di alcuni esempi demo / codice da persone che hanno cercato di far funzionare questo.Dal momento che Apple supporta H264 in hardware, suppongo che sia possibile ottenere un livello basso, implementare il flusso, quindi costruire il pacchetto video e passarlo come se fossi trasmesso in streaming utilizzando lo streaming HTTP.Chiunque consigli su come potrebbe essere fatto è apprezzato.

È stato utile?

Soluzione

Check out live555. This will handle all the RTSP handshaking and deliver data (in your case, h264) to you application for further processing/decoding. It is a C/C++ library, and hence can run on iOS.

Your options for integration with a cocoa app are:

1) Run live555 on its own thread using the event loop mechanism given as part of the library (note then that all operations directly related to live555 need to be run on this thread as live555 itself is not designed to be thread-safe).

2) Provide a cocoa implementation of "TaskScheduler", in which you use the cocoa library for async network callbacks, timers etc.

The above points will make more sense to you after reviewing the live555 doco.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top