Video on Android phone - Android Software Development

Hi, I am doing a project sounds very simple, but it looks like not as easy as i thought.
I am trying to loading a video on a php page (only a video on this page, youtube or any player i don't mind) and after the video is finished, it will redirect automatically to another page (html, php, etc) for more details information.
How can i do it on Android phone? Because most of the android don't support Flash player yet.(I am doing on Hero and Milestones phone) What kind of player i should put on php to show the video. And how can i detect if it is finished.
Thank you so much.

I think the phones work with HTML5, but I'm not sure about that. Don't quote me on it .

TheAceOfHearts said:
I think the phones work with HTML5, but I'm not sure about that. Don't quote me on it .
Click to expand...
Click to collapse
Android 2.0 supports HTML5 - hence the outcry when Buzz was launched because if you didn't have a Nexus or DROID the phone couldn't use it.

Related

Surveilance Video Feed via Java on the PPC???

This might not be completely Wizard related, but thats what I have so I'll shoot. I was wondering if anyone had any idea on where to start looking for an ap to view Video Feeds from Security Cameras that are normally accessed via a Java Applet in IE. Like is there possibly a Java app that can display a feed that would be seerate of PIE? Maybe a program that can be changed or slightly modified?
The provider/manufacturer of the equipment doesn't offer anything. Their newer equipment uses ActiveX Controls rather than Java so maybe an upgrade could help? Any ideas/help would be appreciated.
The Company has a Demo of the Java Applet that is used to view the feeds. Same as we use for the bar but we only have 9 feeds. Viewing one feed at a time would be perfectly fine and probaly desired on the smaller screen.
See the demo here...
http://208.50.31.214/ Java VM Page. Login for the Demo is admin : admin
Any Ideas??
Cliffs: Can anyone think of a way to view the feeds in the demo above on a PPC? Java VM related...
ANy good places to go for Java related resources for the WM5? I would like to at least play around with it. Maybe try to tweak and work up a different solution. Any help would be appreciated.
pookrat said:
Maybe try to tweak and work up a different solution. Any help would be appreciated.
Click to expand...
Click to collapse
I'd just hold out for a real browser than can display your java-based feed. Never fear, one's coming...
See: Skyfire.
Take a look: http://webcam-holmes.en.softonic.com/pocket
If your desired feed is actually a "Webcam" then this might be the ticket for you...
SkyFire looks promising. Can't wait to get my hands on a copy. Maybe a Beta a little early?
pookrat said:
Maybe a Beta a little early?
Click to expand...
Click to collapse
Good luck. I think they've passed them all out already, and the licenses are utterly non-transferable, so any beta copies that have been shared out have been unusable by anyone but the authorized recipient.
There's a thread on this board (somewhere, you search...I don't want to) that includes a copy. Your mileage may vary, but I don't think anyone's been able to use it yet.
One last note of caution: Skyfire's license agreement clearly states that they can, if they wish, capture all data transferred to and from (this includes keystrokes, BTW) websites. Privacy on their browser is not reality. This means, for example, if your camera feed was providing illicit or illegal images (like a voyeur cam in a public restroom, for example), they can, and presumably will, point the finger at you. This may change in the future, but hey, they've gotta protect themselves, if they're acting as a go-between for the web and dirty, untrustworthy end-users.
pookrat said:
This might not be completely Wizard related, but thats what I have so I'll shoot. I was wondering if anyone had any idea on where to start looking for an ap to view Video Feeds from Security Cameras that are normally accessed via a Java Applet in IE. Like is there possibly a Java app that can display a feed that would be seerate of PIE? Maybe a program that can be changed or slightly modified?
The provider/manufacturer of the equipment doesn't offer anything. Their newer equipment uses ActiveX Controls rather than Java so maybe an upgrade could help? Any ideas/help would be appreciated.
The Company has a Demo of the Java Applet that is used to view the feeds. Same as we use for the bar but we only have 9 feeds. Viewing one feed at a time would be perfectly fine and probaly desired on the smaller screen.
See the demo here...
http://208.50.31.214/ Java VM Page. Login for the Demo is admin : admin
Any Ideas??
Cliffs: Can anyone think of a way to view the feeds in the demo above on a PPC? Java VM related...
Click to expand...
Click to collapse
Most Java VM's for Windows Mobile are not robust enough to handle Java webcams. At least that's been my experience. I have a Toshiba IK-WB11A webcam in my house. It also uses Java and I've tried PIE, Opera, Minimo, and other WM browsers - none will work.
The only work around I'm aware of is to deconstruct the Java Script to see where / how the webcam is streaming the "video". I was able to do that by loading up and opening all the HTML pages that my webcam served to my PC browser (Firefox > View > Page Source). Typically the video stream is in fact just a JPG that's refreshed every fraction of a second. Once you identify the JPG path / name you can open it directly. Or if you're ambitious you could create your own simple HTML page, add the JPG image, and add some code to auto-refresh in PIE. Something like this code should do the trick...
<meta http-equiv="refresh" content="10;url=http://path/to/my/image/page.html"/>
Ok I am looking for the same thing mate and doing a little search for web goodies to work on the phone . If anybody has any ideas or software let us know.
http://www.getjar.com/products/11112/QSpyCam
http://www.getjar.com/products/13204/LiveStream
wyzepro said:
http://www.getjar.com/products/11112/QSpyCam
Click to expand...
Click to collapse
Nice link I will test it out .

