-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't find out correct links for audio and video files playing in the lightbox - single and video source set #107
Comments
Demo is missing video and audio, but all you need do is reuse HTML element. We, developers, did no expected that anybody will ask audio, but it works with only small issue - it will keep playing after closing modal dialog. @todo - fix it
It can be tricky to implement it, but I suggest you to upload videos to YouTube and forget these problems, because YouTube will take care of it. |
Notice: do not close this ticket until audio problem will be fixed. |
Thank you very much for your quick and engaged answers. I have thoroughly checked your proposals. There are some problems with the dimensions in the links: My source video is in 1080p and by loading in in the iframe, I define it to 720p dimensions. When I set width 750 and height 720, then this will result in the largest video dimensions in the iframe, without cutting off something from the right side of the video. But the resulting dimensions are well beyond the 720p dimensions. BTW: The html-iframe, which contains a blog article from my website, is shown correctly with the dimensions, I define in the link. Another point, I have with your link proposals is, that the resulting links, which are shown when hovering over the video links or audio links point to the URL of my website and not to the URL of the audio or video. That will result in a bad SEO, as the search engine cannot follow the links to the correct source. Is there another way for building the links, in order to keep it more SEO friendly? BWT: I love lightboxes for audio and video, because it keeps visitors focused on the media content playing and not simultaneously going on surfing or reading. |
…ated demo (added audio & local video)
… was impossible to apply CSS fixes)
I pushed some changes to fix audio and video issues. But you will need to take latest code from develop branch or wait for next version. p.s. I do not see any SEO issues, but you have to understand, that where you see
But YouTube provides much more benefit to user than HTML |
https://github.com/midzer/tobii/releases/tag/v2.5.0 is out with this feature. Thanks @viliusle. I think we can close this one. |
In the readme.md there is a good sample for playing a youtube video in the lightbox. But I have several videos in mp4 and audios in mp3 on my own webspace and I want to let play them (single) in a lightbox. I tried hard with my very limited knowledge, but I failed to create the correct link.
And if the audio would play in the lightbox, how can it be stopped automatically, when the lightbox is closed by the visitor?
Further I want to know, how I should build a link with a source set of the same video, when they should play dependent from screen width and let the webbrowser decide, which to choose (i.e. no media query). There would be the video in 720p and in 1080p format.
In case, webbrowser could not choose the most fitting video itself, I would create two separate links with one video format each and a class, which contains the media query already. Perhaps this would be the better way instead of a video source set?
The text was updated successfully, but these errors were encountered: