Play Video Once Only

I give students online English conversation practice online with the emphasis on extemporization: rather than allowing them time to write a script, they must answer my questions immediately.

In order that they don’t cheat I have used a player that allows them to play a short question video (the sound from which they must record at the start of their answer video) ONLY ONCE.

I used the code
<video controls=“controls” onplaying=“this.controls=false” autoplay=“autoplay”><source src=“URL/filename.mp4” type=“video/mp4”>

(The autoplay often did not work, but that does not matter. It does not need to auto play)

Now my university requires that I use the kaltura player and gives me the following code

<iframe src="" width="560" height="395" allowfullscreen webkitallowfullscreen mozAllowFullScreen frameborder="0" allow="encrypted-media"></iframe>


Is there some way that I can change the code above so that students are (unless they hack) only allowed to play the video once?

(I appreciate that with a bit of hacking the students could probably have played the video more than once but my students are not good at hacking)

I hope this is possible!

I would be very grateful of your help.

Timothy Takemoto
Yamaguchi University

I tried to add a flashvar

<iframe src="[autoPLay]=true" width="560" height="395" frameborder="0" allow="encrypted-media"></iframe>

but it did not result in the video autoplaying.

This is the code to get rid of the controls{"flashvars":{"controlBarContainer.plugin":false,"largePlayBtn.plugin":false,"loadingSpinner.plugin":false,"inlineScript":false}}

So in theory the following, would autoplay and have no controls to allow replaying (I am happy for there to be a loading spinner)

like this (with my content)
<iframe src="[autoPLay]=true&flasvars[controlBarContainer.plugin]=false&flasvars[largePlayBtn.plugin]=false" width=“320” height=“240” frameborder=“0” allow=“encrypted-media”>`

But I can’t get any flashvars to work!

Does anyone have any idea why flashvars do not work for me?

I’ve been trying to get autoplay to work after writing in the embed code when the user clicks on a static poster frame. Initially this didn’t work with &flashvars[autoplay]=true but in looking at your problem, I tried again with &flashvars[autoPlay]=true and that worked. It might be as simple as changing your autoPLay to autoPlay. I hope that works for you too.

Well spotted. Thank you very much indeed! I will check it out.


More than a year later, because have been using another file system in the meantime, and yes! That did work. thank you for pointing out the capital “L.”


However, the :arrow_forward: in the middle of the video is still displayed, which is a shame, since students can press it and play the video again. Oh, and I would like to be able to remove the replay circular arrow too.

From the list of controls there is one for images to remove the video playback controls

which I added in this way (wondering if it is essential to keep adding “flashvars” over and over again or whether I could group them)

But the controls are still displayed.

This is what I have now.

Perhaps it is the lack of the “&amp”
I put that in and changed the order in case the problem was the way in which I am chaining the flashvars together.

<iframe src=";playerId=kaltura_player_1667718353080&amp;entry_id=0_c8z5p2la&amp;flahsvars[ControllerScreenHolder.visible]=false&amp;flashvars[autoPlay]=true&amp;flahsvars[controlBarContainer.plugin]=false&amp;flahsvars[largePlayBtn.plugin]=false&amp;flahsvars[ControllerScreenHolder.includeInLayout]=false"
    allowfullscreen="" webkitallowfullscreen="" mozallowfullscreen="" allow="encrypted-media" width="400" height="365" frameborder="0"></iframe>

But still, the second of the flashvars (autoPlay) is working but the first does not seem to have any effect.


I had flahsvars instead of flashvars.

The below plays automatically and removes both the play button in the centre and the controls at the bottom including the replay button.

<iframe src=";playerId=kaltura_player_1667718353080&amp;entry_id=0_c8z5p2la&amp;flashvars[ControllerScreenHolder.visible]=false&amp;flashvars[autoPlay]=true&amp;flashvars[controlBarContainer.plugin]=false&amp;flashvars[largePlayBtn.plugin]=false&amp;flashvars[ControllerScreenHolder.includeInLayout]=false"
    allowfullscreen="" webkitallowfullscreen="" mozallowfullscreen="" allow="encrypted-media" width="400" height="365" frameborder="0"></iframe>