Community discussions

MikroTik App
 
cstan
just joined
Topic Author
Posts: 22
Joined: Fri Mar 22, 2013 9:24 am
Location: Queensland, Australia

Youtube Videos in Hotspot HTML

Fri Mar 22, 2013 9:29 am

Hi everyone,

I'm trying to get a video to play on the hotspot landing page before redirecting to the log in page.
I've got the redirect working and the video plays fine on desktops and android but I've run into a bit of a problem with apple devices.

When you connect to the network the login.html file opens up in a pop up, the video frame loads but doesn't play and then redirects to the log in page as expected.

Is there a way to disable the pop up on apple devices so the user has to open their browser to be redirected to the log in page?

All of this is being done on a 951.

Any suggestions you have would be greatly appreciated.
 
User avatar
samir494
Member Candidate
Member Candidate
Posts: 236
Joined: Thu Aug 06, 2009 11:27 am
Location: India

Re: Youtube Videos in Hotspot HTML

Fri Mar 22, 2013 9:51 am

if it only case of apple,

try to bypass apple.com in wall garden and then check,
 
cstan
just joined
Topic Author
Posts: 22
Joined: Fri Mar 22, 2013 9:24 am
Location: Queensland, Australia

Re: Youtube Videos in Hotspot HTML

Fri Mar 22, 2013 9:55 am

It's not that it's trying to access an apple site, it's just apple devices like iphones don't display the video correctly and I was wondering if there was a way to stop the pop up appearing automatically so the user would have to open their browser to access the hotspot html pages.
 
User avatar
samir494
Member Candidate
Member Candidate
Posts: 236
Joined: Thu Aug 06, 2009 11:27 am
Location: India

Re: Youtube Videos in Hotspot HTML

Fri Mar 22, 2013 1:07 pm

you can also try to bypass that video by adding the same in wallgarden
 
cstan
just joined
Topic Author
Posts: 22
Joined: Fri Mar 22, 2013 9:24 am
Location: Queensland, Australia

Re: Youtube Videos in Hotspot HTML

Fri Mar 22, 2013 1:11 pm

It's not the video playing that's the problem exactly.
I got it to play on everything except apple devices by doing what you suggested and adding it to the walled garden.

When apple devices connect to the hotspot the login screen displays automatically in pop up window, unlike other devices where once connected to the hotspot network they have to open their browser in order to see the log in page.

It's this pop up window that is not playing the video.
 
User avatar
samir494
Member Candidate
Member Candidate
Posts: 236
Joined: Thu Aug 06, 2009 11:27 am
Location: India

Re: Youtube Videos in Hotspot HTML

Tue Mar 26, 2013 1:38 pm

bydefault apple uses safari for browsing, try with downloading google chrome in apple,

also try with turning off popup block in safari
1. Open Safari if it is not already open.
2. Choose Safari > Preferences, and then click Security.
3. Turn off “Block pop-up windows.”
 
cstan
just joined
Topic Author
Posts: 22
Joined: Fri Mar 22, 2013 9:24 am
Location: Queensland, Australia

Re: Youtube Videos in Hotspot HTML

Thu Mar 28, 2013 7:00 am

So I've now tried changing it from an embedded youtube video to a HTML5 compliant video and I've run into the same problem. I'm using the bellow code:
<div id="wrapper" align="centre" valign="middle"> 
	<video width="560" height="315" controls preload autoplay> 
	<source src="vid/testad.mp4" type="video/mp4"></source> 
	<source src="vid/testad.webm" type="video/webm"></source> 		
        </video> 
</div>
Android and desktops play the video fine but for some reason the pop up that Apple devices bring up when loading the hotspot HTML just doesn't want to play the video.

Any ideas?
 
User avatar
samir494
Member Candidate
Member Candidate
Posts: 236
Joined: Thu Aug 06, 2009 11:27 am
Location: India

Re: Youtube Videos in Hotspot HTML

Thu Mar 28, 2013 7:24 am

hi.

so your getting the video from youtube ?

if yes then you need to add youtube website in wallgarden to bypass

try this also
 
cstan
just joined
Topic Author
Posts: 22
Joined: Fri Mar 22, 2013 9:24 am
Location: Queensland, Australia

Re: Youtube Videos in Hotspot HTML

Thu Mar 28, 2013 7:30 am

Finally figured it out. You mentioned it one of your earlier posts about adding apple.com to the walled garden.
I wasn't quite sure how that would help until I read this

http://forum.mikrotik.com/viewtopic.php?f=7&t=62460

Disables that annoying pop up when connecting to the network and the video plays fine in the browser now.

Thanks for all your help.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Youtube Videos in Hotspot HTML

Mon Dec 05, 2016 3:22 pm

Samir, your suggestions are confusing.

cstan why do you want to remove the popup? Redirection to the loging page is correct behavior. If you want the video to play there, you must add the site to walled garden. If you remove the popup, this will confuse the users. How can they know they need to open the browser?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Youtube Videos in Hotspot HTML

Mon Dec 05, 2016 3:25 pm

Hi Cstan

I also wanted to achive same what you done for this post. I wanted to redirect users on my private webpage before they redirected to login page of my raidus. Currently its not the case, users are directly redirecting to raidus login page.

Plese help me out with coding or any edits done in any page or something, sorry but i am new bee in router os.
You can follow the example here to make authentication on an external page:
http://wiki.mikrotik.com/wiki/Manual:Cu ... entication
 
User avatar
markandrew88
just joined
Posts: 4
Joined: Sat Oct 30, 2021 12:36 pm
Contact:

Re: Youtube Videos in Hotspot HTML

Tue Feb 01, 2022 2:22 am

Cstan gud day!

Ive able to play both clips on android ang ios devices, but sadly it only plays when it landed at login page, i wanted it to play before it landed to login page, I appreciate much if you could share how did you do it, in you login.html heres my email ad foxnet8@gmail.com thanks a lot!

Who is online

Users browsing this forum: Josephny and 50 guests