- After this weeks fiasco with a certain website denying us PlayBook owners access to their service, I decided to take matters into my own hands and develop a new browser. So my team and I came up with, what I call, the BWOWser for BlackBerry PlayBook.
I'm sure it'll just be a matter of time before this is not needed, but at least it gives PlayBook owners a glimpse of what ELSE is possible. If it does actually go to release, it will probably either be a 1 time fee or free and ad supported. (But clean looking ads that will not intrude on your browsing.)
The video is the 1st run of the app on real hardware, so it's a little rough around the edges- but hey, it works!
04-24-11 03:14 PMLike 0 - Hmm yes... if you instantiate one of these, put in a fake user agent and have it load Hulu.com you basically have a basic Hulu app.
qnx.media.QNXStageWebView
Going to try this tonight.04-24-11 04:40 PMLike 0 - Unfortunately my Flash Builder Burrito has expired and I'm waiting for CS5.5 to come out before I get it so... with this bit of ActionScript I think it should work. If anyone wants to try it, go ahead.
Code:package { import flash.display.Sprite; import flash.events.Event; import flash.events.TimerEvent; import flash.geom.Rectangle; import flash.utils.Timer; import qnx.events.WebViewEvent; import qnx.media.QNXStageWebView; import qnx.ui.events. import qnx.ui.progress.PercentageBar; [SWF(height="600", width="1024", frameRate="30", backgroundColor="#000000")] public class MyStageWeb extends Sprite { private var mySwv:QNXStageWebView; private var myProgress:PercentageBar; private var timer:Timer; public function MyStageWeb() { initializeUI(); } public function initializeUI():void { timer = new Timer(500); timer.addEventListener(TimerEvent.TIMER,handleTimerTick); timer.start(); mySwv = new QNXStageWebView("myBrowser"); mySwv.userAgent = 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9 ( .NET CLR 3.5.30729; .NET CLR 4.0.20506)'; mySwv.stage = this.stage; mySwv.viewPort = new Rectangle(0,0,1024,600); mySwv.addEventListener(WebViewEvent.DOCUMENT_LOAD_FINISHED, onLoad); mySwv.addEventListener(WebViewEvent.DOCUMENT_LOAD_FAILED, onFail); mySwv.loadURL("http://www.hulu.com/"); mySwv.zoomToFitWidthOnLoad = true; mySwv.blockPopups = true; mySwv.zOrder = -1; myProgress = new PercentageBar(); myProgress.x = (400-myProgress.width) /2; myProgress.y = (500-myProgress.height) /2; myProgress.width = 200; this.addChild(myProgress); } private function handleTimerTick(e:Event):void { myProgress.progress = mySwv.loadProgress/100; } private function onLoad(e:WebViewEvent):void { myProgress.progress = 1; mySwv.zOrder = 0; myProgress.destroy(); } private function onFail(e:WebViewEvent):void { trace("Hulu failed to load"); } } }
04-24-11 06:03 PMLike 0 - I just created an 'app' that launches Hulu in fullscreen. Unfortunately I have no clue how to enable 'production mode' in FB 4 so I can't get it signed and deploy to my playbook but otherwise it works fine.
Note: RIM is never going to approve this. Not until they have a deal with Hulu.
Here's my final working source, short and sweet:
Code:package { import flash.display.Sprite; import flash.events.Event; import flash.geom.Rectangle; import qnx.events.WebViewEvent; import qnx.media.QNXStageWebView; import qnx.ui.events.*; [SWF(height="600", width="1024", frameRate="30", backgroundColor="#000000")] public class HuluFaker extends Sprite { private var mySwv:QNXStageWebView; public function HuluFaker() { initializeUI(); } public function initializeUI():void { mySwv = new QNXStageWebView("myBrowser"); mySwv.userAgent = 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9 ( .NET CLR 3.5.30729; .NET CLR 4.0.20506)'; mySwv.stage = this.stage; mySwv.viewPort = new Rectangle(0,0,1024,600); mySwv.loadURL("http://www.hulu.com/"); mySwv.zoomToFitWidthOnLoad = true; mySwv.blockPopups = true; mySwv.zOrder = -1; } } }
Code:<permission>access_internet</permission> <access uri ="hulu.com"></access>
04-24-11 11:17 PMLike 0 -
-
Posted from my CrackBerry at wapforums.crackberry.com04-25-11 04:07 AMLike 0 - Hmmm yes if the description is worded like that maybe they'll let it go through. Something along the lines of it being a development thing and it being necessary at certain moments to be identified as a desktop browser. After all it is indeed true that some sites will present the PlayBook with a mobile version while that's obviously not desired.
I do hope it does get through because there's no easy way right now to share the Hulu love with others besides having an app make it into AppWorld.
That said, it takes forever to get approved by RIM (even updates to my existing app take insane amounts of time) so maybe by the time it gets there (if it does) they'll already have made an arrangement with Hulu.04-25-11 10:10 AMLike 0 - heck, I'll use if for grocery shopping more than for hulu (I tried to shop a couple nights ago and was told I had an unsupported browser). Also, FIOS on demand tells me I have to have Flash 10.2 installed. I do have Flash 10.2 installed. Plus, as Marco stated, I don't want the mobile version of sites.04-25-11 02:21 PMLike 0
- So where does one stick this code? :P
I just created an 'app' that launches Hulu in fullscreen. Unfortunately I have no clue how to enable 'production mode' in FB 4 so I can't get it signed and deploy to my playbook but otherwise it works fine.
Note: RIM is never going to approve this. Not until they have a deal with Hulu.
Here's my final working source, short and sweet:
Code:package { import flash.display.Sprite; import flash.events.Event; import flash.geom.Rectangle; import qnx.events.WebViewEvent; import qnx.media.QNXStageWebView; import qnx.ui.events.*; [SWF(height="600", width="1024", frameRate="30", backgroundColor="#000000")] public class HuluFaker extends Sprite { private var mySwv:QNXStageWebView; public function HuluFaker() { initializeUI(); } public function initializeUI():void { mySwv = new QNXStageWebView("myBrowser"); mySwv.userAgent = 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9 ( .NET CLR 3.5.30729; .NET CLR 4.0.20506)'; mySwv.stage = this.stage; mySwv.viewPort = new Rectangle(0,0,1024,600); mySwv.loadURL("http://www.hulu.com/"); mySwv.zoomToFitWidthOnLoad = true; mySwv.blockPopups = true; mySwv.zOrder = -1; } } }
Code:<permission>access_internet</permission> <access uri ="hulu.com"></access>
04-25-11 11:08 PMLike 0 -
- Ok, yea SOME stuff works, but none of the TV features work, none of the watch on your device stuff works. THAT is what I THINK, 312's app will fix, or at least I'm hoping.04-26-11 09:35 AMLike 0
-
- Forum
- BlackBerry PlayBook Forums
- PlayBook Apps & Games
BWOWser for PlayBook Demo
LINK TO POST COPIED TO CLIPBOARD