Here are instructions on how to embed videosync events to your web page.
If you have any issues with embedding, please contact support by mail support@videosync.fi
<iframe src="https://flik.videosync.fi/katsoja-testi-embed-slides?embed-view=1" width="100%" height="282" scrolling="no" allowfullscreen allowFullScreen frameborder="0"></iframe> <script type="text/javascript" src="https://cdn.videosync.fi/assets/iframe-resizer/js/iframeResizer.min.js"></script> <script>iFrameResize({ log: true })</script>
The end result should look like this:
Use this only if
<style> .player-wrapper { position: relative; padding-bottom: 56.25%; /* 16:9 */ height: 0; } .player-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style> <div class="player-wrapper"> <iframe src="//flik.videosync.fi/test-stream/?embed-view=1" allowfullscreen allowFullScreen width="500" height="282" scrolling="no" frameborder="0"> </iframe> </div>
The end result should look like this
On Safari browsers (mobile and desktop) there is an issue with cookies inside iframe. Safari won't set cookie in a iframe, unless user has already been on the site and used cookies there.
Why do you need to set cookies?
In registration and for example password protected page, we need to set a cookie which contains a view token to ensure user has right to view the page. Without this, user would need to register or set password on every page refresh.
How do I fix it?
To fix this issue, we offer a script that has to be inserted to the page where iframe is set.
<script src="https://<ACCOUNT>.videosync.fi/<EVENT-URL>/safaricfix"></script>
Change <ACCOUNT> and <EVENT-URL> so it's the same event that you are embedding but with /safaricfix at the end.
So... What does it do?
It redirects to the event url, sets a dummy cookie (name is _vsync_cookie) and comes back to the site where it was called. After that, iframe can set cookies with no problem. It only does the redirect once (after the cookie is set), so refreshing the page does not do anything after the initial run.
This safari cookiefix script does not do anything on other browsers!