Description: The following article mainly talks about the netflix com activate, introducing the Queued which is an open source application built by SitePen. It is a great guidance of what you can do with Dojo on the AIR platform. Queued will let you manage your Netflix queue anytime and anyplace.
The overall idea is simple. You link your Netflix account with cued as what I do. You’re able to browse your DVD queue. You can look your instant queue. You can reorder things. You can rate movies and get more detail about them. You can click things to get a more detailed dialogue where you can browse through Netflix.
We have a search function. You will get the list of things that are available. We can look at it. We can add these things to our queue from here. You can look through the different public feeds that Netflix makes available. Feeds will show the top movies and most popular thing. You can get a feel about how that works.
There’s also a recommendation tab which pulls in Netflix. You’ll like it. This looks like the search result. You can do most of this when you’re offline. That is cool. I’ll talk more about that in a minute about the combination of Dojo and Air. Let us create some interesting features that will cover a little bit more depth.
The first is the notification system we have now. Unfortunately, I don’t have anything coming today so I can’t show you the notification. What we do here is to pull the Netflix servers on a periodic basis and compare what we have in our at-home queue with what Netflix reports. If we’re able to pop it up, a little notification window will arrive or ship.
We get a neat little miniature window that shows you’re at home queue. You can leave this running on your desktop. If you don’t want to leave the main cued window open, you can also run searches for directly from here. It can takes you to the search results as well. That’s handy to have around.
One of the coolest features that we have is the offline mode. It is the single biggest piece of functionality in the whole application at least as far as the amount of effort that we put into getting it to work. We’ve got two different versions of the internal service that we created to talk to the Netflix API.
First, we’ve got the online version that talks directly to the API for all the different actions you do. Then we have the offline mode which saves up requests in a transaction queue. We’ve got a simple little property accessor function that we use on an object internally.
It does the switching for us transparently in the background based on a network service monitor. That’s also running in the background. When you’re online, the internal service does everything again directly as you’re working. It does its best to cash all the data that it gets back movie details, your ratings, search results and even the box art from the DVDs.
All of these are saved locally to desk and an encrypted database or in the case of the box art goes right onto your file system. That makes a smooth transition. When you go offline, you will get this little notification. It tells you that you’re in offline mode and everything is going to get queued up and replayed back.
When you’re back online, you can still do things like reorder the cue. I’ll do that. When you go back online, the little monitor detects that you’re back online. You will get this dialogue that lets you synchronize the changes you’ve made or throw them away.
I’ll synchronize what I’ve got and now I will back online. We think this is a nice application. Since the sitepen has been in the business of creating web applications, our team felt right at home working in the air environment especially with Dojo as our tool.
It’s like doing regular browser oriented development. With a bigger sandbox, you’ve got the addition of local storage, the database engine offline and all these other desktop features that made for a nice environment. We only had to worry about targeting browser engine what saved us a lot of time.
In fact, the developers on this team were all either Mac or Windows users. We gave queued to one of our Linux people. As soon as he had air up, this worked right out of the box which is nice to see. The main point is that Dojo and air gave us a solid platform to work with.
We’ve got all the tools in Dojo at our disposal animation event, handling drag-and-drop layout predefined interface widgets. All of that was a solid framework to build on. We could put things together quickly with a high level of Polish. since air gave us the ability to store data locally and to work offline, we could create a seamless experience.
Thanks for reading. We hope you’ll give cued a try. This is an open source application. It’s hosted out on Google code. If you’re inclined, feel free to check that out. If you’d like to learn more about Dojo, you can visit us at Dojo.toolkit.org. You can visit us at sitepen.com. We build web apps to provide Dojo support. That is the full spectrum of web development. Thanks again.