Video Stream from phone

Its prob a stretch but i was wondering if theres a way to stream video FROM the titan TO the PC. its kinda like using the phone as a webcam or something...
Thanks in advance
I've done it for robotics but not quite in the way you're asking for. I used a custom Java web server running on the device. I couldn't figure out how to stream the video but 1fps was good enough for me so I just kept taking pictures that would copy to the location being shown on the web page. If it's something you're interested in I can start looking for my code, I've got it backed up somewhere.
Yes, such software exists in a couple of variations for AtekSoft.
I have been brainstorming alternative uses for the software and wrote all about it here:
http://mobile-enthusiast.blogspot.com/2008/03/ateksoft-applications-bring-interesting.html
TheCodeBenders, you should seriously use this instead of your java server. This is PERFECT for your application it sounds like!
Even Better:
www.comvu.com
trying to find out more about comvu... is this service free, trial, closed market, or what?
I can't figure out how you're supposed to even GET this software...
Comvu works great, just signup and download.
Dishe said:
TheCodeBenders, you should seriously use this instead of your java server. This is PERFECT for your application it sounds like!
Click to expand...
Click to collapse
Thanks for the link, but the big part of the Java server is an AJAX script running to give my 8 direction control of the bot. I'm undertaking rewriting the camera bit in a C app that does faster refreshes but we'll see.

DIVX Player for the G1?

