I’m going to load the h264 file from the wasm player and play it.
The ElementaryVideooTrackConfig setting is
samsung::wasm::ElementaryVideoTrackConfig{
// h264 mimeType|
video/mp4; codecs=\avc1.4d002a,
// extradata (empty?)
{},
static_cast<uint32_t>(352),
static_cast<uint32_t>(288),
static_cast<uint32_t>(30), // framerateNum
1, // framerateDen
});
The elementary media packet was added as follows
samsung::wasm::ElementaryMediaPacket pkt{
s_pktPts,
s_pktPts,
s_frameDuration,
nal_unit->nal_unit_type == 5,
nal_unit->size,
nal_unit->rbsp,
352,
288,
0,
1,
0
};
Should I add SPS/PPS data except for it?
Please give me some advice about playing the h264 file.