Hi Wei Wei,
I’m not sure if there is sample showing how to get raw video streams (live and playback) .
Although it is possible.
In order to get to know how to work with the playback at all, you could look at “MediaPlaybackViewer” from component samples.
There you could replace “JPEGVideoSource” with “RawVideoSource”.
In this way you will receive the video data, as it is written in the RS.
So if camera is set-up to provide H.264. you will get H.264.
(If of course camera streams MJPEG or H.265 - you will get those).
Same thing for live is available trough “RawLiveSource”.