Are there are any DIVX players for the G1?
I am surprised there isnt any search results for DIVX on this, isnt anyone interested in using the G1 to watch movies?
Ok, I noticed a new software (oops a new APP) called Cinema on the market today and I downloaded it. It is supposed to play h.264 and MP4 files, which I have some regular movies (700MB ones) and it does not play those but I have a few low-res ones (160x120) that it does play but jittery. The screen actually looks beautiful and the sound is not jittery but the screen jerks and pauses and you cant get to crop, zoom, aspect ratio, or any of that good stuff to make it fit nicely on the screen. The file extension HAS to be .mp4 for it to show on the list to open. Not too easy for me where my entire collection has a .avi extension.
It is a good start though and a long way from the two original Video players, PLAYS VIDEO and Video Player that played nothing for me at all, not even SHOWED files with .mp4 extension.
Video Player worked perfectly for me but Cinema doesn't detect the same .mp4... We will see much better things in the coming months. I am sure we can even ask DIVX to think about making a player, that would be cool.
4 Months into Andriod and I am losing hopes that we will ever see any support other than the mp4 format. No Divx or any other formats.... I think Google has made it either impossible or very difficult to do anything other than mp4s.
brooklynite said:
4 Months into Andriod and I am losing hopes that we will ever see any support other than the mp4 format. No Divx or any other formats.... I think Google has made it either impossible or very difficult to do anything other than mp4s.
Click to expand...
Click to collapse
Google keeps as much of the Android source under the BSD license as it can. There's some LGPL stuff in there like parts of Webkit and, of course, the linux kernel but that code has to be kept separate from the BSD licensed code. They do this to entice companies to use it because the BSD license allows any one to use the source code without requiring them to release the source of any changes they made to it. However, if a phone manufacturer has to modify the linux kernel, or any other LGPL code, to get it to work on their hardware then they are required to make the source available for those changes. Most companies would not be happy with having to make their source code available so making the Android platform available under BSD makes it much more attractive.
To that end Android needed to have as much of its core components under the BSD license as it possibly could, and that includes the multimedia subsystem. The multimedia system is called OpenCORE and was contributed by PacketVideo. They and other contributing members of the OHA have all agreed to license their code under BSD meaning that any one can take their work and use it in their own projects without having to contribute any thing back. That's no small thing to ask when those OHA members could have licensed that software for a fee instead of giving it away for free.
The reason we can't play some formats like DivX and WMV is because there is no BSD licensed software available that can be included in the Android core. There's plenty of LGPL projects around but an Android developer recently posted on their android-platform group that dealing with licensing issues for Webkit and bluez was extremely painful so I doubt we'll be seeing any of those making it into the core platform.
Another problem is that Google still has not made a native code SDK available. Everything has to be written using the Java SDK and although they attempt to optimize it as much as possible it's still not a fast as native code. Their security model depends on sandboxing applications using the Dalvik VM and native code applications would break that model. Unfortunately, most video decoders would suffer from poor performance if they had to run through the VM. A native SDK is essential for getting these and other CPU intensive tasks (like emulators! I long for a good SNES emulator on this phone) to run well.
So yes Google has made it hard to play video that's not MP4 but it's not because they're trying to be dicks about it.
numerik said:
Google keeps as much of the Android source under the BSD license as it can. There's some LGPL stuff in there like parts of Webkit and, of course, the linux kernel but that code has to be kept separate from the BSD licensed code. They do this to entice companies to use it because the BSD license allows any one to use the source code without requiring them to release the source of any changes they made to it. However, if a phone manufacturer has to modify the linux kernel, or any other LGPL code, to get it to work on their hardware then they are required to make the source available for those changes. Most companies would not be happy with having to make their source code available so making the Android platform available under BSD makes it much more attractive.
To that end Android needed to have as much of its core components under the BSD license as it possibly could, and that includes the multimedia subsystem. The multimedia system is called OpenCORE and was contributed by PacketVideo. They and other contributing members of the OHA have all agreed to license their code under BSD meaning that any one can take their work and use it in their own projects without having to contribute any thing back. That's no small thing to ask when those OHA members could have licensed that software for a fee instead of giving it away for free.
The reason we can't play some formats like DivX and WMV is because there is no BSD licensed software available that can be included in the Android core. There's plenty of LGPL projects around but an Android developer recently posted on their android-platform group that dealing with licensing issues for Webkit and bluez was extremely painful so I doubt we'll be seeing any of those making it into the core platform.
Another problem is that Google still has not made a native code SDK available. Everything has to be written using the Java SDK and although they attempt to optimize it as much as possible it's still not a fast as native code. Their security model depends on sandboxing applications using the Dalvik VM and native code applications would break that model. Unfortunately, most video decoders would suffer from poor performance if they had to run through the VM. A native SDK is essential for getting these and other CPU intensive tasks (like emulators! I long for a good SNES emulator on this phone) to run well.
So yes Google has made it hard to play video that's not MP4 but it's not because they're trying to be dicks about it.
Click to expand...
Click to collapse
WOW this is probably the best answer I have received on this site since I became a member. I guess I was just naive when I thought Google claiming "open source" means easy programming. What I didnt know is that the Google version of open sourse is nothing like Microsoft Windows which is truly open and free to programmers. I wish Google would just charge $50 for the OS and leave it truly OPEN to write programs, or I guess, apps. This whole applet, app, gadget and supposed simplifying thing on the internet is just making it dumber. It seems like Google "open source" means if you want to write a map program with Google maps, its extremely easy and ready made, if you want to use Yahoo maps, mapquest, Microsoft maps etc, its practically impossible. Sooner or later, people would know and stop using andriod.
brooklynite said:
I guess I was just naive when I thought Google claiming "open source" means easy programming. What I didnt know is that the Google version of open sourse is nothing like Microsoft Windows which is truly open and free to programmers. I wish Google would just charge $50 for the OS and leave it truly OPEN to write programs, or I guess, apps.
Click to expand...
Click to collapse
Once upon a time I decided to replace my faithful Treo 650 with a Sprint Mogul. When I looked at the specs of the Mogul from an HTC press release I saw that it had an ATI GPU for 3d acceleration so I thought it was going to be a decent phone. When I got it and started playing with it I noticed that it had really poor performance when playing video. I've played DivX movies using TCPMP without having to re-encode them to lower bit rates or scaled down and that was on a 312Mhz CPU with 32MB of RAM (only 23 of which was actually available). All of those same files were unwatchable on the Mogul. We know now, of course, that the reason was in HTC's poor driver support. Some were able to hack together some drivers for phones like the Kaiser using files ripped from other devices but the Mogul never did get working drivers. The funny thing is that in one of the threads discussing this someone mentioned that the Android source code repository had a linux kernel driver for the same ATI chip and wondered if it could be used to write a working Windows Mobile driver. Windows Mobile truly open and free? Are you sure about that?
brooklynite said:
This whole applet, app, gadget and supposed simplifying thing on the internet is just making it dumber. It seems like Google "open source" means if you want to write a map program with Google maps, its extremely easy and ready made, if you want to use Yahoo maps, mapquest, Microsoft maps etc, its practically impossible. Sooner or later, people would know and stop using andriod.
Click to expand...
Click to collapse
Writing a map program using Google Maps is easy to do because Google built the API into the SDK. You might just as well complain that Microsoft doesn't make writing a map program in Windows Mobile using Google Maps easy. Nothing stops Microsoft, Yahoo, or Mapquest from writing software for the Android OS or providing an API for their services.
I wouldn't give up on it just yet. Adobe announced that Android will have Flash and there's zero chance of them releasing it under BSD as part of Android OS and unless they've discovered some way to massively speed up the Dalvik VM that means that Google is allowing native code to execute within the Android environment; and plugged in to the browser no less. My guess for the reason we haven't seen Flash yet is that Adobe is waiting on Google to make the necessary changes to the underlying architecture that will allow this to happen. The good news is that if its available to Adobe, then native code execution will be available to all and you'll start seeing more interesting apps.

