vimeo

jQuery how to stop Vimeo video when click

﹥>﹥吖頭↗ 提交于 2019-12-02 22:39:20
here is the simple code: http://jsfiddle.net/YAFuW/1/ basicly i tried to use like this: <iframe src="http://player.vimeo.com/video/40977539?api=1" width="400" height="225" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe> <a href="#">STOP</a> $('a').click(function() { alert('stoped'); froogaloop.api('unload'); }); Fresheyeball I don't know a "good" or "right" way to accomplish this cross-browser. Youtube's JavaScript API fails, too. But this method is reliable and does work. Basically, it kills the <iframe> and rebuilds it. $('a').click(function() { alert(

PHP: How to check whether the URL is Youtube's or vimeo's

霸气de小男生 提交于 2019-12-02 20:58:56
How can I write a function to check whether the provided URLs is youtube or vimeo? For instance, I have this two URLs that I store in a database as strings, http://vimeo.com/24456787 http://www.youtube.com/watch?v=rj18UQjPpGA&feature=player_embedded If the URL is youtube then I will rewrite the URL to, http://www.youtube.com/embed/rj18UQjPpGA?rel=0&wmode=transparent If the URL is vimeo then I will rewrite this URL to, http://vimeo.com/moogaloop.swf?clip_id=24456787 Thanks. As others have noted in the comments, this is a quick and dirty solution that does not handle edge cases well. If the url

Chrome Vimeo Iframe autoplay not working anymore

ぃ、小莉子 提交于 2019-12-02 20:50:57
since some days my vimeo iframe will not autoplay anymore. I know the chrome update, which will block autoplay videos with sound. Is the block already active? The Vimeo Example code doesn't work: <iframe src="https://player.vimeo.com/video/12345?autoplay=1&loop=1&autopause=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> But netflix.com and vimeo itself has an autoplay video on the homepage, which works. EDIT: Chrome version 66.0.3359.139 macOS High Sierra 10.13.4 Does anyone have an idea or answer? Thanks! yes, according to their

Vimeo videos in iPhone app

妖精的绣舞 提交于 2019-12-02 18:39:20
I was wondering if there's a way to "embed" a Vimeo video in an iPhone app. For YouTube videos I'm using a webview containing the correct embed code for the YouTube video and the iPhone's native YouTube support will then transform the flash player into a YouTube button. Is there a similar way to play Vimeo videos from my app? Maybe someone knows the correct <video> -src for Vimeo videos? thanks, Thomas It appears that vimeo is transcoding all videos being uploaded these days into versions compatible for the iphone which are used on their site when you browse from an iphone or ipad. You can

YouTube Vimeo Video ID from Embed Code or From URL with PHP Regular Expression RegEx

末鹿安然 提交于 2019-12-02 18:35:45
I want to get Video ID for YouTube or Vimeo via its Embed code or from URL, Any solution to do this with PHP ? You could use preg_match to get the IDs. I will cover the expressions themselves later in this answer, but here is the basic idea of how to use preg_match: preg_match('expression(video_id)', "http://www.your.url.here", $matches); $video_id = $matches[1]; Here is a breakdown of the expressions for each type of possible input you asked about. I included a link for each showing some test cases and the results. For YouTube URLs such as http://www.youtube.com/watch?v=89OpN_277yY , you

Get video id from Vimeo url

一笑奈何 提交于 2019-12-02 18:03:18
I'm trying to find the best regexp to fetch vimeo video id from URL. Example urls : https://vimeo.com/11111111 http://vimeo.com/11111111 https://www.vimeo.com/11111111 http://www.vimeo.com/11111111 https://vimeo.com/channels/11111111 http://vimeo.com/channels/11111111 https://vimeo.com/groups/name/videos/11111111 http://vimeo.com/groups/name/videos/11111111 https://vimeo.com/album/2222222/video/11111111 http://vimeo.com/album/2222222/video/11111111 https://vimeo.com/11111111?param=test http://vimeo.com/11111111?param=test My current regexp which doesn't work: /http:\/\/(www\.)?vimeo.com\/(\d+)

Vimeo Upload API - “Invalid state” error trying to delete the ticket

↘锁芯ラ 提交于 2019-12-02 14:08:29
问题 I followed step by step of the oficial Vimeo Upload doc: Resumable HTTP PUT Uploads But in the last step, delete the upload link, I always receive a HTTP 500 "Invalid State" response , what invalidates all the process. I have tried everything without success! Related questions: "Invalid State" after Vimeo API delete Vimeo Forum: Invalid state during upload of video To upload the video, I adapted the vimeo-networking-java API. Main changes above: In the VimeoService.java @Multipart @Headers(

Android: Vimeo video not playing inside webview

孤者浪人 提交于 2019-12-02 10:10:43
I have to play vimeo videos inside webview, consider the below code: <iframe src='http://player.vimeo.com/video/74175376' width='100%' height='500px' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> When I play this, it plays only the audio but the video is black. I am using the below code: WebSettings s = wv.getSettings(); wv.setWebChromeClient(new MyWebChromeClient()); s.setBuiltInZoomControls(true); s.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NORMAL); s.setUseWideViewPort(true); s.setLoadWithOverviewMode(true); s.setSavePassword(true); s

Cordova whitelist iOS 10 SSL error: Failed to load resource: An SSL error has occurred and a secure connection to the server cannot be made

核能气质少年 提交于 2019-12-02 09:17:01
I am trying to send an ArrayBuffer to https://1511921174.cloud.vimeo.com/upload?ticket_id=xxxxxxxxxx&video_file_id=xxxxxx&signature=xxxxxxxx=1%22 In iOS 10 nothing is happening. There must me a whitelisting error. I am whitelisting *.vimeo.com and *.cloud.vimeo.com per the cordova-plugin-whitelist docs. Everything works fine in iOS 9 and on Android. <access origin="http://*.vimeo.com" subdomains="true" /> <access origin="https://*.vimeo.com" subdomains="true" /> <access origin="http://*.cloud.vimeo.com" subdomains="true" /> <access origin="https://*.cloud.vimeo.com" subdomains="true" /> Any

Vimeo Upload API - “Invalid state” error trying to delete the ticket

☆樱花仙子☆ 提交于 2019-12-02 04:22:37
I followed step by step of the oficial Vimeo Upload doc: Resumable HTTP PUT Uploads But in the last step, delete the upload link, I always receive a HTTP 500 "Invalid State" response , what invalidates all the process. I have tried everything without success! Related questions: "Invalid State" after Vimeo API delete Vimeo Forum: Invalid state during upload of video To upload the video, I adapted the vimeo-networking-java API. Main changes above: In the VimeoService.java @Multipart @Headers("Content-Type: video/mp4") @PUT Call<Object> UPLOAD(@Header("Authorization") String authHeader, @Url