質問

iPhoneの公式サポートされているストリーミングプロトコルが HTTP Streaming 。これは素晴らしいですが、多くのアプライアンスはビデオをストリーミングするためのRTSPプロトコルを実装しています。私は客観的なCのRTSPライブラリを探していて、それらを見つけていないために、かなりの時間を探しています。誰かがそのようなリベリーを知っていますか?

そうでない場合は、これを働かせることを試みた人々からいくつかのデモ/コード例を知っていますか。AppleはハードウェアでH264をサポートしているので、ローレベルを取得し、ストリームを実装してからビデオパケットを構築し、HTTPストリーミングを使用してストリーミングしたかのように渡します。これがどのように行われるかもしれないかについての誰かのアドバイスが高く評価されています。

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top