Skip to content

Commit 44e7b46

Browse files
committed
[Bug 15994] Calling 'play stop' on mobile should stop the currently played video
1 parent 198788c commit 44e7b46

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

engine/src/cmdse.cpp

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2260,11 +2260,19 @@ void MCMM::exec_ctxt(MCExecContext &ctxt)
22602260
else
22612261
MCMultimediaExecPlayLastVideoOperation(ctxt, PP_UNDEFINED);
22622262
}
2263-
// AL-2014-09-12: [[ Bug 13428 ]] The only valid audio action without a clip is stop
2264-
else if (audio)
2265-
{
2266-
MCMultimediaExecStopPlaying(ctxt);
2267-
}
2263+
// AL-2014-09-12: [[ Bug 13428 ]] The only valid audio action without a clip is stop
2264+
else if (audio)
2265+
{
2266+
MCMultimediaExecStopPlaying(ctxt);
2267+
}
2268+
2269+
// PM-2015-09-23: [[ Bug 15994 ]] Calling 'play stop' on mobile should stop the currently played video
2270+
if (stop)
2271+
{
2272+
#ifdef _MOBILE
2273+
MCMultimediaExecPlayVideoOperation(ctxt, nil, etype, kMCEmptyString, PP_STOP);
2274+
#endif
2275+
}
22682276
}
22692277
else
22702278
{

0 commit comments

Comments
 (0)