vimeo

How to control Apple video player on ipad (video embedded with iframe and html5 vimeo solution)

≯℡__Kan透↙ 提交于 2019-12-03 23:19:56
I embedded a video with vimeo html5 embedding solution. I can play the video on ipad. I would like to hide the player and pause the video when clicking on a link or unload the video when clicking on a link; then reload the video when clicking on another link I tried Apple javascript solution for pausing: https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/ControllingMediaWithJavaScript/ControllingMediaWithJavaScript.html function playPause() { var myVideo = document.getElementsByTagName('video')[0]; if (myVideo.paused) myVideo.play(); else

How to show HLS embedded captions on Exoplayer

廉价感情. 提交于 2019-12-03 21:05:46
how do I enable and also select different subtitles that are embedded in a Vimeo video in HLS format using Exoplayer, ExoMedia or another player? In iOS this same video already presents the option of subtitles natively but in Android I cannot find means to implement it. This works well! TrackGroupArray trackGroups = mappedTrackInfo.getTrackGroups(rendererIndex); TrackSelectionArray currentTrackGroups = player.getCurrentTrackSelections(); TrackSelection currentTrackSelection = currentTrackGroups.get(rendererIndex); for (int groupIndex = 0; groupIndex < trackGroups.length; groupIndex++) {

How can I replace youtube / vimeo url with embed code in javascript code?

梦想的初衷 提交于 2019-12-03 20:32:10
I've tried replace youtube and vimeo url with embed code in javascript code. I've used this code: EXAMPLE 1: HTML: <div id="divContent"></div> JAVASCRIPT: $("#divContent").html('http://www.youtube.com/watch?v=t-ZRX8984sc <br /> http://vimeo.com/82495711 <br /> http://youtu.be/t-ZRX8984sc'); $('#divContent').html(function(i, html) { return html.replace(/(?:http:\/\/)?(?:www\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?v=)?(.+)/g, '<iframe width="200" height="100" src="http://www.youtube.com/embed/$1" frameborder="0" allowfullscreen></iframe>').replace(/(?:http:\/\/)?(?:www\.)?(?:vimeo\.com)\/(.+)/g

Dynamically get thumbnails and titles of vimeo videos

只谈情不闲聊 提交于 2019-12-03 16:12:30
Picking up from this question: Get img thumbnails from Vimeo? I'm trying to create a page with several vimeo videos on it. I want to have the videos in the HTML look like this: <div id='12345678' class='vimeo'></div> <div id='23423423' class='vimeo'></div> And then I want the jQuery to populate the divs with an img where the src is the thumbnail from vimeo, and an a which points to the video, and whose text is the title of the video. That is, it should end up like this: <div id='12345678' class='vimeo'> <a href='https://vimeo.com/12345678'> <img src='url-to-thumbnail.jpg' /> Video Title </a> <

Modify iframe.src without entry to history object

你。 提交于 2019-12-03 15:00:37
I have an iframe in my web page. I modify the src property via javascript like so: document.getElementById('myiframe').src = 'http://vimeo.com/videoid1'; document.getElementById('myiframe').src = 'http://vimeo.com/videoid2'; document.getElementById('myiframe').src = 'http://vimeo.com/videoid3'; However, everytime I do this, it's logged into the browser's history. So everytime I press back in the browser window, the iframe content goes from videoid3 to videoid2 to videoid1. If I press back again, the entire page goes back. I would like to modify the iframe src with javascript WITHOUT logging an

Get direct link videos from Vimeo in PHP

倾然丶 夕夏残阳落幕 提交于 2019-12-03 13:54:33
问题 I want a direct link to videos from Vimeo with a PHP script. I managed to find them manually, but my PHP script does not work. Here is the initiative: For example I took this video: http://vimeo.com/22439234 When you go on the page, Vimeo generates a signature associated with the current timestamp and this video. This information is stored in a JavaScript variable, around line 520 just after: window.addEvent ('domready', function () { Then when you click Play, the HTML5 player reads this

Upload a video file by chunks

人走茶凉 提交于 2019-12-03 13:11:57
问题 Yes, it's a long question with a lot of detail... So, my question is: How can I stream an upload to Vimeo in segments? For anyone wanting to copy and debug on their own machine: Here are the things you need: My code here. Include the Scribe library found here Have a valid video file (mp4) which is at least greater than 10 MB and put it in the directory C:\test.mp4 or change that code to point wherever yours is. That's it! Thanks for helping me out! Big update: I've left a working API Key and

Lightbox to show videos from Youtube and Vimeo? [closed]

Deadly 提交于 2019-12-03 10:30:03
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'm looking for a lightbox to show videos from Youtube and Vimeo. Any suggestions? 回答1: Check out Fancybox. If you need the video to

Get Vimeo thumbnail for video using jQuery

╄→尐↘猪︶ㄣ 提交于 2019-12-03 09:55:46
问题 I've found similar questions but none of the answers show clearly and easily how to get a thumbnail for a vimeo video using jQuery and JSON. If anyone can help that would be great, here is what I've got but it shows nothing at the moment. var vimeoVideoID = '17631561'; var videoCallback = 'showThumb'; $.getJSON('http://www.vimeo.com/api/v2/video/' + vimeoVideoID + '.json?callback=' + videoCallback, function(data){ $(".thumbs").attr('src',data[0].thumbnail_large); }); Thanks in advance. 回答1: I

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

跟風遠走 提交于 2019-12-03 08:21:50
问题 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. 回答1: As others have