vimeo iframe for IOS how to hide "like" and "share" button from right side of UIWebView
Asked Answered
G

3

6

I am using UIWebview to play a vimeo video with this code:

let embedHTML = "<html><body><meta name = \"viewport\"content = \"initial-scale = 1.0, user-scalable = no\"/><iframe src=\"http://player.vimeo.com/video/"+(str)!+"?title=0&amp;byline=0&amp;portrait=0&amp;color=008efe&amp\";controls=0&amp;fullscreen=1&amp;buttons.share = flase&amp;embed.buttons.like = false;autoplay=1&amp;loop=1 width=\"375\" height=\"370\" frameborder=\"0\"></iframe><body style=\"background:#000;margin-top:0px;margin-left:0px\"></object></div></body></html>"

I need to hide the "share" and "like" buttons.

Gregorygregrory answered 17/2, 2016 at 11:37 Comment(0)
K
8

According to Hiding the share button on vimeo help:

You cannot hide the Share button from your public videos on vimeo.com. However, viewers of private videos (videos with a privacy setting other than "Anyone") do not see the Share button on the video page. Only video owners see the Share button on the video pages of their private videos.

Plus, PRO, and Business members can customize the embedded video player to hide the Share button.

For me the only solution was to change the setting in my vimeo PRO/Business account for the particular video. The iframe url parameters did not change anything in regards to the share buttons.

Kokoruda answered 6/2, 2017 at 7:52 Comment(0)
W
0

Vimeo also allows you to embed the video on specific domains that you may specify. Using this combination removes the option to share the embedded video. It enables those logged in on the domain to access for viewing.

Whitethorn answered 13/6, 2022 at 7:53 Comment(0)
B
-1

this can be help full take a look

<script src="https://f.vimeocdn.com/js/froogaloop2.min.js"></script>
<iframe id="projectplayer" src="https://player.vimeo.com/video/336413453"></iframe>

<script>
iframe = $('#projectplayer')[0];
player = $f(iframe);
player.api('setVolume',1); //reset volume
</script>
Bight answered 17/5, 2019 at 22:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.