I have this question mainly about youtube video's, but extentable to any flash app that plays in fullscreen. Is there a possibility to make fullscreen not take over the entire screen, but just inside the tab where the video is loaded? Is there any addon or setting I can use to make this happen?
If other browsers (eg Chrome) do support this functionality, please feel free to reply!
Thanks in advance, Tom
Quick and dirty code for scratchpad or bookmarklet to view a youtube video as full page:
if(location.href.match(/^https?:\/\/(?:www\.)?youtube\.com\/watch\?v=(\w+)/)){
location.assign(["http://www.youtube.com/embed/",RegExp.$1].join(""));
}
Note: Snippet omits encodeURIComponent and parsing query parameters, which you probably should implement if you're going to use it in an actual bookmarklet/userscript/addon.
Related
This is either a programming request or a simple workaround...
Preface: I don't like Google and don't want to give YouTube any more support than I have to. However some creators I follow are only on YouTube.
Question: is there a way to always show closed captions (when available) when watching YouTube videos without being logged in/having an account? Is there an extension with this behavior?
Issue: When I watch multiple videos in a row, using the ?view=57 url trick and "Play All" button, the captions turn off when switching between videos... I have to enter the other room and hit the "c" button on the keyboard to turn them back on every time, which is inconvenient while streaming.
Action: I've searched for Firefox add-ons and extensions but their behaviors are all generically described... and I can't ascertain if they have this behavior. And many that talk about subtitles are you uploading your own .srt which is NOT what I'm trying to do.
Any help would be appreciated... it's a small but very frequently experienced annoyance and I feel like there must be some easy solution! Or... this could be a fun practice exercise for someone to release on github or something ;)
Thanks in advance.
I wanted to convert some few flash files to HTML 5 Based Videos, I tried using Google Swiffy which was much better than any other converters. The only problem is it doesn't have support for audio in Mozilla Firefox, android Browsers and Mobile safari browsers. Is there any way to manipulate the JSON data and make it work on all the browsers, if yes, how? if no, why?.
Clear explanation on how Swiffy works is much appreciated.
Thanks in Advance
I've found that a better solution is to separate the audio and animation and encapsulate each. For example, create an AnimationPlayer and an AudioPlayer. Within each of those, implement Swiffy and say Jplayer respectively. This way if you need to replace your swiffy animations with CreateJS sprites or whatever the next cool thing is, you can without breaking your other code. This also of course addresses the audio problem by using a well developed audio player that likely works and is maintained for all browsers.
Since the question was asked, the audio now works in Firefox (23) - the compatibility chart at the swiffy site stops at FF 15. Let's say "partially supported", because in both FF and IE9, the sound is apt to stop when animations get complicated. Works beautifully in Chrome, though.
Michael Prdescott's answer may offer some hope for iPads, which still don't recognize swiffy sound. But, I'm wondering how it would work - the user would press two buttons (one for sound, one for video)? Or the audio and video would load together and autoplay? Either way, wouldn't that make a mess (or at least be risky) when sound/video are meant to be synchronized?
I've been dealing with taking screenshots for Firefox and Safari browsers but I can't figure out how to do it! With Google Chrome API I can do it this way (it's pretty simple):
chrome.tabs.captureVisibleTab(null, null, function (image)).....etc
BUT I can't find a SIMPLE way to do it on Firefox and Safari!! The only answer I got here was using the 'html2canvas' (http://html2canvas.hertzen.com/examples.html) BUT IT IS NOT a 100% solution in order to take EXACT screenshots of a specific webpage!! It doesn't work for me in this case!!!
Can someone help me with this issue in order to find a simple solution for Firefox and Safari?
I have personally used html2canvas and I found it quite efficient for taking partial or full page screenshots. But it does require you some knowledge of JavaScript and client side scripting.
If you are looking for a more easier approach , there are numerous extensions on Google Chrome webstore.
A popular one is Awesome Screenshot which even allows you to take screenshot of entire webpage (till the scroll bar ends).
You can use Mozilla's chrome tools to draw some or all of the window to an image canvas:
var c2d = myCanvas.getContext('2d');
c2d.drawWindow(window, x, y, w, h, 'rgb(255,255,255)');
See drawWindow(), XUL.
I don't remember exactly, but that's the gist. The magic is the .drawWindow() method, which cannot be executed on the content side, it must be in an area with chrome privileges (like an add-on/extension).
Edit: Here's a good example.
i want to create a help video and put theme on my web site.
i did some search i internet to find whats the best way to do it.
use flash player or use Microsoft silver light technology to do this?
what s the best open source video player for my case?
my site is on mvc3 razor on .net4.0
and my video are in .wvm format off course i can convert theme
to any other format
please guide me which one of them is better and have advantage rather than other?
thanks all
My suggestion would be to use neither and use HTML 5 and the Video element.
Flash and Silverlight are becoming deprecated technologies for Web UI's now.
You could use third party libraries such as modernizr to detect the browser capabilities and respond accordingly.
This page contains cross-browser polyfills, search the page for Video
I want to capture a webpage as an image. I am able to do this using a firefox extension using context.drawWindow method. Now I want to strech myself and see if I can do this using a bookmarklet :)
I remember reading somewhere that context.drawWindow() works only from the firefox toolbars. I dont know if that's still true or not.
Can anyone shed some light if I can execute context.drawWindow() from a bookmarklet or no?
Thanks
Kapil
You can't, since bookmarklets run with the permissions of the page, and drawWindow is chrome-only (can only be used by Firefox UI and extensions, not Web pages).