Embedded Youtubevideos works only once per opening a tile
Issue #55
resolved
Hello,
There is a bug at least with Chrome nad Firefox browser, if you embed youtube video to a tile and then open it couple of times the embedded video loses thumbnail picture and doesn't work at all, only refreshing the whole page resolves the issue. See attached video
Tested with Boost and Classic themes. Moodle 3.9.2 (Build: 20200914) & format_tiles 3.9.0.6 (RC) 2020080606.
steps to repeat:
- Add at least 8 sections to a course
- Edit tile 2
- In the summary use HTML and paste
<video controls="true"><source src="https://youtu.be/KT2kuMtVSQE"https://youtu.be/KT2kuMtVSQE</video> >
- Save changes
- Return course mainpage
- Turn editing off
- Click tile 2 and see video is shown
- Click tile 2 again to close it
- Click tile 2 to open it again and notice that video doesn't work.
Comments (3)
-
repo owner -
reporter Hello,
setting format_tiles | jsmaxstoreditems to 0 seemed to fix the problem, thanks.
-
repo owner - changed status to resolved
Fix issue
#55set jsmaxstoreditems to zero for new installs (will be deprecated for existing installs later)→ <<cset 92687cbd59ac>>
- Log in to comment
Hi Jari please try going to Site administration > Plugins > Course formats > Tiles format > Browser storage > Max content items in browser session storage and setting this value to zero. Does that fix it?
I think I may deprecate the majority of the browser storage stuff as it causes a few problems for people, or at least set it all to off by default