YouTubeBrowser - light weight browsing

Hey everyone,
I have a Sprint Touch and have been looking for a decent youtube experience for quite awhile.
I really liked the UI of the Diamond YouTube app (and that of the iphone), but the high quality videos wouldn't play very well at all on my touch. The other option of course is youtubeplay, which plays videos well, but the UI definitely was not to my liking. The other functions seem nice, but my main desire is quick and easy browsing.
So I decided to write my first ever windows mobile application. It's extremely simple, but it gets the job done; quick barebones youtube browsing.
Technically, the app is not very intelligent at all. All it does is request and parse html/xml and creates a playlist file, which it passes onto TCPMP. So if youtube decides to change its URLs the app will most likely break.
Requirements:
- .NET Compact Framework 3.5
- TCPMP with .flv playing capabilities.
***NOTE: TCPMP *must* be installed on your device in \Program Files\TCPMP, the app assumes this location.
I don't intend to work on this anymore(aside from fixing bugs) as it was just a Windows Mobile learning experience for me, but since I put in the time I thought I might as well share it here. I hope it is useful to others.
Disclaimer: I did little testing and debugging. I sat down and wrote this thing in less than 2 days. Bugs are likely. If you encounter a bug, I'd be more than happy to try and fix it. Just let me know how to recreate the bug in this thread.
Mad06STi said:
Hey everyone,
I have a Sprint Touch and have been looking for a decent youtube experience for quite awhile.
I really liked the UI of the Diamond YouTube app (and that of the iphone), but the high quality videos wouldn't play very well at all on my touch. The other option of course is youtubeplay, which plays videos well, but the UI definitely was not to my liking. The other functions seem nice, but my main desire is quick and easy browsing.
So I decided to write my first ever windows mobile application. It's extremely simple, but it gets the job done; quick barebones youtube browsing.
Technically, the app is not very intelligent at all. All it does is request and parse html/xml and creates a playlist file, which it passes onto TCPMP. So if youtube decides to change its URLs the app will most likely break.
Requirements:
- TCPMP with .flv playing capabilities.
***NOTE: TCPMP *must* be installed on your device in \Program Files\TCPMP, the app assumes this location.
I don't intend to work on this anymore as it was just a Windows Mobile learning experience for me, but since I put in the time I thought I might as well share it here. I hope it is useful to others.
Click to expand...
Click to collapse
Nice work, I'll give it a try later today. Any chance of some screenshots ?
Do you think we could get a couple of screenshots of the app?
TCPMP *must* be installed on your device in \Program Files\TCPMP
Click to expand...
Click to collapse
stopped reading there...
I'll try as soon as I get home.
Screenshots would be welcome.
Actually I have the same opinion as yours about Youtube on our devices.
So I hope your idea evolves...
Thanks for sharing. Been using it on my sprint mogul for the past 15-20 minutes and it works great. I'll report back if i come across any bugs. Thanks again.
dschoenike
I added handling of network timeouts, it used to crash the program. Reuploaded the file just now.
I don't have screenshot program installed so if one of you guys above could provide screenshots that'd be great.

