I made a Vidi mobile app.

roguemat

Expert Member
Joined
Dec 13, 2005
Messages
2,025
Reaction score
16
On Saturday night I signed up for the Vidi trial. Although they don't have boat-loads of stuff, I think it's cool that they're trying. And I'm 100% sure it will continue to improve and be awesome.
Playing around with the site I realize what people are complaining about. Every time you click anything it reloads the whole [very] over-sized page.

Anyway, I couldn't find a good way to get hold of them to tell them they need a WP app, so I spent Sunday making one :D
In the video below is a native Windows Phone app. It authenticates against their service correctly (I mean, with any normal account, not just magic hax), and correctly streams their whole library (besides the paid movies).

Half way through I realized that it was just far too slow though. I mean, every time you clicked something it was a 10+ second wait, partly because they're doing some very odd things. So I then wrote a script to index all the content on the site. With that data I built up a REST API and deployed it to Azure. Everything except login is done via my server to make it nice and quick. Credentials never go to my server though, only Vidi.
Having proper data means I can also correctly organize it. I hate that Vidi lists each season individually like it is a different show. So in my app a series only shows up as one item, and has each season within. I'm interested to work out how many hours of content they have (etc.) too.

I've only implemented searching right now, not highlights/sections etc.
Also, NB NOTE: This was done in 1 day, so a lot of the styling is dodgy, and it isn't what I would consider store-ready. That being said, it's not just a webwrapper like their Android app :P

[video=youtube;KVOZ_1w5hkI]https://www.youtube.com/watch?v=KVOZ_1w5hkI[/video]

Vidi, let's chat. My email is in the video.


p.s. feel free to link this to Vidi.
 
Last edited:
Hope they don't be dicks and block the app. Maybe somebody should make an app for blackberry too.
 
Hope they don't be dicks and block the app. Maybe somebody should make an app for blackberry too.
People with BlackBerry phones don't have the money for video streaming services so why bother?



:twisted:

Nice one OP. Seems a lot of guys are writing for WP first these days.
 
I applaud you dude. Not enough people taking WP seriously. Your 1 day of work is very well done. Imagine a few weeks of work done by "Pro's", what could be achieved.
 
Well done, I am just wondering what a few days without distraction could do for paying clients :whistle:
 
I applaud you dude. Not enough people taking WP seriously. Your 1 day of work is very well done. Imagine a few weeks of work done by "Pro's", what could be achieved.

+5 well done :)
 
Any chance you would release your source code? A github repo or similar?

EDIT: And good job :D Again the MyBB delivers!
 
Maybe somebody should make an app for blackberry too.
I would but the extra load would crash Azure.

Well done, I am just wondering what a few days without distraction could do for paying clients :whistle:
Saturday was more productive than Sunday. Check your backlog ;-)

Could you possibly make this a universal app?
Yup.

Any chance you would release your source code? A github repo or similar?
I'm going to give Vidi some time to respond first.
 
I'm going to give Vidi some time to respond first.

@roguemat, you biscuit... I started making a VIDI app too this weekend... damn you...

I sent them a mail last week, unfortunately they don't have an API yet (apparently they are working on a XBOX version?), said they would notify everyone when its public.

Great work on the Azure side of things (why didn't I think of that?), although indexing their site won't give user's their recently viewed videos (not a major issue).

I was working on another method (rather archaic), using web-scraping and some regular expressions.

var client = new RestClient("http://vidi.co.za/")
{
CookieContainer = cookieContainer
};

client.AddEncoding("gzip", new RestSharp.Portable.Encodings.GzipEncoding());

var request = new RestRequest("library.aspx", HttpMethod.Post);

request.AddHeader("Accept", "*/*");
request.AddHeader("Accept-Encoding", "gzip,deflate");
request.AddHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36");

request.AddParameter("ctl00$ctl00$control_login1$txtEmail", "[email protected]");
request.AddParameter("ctl00$ctl00$control_login1$txtPassword", "password");
request.AddParameter("ctl00$ctl00$control_setpgpassword1$ddlGuidanceLevel", "1");

request.AddParameter("__EVENTTARGET", "ctl00$ctl00$control_login1$lnkSignIn");
request.AddParameter("__EVENTARGUMENT", "");

var result = await client.Execute<string>(request);

return result;

Yes, I know that the service is restful, just a nice simple PCL library to use, the idea is that they actually use a rest service in future.

RegEx (snippet):
class\=\"(?:slider|sliderwide)\".*?\<ul.*?(?:\<li\>.*?href\=\"(?<href>.*?)\".*?StripImage.*?src\=\"(?<image>.*?)\".*?(?:StripSeasons.*?\>(?<season>.*?)\<.*?)?(?:StripComingSoon.*?\>(?<comingsoon>.*?)\<.*?)?(?:StripRent.*?\>(?<rent>.*?)\<.*?)?(?:StripSubscription.*?\>(?<subscription>.*?)\<.*?)?\<\/li\>)*\<\/ul>
 
Last edited:
@roguemat, you biscuit... I started making a VIDI app too this weekend... damn you...

Is it just me who had an actual social life over the weekend (i.e. stepping away from the keyboard), meeting real people and having alcohol and real conversations (Siri/Cortana does not count)?
 
Is it just me who had an actual social life over the weekend (i.e. stepping away from the keyboard), meeting real people and having alcohol and real conversations (Siri/Cortana does not count)?

Yep, only you. I was busy with some fun side projects too.

I did stop to have two braais though :D
 
@sYk0, eugh, viewstates :(

Is it just me who had an actual social life over the weekend (i.e. stepping away from the keyboard), meeting real people and having alcohol and real conversations (Siri/Cortana does not count)?

I totally had social interaction over a movie with the wife. That counts!
 
Top
Sign up to the MyBroadband newsletter
X