Can ImLiveSourceToolkit return the raw h.264 video stream?

I am learning the MediaLiveServiceJPEG_cpp sample which uses the ImLiveSourceToolkit::GetLiveData to retrieve the JPEG image.

How can I retrieve the raw H264 video stream?

I know VideoOS.Platform.Data.RawVideoSource can get H264 data, however, It is a C# interface. There is a little bit hard to integrate the C# in my solution.

And more, where the is detail documents to explain this config?

Can I get raw h246 data by changing this config?

		utf8_string_t config = "<?xml version='1.0' encoding='utf-8'?>"
                         "<toolkit type='source'>"
                         "  <provider>mmp</provider>"
                         "  <config>"
                         "    <jpeg_encoder quality='90' quality_update_key='qual'>"
                         "      <video_decoder number_of_threads='4'>"
                         "        <toolkit type='source'>"
                         "          <provider>is</provider>"
                         "          <config>"
						 "            <server_uri>"+ vmsRecorderUri +"</server_uri>"
                         "            <device_id>"+ cameraGuid +"</device_id>"
                         "            <media_type>VIDEO</media_type>" + authorizationToken +
                         "            <maximum_queue_size>5</maximum_queue_size>"
                         "          </config>"
                         "        </toolkit>"
                         "      </video_decoder>"
                         "    </jpeg_encoder>"
                         "  </config>"
                         "</toolkit>";

Yes.

Unfortunately there is no sample showing this.

Please see if you can get it right after this recommended read.

https://doc.developer.milestonesys.com/html/index.html?base=mmtkhelp/tutorial.html#the_live_interface&tree=tree_2.html

I know there is a much information, do not hesitate to ask again if you do not come up with a “config” that works for you.

Thanks, It works

Just need to use the “is” provider instead of mmp provider, the the data returned by GetLiveData is the raw video chunk.