Play Inline Video in iPhone

This is what I was looking at to disable fullscreen mode on iPhone

I build my app on iPhone so it acts as native app but it doesn’t work, video still plays on full screen. When I open the app via mobile safari fullscreen is disabled