Skip to content

Commit 2662710

Browse files
committed
Manifest load added
Signed-off-by: ryadav698 <[email protected]>
1 parent 18670fd commit 2662710

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

test/gstTestHarness/rialto-api-test.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ void ConfigureVideo()
154154
switch( trackVideo.codec_type )
155155
{
156156
case MultiChar_Constant("hvcC"):
157-
mimeType = "video/x-h265";
157+
mimeType = "video/h265";
158158
streamFormat = StreamFormat::HVC1;
159159
break;
160160
case MultiChar_Constant("avcC"):
161-
mimeType = "video/x-h264";
161+
mimeType = "video/h264";
162162
streamFormat = StreamFormat::AVC;
163163
break;
164164
default:
@@ -271,27 +271,27 @@ int my_main(int argc, char **argv)
271271

272272

273273
// MUST happen before any attachSource() to create a Rialto Gstreamer player
274-
gstMediaPipeline->load(MediaType::MSE, "video/x-h265", "file:///tmp/data/bipbop-gen/video/chunk-stream0-00001.m4s"); // Temp
274+
gstMediaPipeline->load(MediaType::MSE, "", "file:///tmp/data/bipbop-gen/main.mpd"); // Temp
275275

276276
if (!gstMediaPipeline->setVideoWindow(0, 0, 1920, 1080))
277277
{
278278
fprintf(stderr, "Warning: Failed to set video window. Video may not appear.\n");
279279
}
280280

281-
ConfigureAudio();
282-
ConfigureVideo();
283-
ConfigureComplete();
281+
// ConfigureAudio();
282+
// ConfigureVideo();
283+
// ConfigureComplete();
284284

285285
gstMediaPipeline->play();
286286

287-
uint32_t audioReqId = WaitForNeedDataRequest(sourceIdAudio);
288-
uint32_t videoReqId = WaitForNeedDataRequest(sourceIdVideo);
287+
// uint32_t audioReqId = WaitForNeedDataRequest(sourceIdAudio);
288+
// uint32_t videoReqId = WaitForNeedDataRequest(sourceIdVideo);
289289

290-
if (audioReqId != UINT32_MAX)
291-
InjectAudio(audioReqId);
290+
// if (audioReqId != UINT32_MAX)
291+
// InjectAudio(audioReqId);
292292

293-
if (videoReqId != UINT32_MAX)
294-
InjectVideo(videoReqId);
293+
// if (videoReqId != UINT32_MAX)
294+
// InjectVideo(videoReqId);
295295

296296

297297
std::this_thread::sleep_for(std::chrono::seconds(7));

0 commit comments

Comments
 (0)