[Q] Touch HD Android Adobe Flash support? Info on how Android on SD works?

Hi everyone,
Just returning to the threads here to see how/if things have moved on. I've been running XDAndroidFRX05 and have just tried XDAndroidFRX06, I've also tried the FroyoXGinger build too from a while back.
My question is this, is there any build out there which supports Adobe flash which can run on the Blackstone? Or are there any other builds worth experimenting with (I'm currently having a go at CyanogenMod to see if that runs (ok CM7 not much works yet for Blackstone), now trying the XDAndroid GBX0A)?
I'll do my best to search for some more detail about Android on SD as I am well aware I don't have a clue how all the files interact so no doubt it will help to gain an understanding of it. If you know of a good guide then I would welcome a genital push in the right direction. [EDIT - I can't find anywhere which gives an explanation of what each file is and how it all fits together - I can probably guess but after some definite information if possible]
The NAND project is encouraging and hopefully it will allow android to run smoothly on our devices at some point, however for me the SDCard solution is much preferred as a dead/partly-working phone is no good for me.
I don't think Blackstone will ever run Flash because of the hardware limitations.
jeanfrederic said:
I don't think Blackstone will ever run Flash because of the hardware limitations.
Click to expand...
Click to collapse
I know full flash was apparently limited to CortexA8 processors and up, but was unsure of the lite version.
Also SkyFire and uZard browsers add 3rd party support for videos from within the browsers. I guess I expected some version of flash lite would be possible, afterall hardware limits are often ignored on here.
It seems like it could be doable but I don't expect it to work that well and I guess the HD is too old for all that effort now.
Thanks for your answer though.
Dunno about Android, but Flash Lite is working on my Blackstone.
I sometimes use FlashLIGHT (http://www.freewarepocketpc.net/ppc-download-flashlight.html ) application...
Bodisson said:
Dunno about Android, but Flash Lite is working on my Blackstone.
I sometimes use FlashLIGHT (http://www.freewarepocketpc.net/ppc-download-flashlight.html ) application...
Click to expand...
Click to collapse
Of course then you can always resort to your FleshLight afterwards.
As for hardware, I've seen other Arm11 devices claim Flash 10.1 support, but perhaps that is due to extra decoder chips maybe.
i don't know about uzard, but skyfire renders the pages on a central server and just sends you a "screenshot" of the page. that is why skyfire is the full browsing experience including flash, java, html5, ajax and whatever else you can find. actually,when i last tested skyfire on winmo, by going to ip and browser checking sites, i found, that i was running mozilla firefox with an american ip, which also allowed hulu. /OT
as stated before, i wouldn't count on the blackstone being capable of handling the full flash experience, but flash light might work, or, depending on what you actually need flash for, there might be another way around it.

Categories

Resources