Problem with SerialElement handling

4 views
Skip to first unread message

Amit

unread,
Oct 10, 2010, 6:47:07 AM10/10/10
to reops
Hi,

I have a SerialElement and it contains two MediaElement first one for
ad_video and second for normal_video. So I am first displaying ad then
video using this. Now my problem is I want to disable controls like
play, pause etc when ad ie first MediaElement is getting played and
then also detect if it has finished to start displaying all the
controls for the second normal video. Are the any events which I can
use for this or any other approach.

Thanks and Regards,
Amit

turbidity

unread,
Oct 11, 2010, 11:25:23 AM10/11/10
to reops
Hi Amit,

This is sort of a tricky thing to do. There is an OSMF way to do this,
but it doesn't work with the MAST plug-in. What I've had to do in the
past is listen for the adding of a DisplayObjectTrait on the media. If
the trait is of the DisplayObjectTrait, that usually means that the
current video being played has changed. It can be triggered by other
things, though. You'll need some way to check to see whether the video
playing is the main video or an ad. I have checked for metadata that
my main video will always have, but that may not be available for you.
You'll need to find something that makes a distinction between the ad
and the content.

Nils

amit2s...@gmail.com

unread,
Oct 12, 2010, 1:15:05 PM10/12/10
to re...@googlegroups.com

Thanks I got my answer and was able to do it.


Reply all
Reply to author
Forward
0 new messages