text stringlengths 1 330k |
|---|
I have a video tag running as follows: |
src="{{ page | video_url }}" |
poster="{{ page | video_poster_image_url }}" |
I am using Jekyll for the urls. They work fine. |
The site is live at swtizerlandllc.com. Click any video in FF and it shows an image and an X. Chrome and other browsers work fine. |
If you grab the source of a video and load it in a new tab it plays fine. At least it does for me. |
I have added: |
AddType video/ogg .ogv |
AddType video/mp4 .mp4 |
AddType video/webm .webm |
to my htaccess file. I suspect that I don't need the .ogv or .webm |
I don't understand why loading the video url will play the videos fine but loading the video into a video tag fails. |
any ideas? |
share|improve this question |
3 Answers 3 |
up vote 24 down vote accepted |
Firefox does not support the MP4 format within its video tag. The main reason why is the royalty fee attached to the mp4 format. |
Check out Media formats supported by the audio and video elements directly from the Mozilla crew or the following blog post for more information: |
share|improve this answer |
Direct from the source: developer.mozilla.org/En/… – Sam Dufel May 7 '12 at 20:41 |
Thanks, I updated my answer with the link! – Josh Mein May 7 '12 at 20:45 |
I have seen this answer around but then why does the video play if you load the path in a new tab? – TJ Sherrill May 7 '12 at 20:55 |
I assume the issue is that in order to support mp4 in their video tag, the Firefox crew would have to pay for a license. Whereas, if the user just puts the link in the browser, they dont have to pay anything. – Josh Mein May 7 '12 at 21:01 |
@TJSherrill, it is probably playing because of a Firefox plugin (like Quicktime). This doesn't mean it will work in a <video> element. – MPD May 7 '12 at 21:24 |
Firefox 21 supports MP4 H.264 by default. Yay! Just try this video test - http://www.quirksmode.org/html5/tests/video.html |
EDIT: FF21+ only on windows 7+ apparently. https://developer.mozilla.org/en-US/docs/HTML/Supported_media_formats |
share|improve this answer |
I can confirm that mp4 just will not work in the video tag. No matter how much you try to mess with the type tag and the codec and the mime types from the server. |
Crazy, because for the same exact video, on the same test page, the old embed tag for an mp4 works just fine in firefox. I spent all yesterday messing with this. Firefox is like IE all of a sudden, hours and hours of time, not billable. Yay. |
Speaking of IE, it fails FAR MORE gracefully on this. When it can't match up the format it falls to the content between the tags, so it is possible to just put video around object around embed and everything works great. Firefox, nope, despite failing, it puts up the poster image (greyed out so that isn't even useful as a fallback) with an error message smack in the middle. So now the options are put in browser recognition code (meaning we've gained nothing on embedding videos in the last ten years) or ditch html5. |
share|improve this answer |
+1 "Firefox is like IE all of a sudden, hours and hours of time, not billable." – Geo Nov 6 '13 at 22:11 |
Which video type works? OGG, or WEBM? – Jackson_Sandland Nov 16 at 23:44 |
Your Answer |
Generating Entities as a Markov-Modulated Poisson Process |
This example shows how to generate entities using a Markov-modulated Poisson process, which is a Poisson process whose rate depends on the state of a Markov chain. In particular, the process is an interrupted Poisson process because the "off" state prevents entity generation. |
The model includes three independent on-off modulated Markov sources so you can see how their behavior depends on the rate of the Poisson process when the Markov chain is in the "on" state. The Path Combiner block aggregates the outputs of all the On-Off Modulated Markov Source subsystems. |
Each of the On-Off Modulated Markov Source subsystems behaves as follows: |
• The Time-Based Entity Generator block models the Markov chain by generating an entity each time the chain changes state. |
• The Entity Departure Event to Function-Call Event conveys the state change to the Create Generator Selection Variable subsystem, whose output changes from 0 to 1 or vice versa. |
• The block labeled Generator 1 models the Poisson process by generating entities that attempt to depart from this On-Off Modulated Markov Source subsystem. (By contrast, the entities that represent the state changes of the Markov chain do not depart from this subsystem.) |
• The Enabled Gate block regulates departures from the subsystem. If the state of the Markov chain is "off", the gate is closed and entities cannot depart. |
Results and Displays |
Average Time between On-Off Points = 5 and Average Intergeneration Time = 1 |
Average Time between On-Off Points = 15 and Average Intergeneration Time = 4 |
Average Time between On-Off Points = 50 and Average Intergeneration Time = 10 |
Related Examples |
Take the 2-minute tour × |
My computer (also router) uses Teredo to access and be visible on IPv6. |
How to assign neighbor IPv6 addresses to other computers for them to be able to be routed to Teredo using the router? |
enter image description here |
What ip -6 addr, ip -6 link, ip -6 route, ip6tables and sysctl sys.net...forwarding commands should I use on hosts and on router? (assuming miredo is already working on "My router") |
share|improve this question |
1 Answer 1 |
up vote 1 down vote accepted |
Teredo is an 'IPv6 for one host' type protocol. You cannot provide IPv6 to other computers on your network with Teredo. Every node will have to do their own Teredo. |
But Teredo is very unreliable. If you can use IPv6 provided by an ISP. If that is not possible then use a tunnelbroker like sixxs.net or tunnelbroker.net. Avoid unreliable methods like 6to4 and Teredo. |
share|improve this answer |
Can I do NAT for IPv6 so all requests to Teredo will appear to be like if they oridinating from "My Router" instead? – Vi. Oct 1 '12 at 17:06 |
Technically: yes, but you still have a very unreliable Teredo connection. All applications will try to use IPv6 and many of them will fail. You don't want that brokenness in your network... Set up a tunnel to SixXS.net or Tunnelbroker.net (both free) and you will be much happier. – Sander Steffann Oct 2 '12 at 8:57 |
Your Answer |
Forgot your password? |
Comment: Traceroute (Score 1) 558 |
by wallyhall (#43535599) Attached to: Average latency to Slashdot.org? |
Well, tracert. Am stuck on a cruddy Windows workstation. |
3 7 ms 6 ms 6 ms |
4 9 ms 52 ms 75 ms core1-pos0-14-0-11.faraday.ukcore.bt.net [] |
5 11 ms 10 ms 11 ms |
6 7 ms 7 ms 6 ms core1-pos9-1.telehouse.ukcore.bt.net [] |
7 8 ms 7 ms 7 ms 166-49-211-157.eu.bt.net [] |
8 7 ms 7 ms 7 ms bcr1-at-3-1-0-950.londonlnx.savvis.net [] |
9 9 ms 8 ms 8 ms |
10 98 ms 97 ms 97 ms cr2-te-0-3-0-3.chd.savvis.net [] |
11 100 ms 100 ms 100 ms hr2-tengigabitethernet-12-1.elkgrovech3.savvis.net [] |
12 98 ms 98 ms 98 ms das5-v3031.ch3.savvis.net [] |
13 101 ms 107 ms 107 ms |
14 98 ms 98 ms 98 ms slashdot.org [] |
Trace complete. |
Comment: Re:3 screens ... efficiently. (Score 1) 312 |
by wallyhall (#43061863) Attached to: Ask Slashdot: Monitor Setup For Programmers |
I realise I only answered the later of your two questions! |
Forgive me. |
For your laptop/screen setup, if that's all you can have, I'd raise the laptop (stack of books works well) so the top is in-line with the top of your main screen. Put it to the left (or right, whichever feels best) and have your big screen central. |
Your neck will thank you in the long-run. :) (Left/right turns are easier than up/down, I strongly believe.) |
As others have said - get a USB keyboard and mouse (£10 online). |
Comment: 3 screens ... efficiently. (Score 1) 312 |
by wallyhall (#43061851) Attached to: Ask Slashdot: Monitor Setup For Programmers |
Middle holds the code I'm working on (Notepad2, Delphi, midnight commander or most likely vim - with PuTTY maximised.) |
Windows taskbar sits at the top of the middle screen, as it feels most natural to me... (given I have no choice of OS at work). |
Left of me is usually my inbox or a production monitoring screen, because I have that responsibility too. With web app programming it holds a browser showing the rendering of my latest code probably with the javascript debugger running. Depending on the nature of the code, it might be another PuTTY session with a "tail -f /var/log/mycode" ... because I rarely get it right first time ;-) |
Finally on the right, php.net or Delphi's awesome help files, or even some reference material from stackoverflow (WIN). Slashdot sits in a tab at the back there. |
Most importantly, with 3 screens I've never felt I don't have enough space. My brain can only handle 2 things at once (i.e. code and code output, or stackoverflow and code, or code output and the email I'm copying it into, etc) ... but my brain (personally) gets distracted if I loose something "behind" another. So having that 3rd screen lets me have 3 things open, switching between any combination of a pair. |
I like having them big enough for my poor eye sight, reasonably low brightness setting (with high contrast). Different white balance annoys me, but that's a personal thing purely. |
Finally, they have to be high enough. I'm tall, and I sit upon a gym ball to try and enforce my naturally awful posture. Having the screens a little higher than recommended relieves my neck pain hugely. (Someone will no doubt tell me I'm wrong here! I personally find it works well, judging by how well I sleep at late.) |
A non-distracting wallpaper (solid colour) or a good MacOSX shipped offering and no icons (no, not one!) ... they distract me hugely. And a little tip from myself, have the two on the left/right slightly lower (if your taskbar is at the top, or slightly higher if the bottom) so you can move straight to the start button and system tray and have Windows "corner" your mouse cursor for you (without it flying off to another screen). |
I've met several good programmers who swear 2 is enough, I've secretly sourced and subtly (like a ninja) installed a 3rd screen for them, they didn't even notice for the first few hours. They've all eventually converted. |
It's not about *using* all three, it's about having the room to spread work out, without having to context switch yourself between stacks of windows. Well, at least it is for me. |
Comment: Re:Simple (Score 1) 76 |
by wallyhall (#41726485) Attached to: Ask Slashdot: How To Both Mirror and Protect Crowdsourced Data? |
[Not so] simple? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.