Hello Sudan,

Please find attached sample of buffered stream. You need to make your
own ServerMediaSubsession like:

FramedSource* CQxServerMediaSubsession::createNewStreamSource(unsigned
/*clientSessionId*/, unsigned& estBitrate) {
        //TBD
        estBitrate = 500; // kbps, estimate

        // Create the video source:
        if ((m_pSource = CQxByteStreamSource::createNew(envir(),
m_Token)) == NULL) 
                return NULL;

        // Create a framer for the H264 Stream:
        return H264VideoStreamFramer::createNew(envir(), m_pSource); 
}

and add code to get stream to the CQxByteStreamSource::doGetNextFrame()

It works for me.

Nikolai.

Attachment: QxByteStreamSource.h
Description: QxByteStreamSource.h

Attachment: QxByteStreamSource.cpp
Description: QxByteStreamSource.cpp

_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to