Live data from Hacker News

iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas

docs.google.com

81–90 of 121 posts

Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas

#81
post #49
post #32

Earlier quoted context omitted.

What's difficult about centering a box? Was that just sarcasm? A couple of approaches: Margin Auto w/ a fixed width Absolute 50% w/ negative margins Text-align center parent w/ inline-block display on children If it was sarcasm, disregard my stupidity.

That's still non-intuitive. Just do a search about centering (or X problem in CSS) and see the thousands of threads and questions and corner cases, hacks and exceptions. The whole thing feels like you are stretching something beyond what it was intended to be used for. Things like element positioning should be so so simple that if you search about it, you get nothing back because no one had a problem to ask for solut…

  > most web technologies feel this way 
Most technologies you don't know feel this way. And the reason—you don't know them.

  > It's not getting all that much better either because each
  > new version and improvement is building on top of the
  > previous decisions
In this case: no.

Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas

#82
post #9
post #7

Earlier quoted context omitted.

As noted in the post, iOS devices will only do video tags fullscreen.

that is only true for iPhone and iPod touch, you can have inline video on the iPad.

And in iAds on the phone...

Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas

#83
Isn't this the same as Clipstream[1]? The company that developed it has filed for patent[2]. I wonder if Apple licensed the technology or came up with it themselves independently.

[1] http://news.ycombinator.com/item?id=4419345

[2] http://www.dsny.com/HTML5

Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas

#84
post #32

Earlier quoted context omitted.

What's difficult about centering a box? Was that just sarcasm? A couple of approaches: Margin Auto w/ a fixed width Absolute 50% w/ negative margins Text-align center parent w/ inline-block display on children If it was sarcasm, disregard my stupidity.

Right. Now center it vertically. Also don't make any assumptions (like fixed height, or display: block) about container and the box to be centered.

http://cssdeck.com/labs/aqdw0l21/0

Container has fixed dimensions in my example, but it does not matter in this case.

Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas

#85
post #40

Earlier quoted context omitted.

They may not have a responsive site because they want to "show off" that the iPad and iPhone browsers are powerful enough to display fancy full-size sites, along with encouraging first-time users to pinch or double tap to zoom.

The navigation looks terrible on an iPhone. It's a remarkably bad design for mobile.

If you visit the site on iOS, it will prompt you to download the Apple Store app.

Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas

#86
post #77
post #76

Earlier quoted context omitted.

> They've gone out of their way to ensure that you can't ever play an Audio/Video clip automatically on page load in iOS Safari Which sounds very wise from a user perspective. Imagine every crappy web advertiser auto playing videos on page load on Mobile Safari. Yuck. I don't want videos to auto-play on my Laptop, why would I want them on my phone? > Curse you iOS 4.3 for taking away our simulated clicks Simulated cl…

What do you do when that happens on your laptop? You close the page and move on. Why does it need to be any different on your mobile/tablet? I assume the battery cost of 2 seconds of video loading/playing once in a long time is negligible.

I usually do not use my laptop in a restaurant.

Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas

#87
post #37
post #36

Keep in mind that Apple outsources a lot of this front-end work to their agency, TBWA/Chiat/Day Media Arts Lab. As a services firm they have less incentive to use standards created by Apple, though I think they do really great work.

I was just about to comment asking whether Apple engineers actually did this. For sure this is some cool stuff, but I think it'd be a bummer to say "I work at Apple" and then in response to "oh cool, what do you work on?" say "I work on the iPhone -webpage-"

The saddest job at Apple is working on the tries-very-hard-to-look-and-feel-like-iOS-but-doesn’t-really-manage iPod nano OS. The website – especially these pages – is pretty exciting in comparison.

Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas

#88
post #33

Sublime Text was already doing the same with the big animation of its home page: http://www.sublimetext.com/ (you can actually see three animations there, depending if you use Windows, Linux or Mac). What I'm really curious about is how those images are being generated. Is there a tool already available for that?

http://news.ycombinator.com/item?id=4532146

Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas

#89
post #79
post #76

Earlier quoted context omitted.

> They've gone out of their way to ensure that you can't ever play an Audio/Video clip automatically on page load in iOS Safari Which sounds very wise from a user perspective. Imagine every crappy web advertiser auto playing videos on page load on Mobile Safari. Yuck. I don't want videos to auto-play on my Laptop, why would I want them on my phone? > Curse you iOS 4.3 for taking away our simulated clicks Simulated cl…

> What do you do when that happens on your laptop? You close the page and move on. No, I proactively install apps such as "Click to flash" and the like to make sure this DOES NOT happen on my laptop. > Why does it need to be any different on your mobile/tablet? I assume the battery cost of 2 seconds of video loading/playing once in a long time is negligible. Because I could be anywhere surfing with my mobile/tablet,…

I disagree with the person above you's "negligible" comment. From what I understand, there is a significant battery difference for Android games between ad-supported free and ad-free paid. And the difference is due to all the extra radio usage for advertisements.

Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas

#90
post #78
post #32

Earlier quoted context omitted.

What's difficult about centering a box? Was that just sarcasm? A couple of approaches: Margin Auto w/ a fixed width Absolute 50% w/ negative margins Text-align center parent w/ inline-block display on children If it was sarcasm, disregard my stupidity.

> Margin Auto w/ a fixed width Absolute 50% w/ negative margins Text-align center parent w/ inline-block display on children Yes, totally intuitive and logical solutions all of them. If you have w3c Stockholm syndrome, that is. E.g "Just absolute 50% it with a negative margin" (oh, yes, and you would have to know the width beforehand). > If it was sarcasm, disregard my stupidity. It's not the stupidity, is the willin…

It's not the stupidity, is the willingness to put up with BS convoluted inelegant workarounds for lack of basic, bread and butter, features.

You're right, there is a willingness to put up with it. Mainly because I understand how these solutions work, how to debug them, and make everything nice and peachy. Do I wish things were better? Of course! Who wouldn't?

Post reply on HN