Embedded sound not supported in webbrowser? - G1 Android Development

Ive tried playing a sound from the browser (and from a stand-alone webview from within an app) running on the emuator, but I get no sound.
Is this because the emulator cant play websound? Or is it not supported by the webbrowser at all?
Ive checked so that sound is enabled by clicking the buttons on the right side of the emulator, so that is not the issue.
This webpage has several methods for playing sounds embedded in an html-file. Thats what I tried.
http://www.phon.ucl.ac.uk/home/mark/audio/play.htm

i know the g1 is capable of streaming audio/video, so its not that the phone cant handle it, i just think its that the browser at its current state doesnt have support for running such stuff, but i believe the phone is more than capable and youll probably see it in the future
hey when we get flash, the flash player should play audio, and if they implement that into the browser, tada, websites with flash embeded audio would then play the audio, but keep in mind, sites with flash embeded audio sometimes make you load the entire .swf file and THEN play audio, which can sometimes be rather large files, so youll probably want to be on wifi at that point anyway

Related

mlb.tv???

Is it possible, even when flash is released, that we would be able to stream live media like that of mlb.tv? Is it possible to stream the gameday audio with the current makeup with the phone, has anyone tried yet? I really really hope mlb embraces android and puts something out there for us fans.
I am not sure if the graphics card of the g1 will be able to handle sporting events streams but radio stream probably wouldn't be an issue. Plusmo and a few other companies make great programs for keeping track of the scores and plays.
afoulke said:
I am not sure if the graphics card of the g1 will be able to handle sporting events streams but radio stream probably wouldn't be an issue. Plusmo and a few other companies make great programs for keeping track of the scores and plays.
Click to expand...
Click to collapse
It's got no trouble showing movies stored on the SD card, so I'd imagine that streaming video should work ok too, so long as the data stream can keep up.
Yeah thats what I am not sure of is the data stream, Movies the system can prepare for what is coming next because it is saved in a file that never changes streaming video of live TV is a little different it really depends on how good the graphic card is and how well it can process the info as it is downloaded which from what I remeber the graphics card in the g1 isnt the greatest.
My guess is that when flash is here, most of all that will be possible, best over 3G/wifi of course, but there's no reason it wouldn't be possible. I wouldn't be surprised if there's TV apps in the making right now for Android.
How does the youtube client work, is the entire clip downloaded first?
I would guess the phone just caches a little, then starts streaming, and it sure works great for me.
I would like to be able to stream this:
mms://straumV.nrk.no/nrk_tv_webvid03_h
and similiar video streams.
~Christopher
That's a Microsoft WMV file.. it's unlikely to ever work unless Microsoft make a player for Android (I couldn't even get that stream to work under OSX with the microsoft supplied player.. probably DRM protected or something).
Android does H264 which is good enough for streaming (I expect that's what the youtube player is using). Now if someone could persuade the BBC iplayer to send its h264 streams to the G1 rather than trying to invoke flash...
TonyHoyle said:
That's a Microsoft WMV file.. it's unlikely to ever work unless Microsoft make a player for Android (I couldn't even get that stream to work under OSX with the microsoft supplied player.. probably DRM protected or something).
Click to expand...
Click to collapse
I wasn't aware of that - I use Ubuntu Linux and watch this stream via my VLC player and it works great - guess the VLC player uses some fancy codec or something, I don't know. i just assumed that since it worked on my Linux desktop it might work on Android given the correct application - a bit naïve, I know...
Android does H264 which is good enough for streaming (I expect that's what the youtube player is using). Now if someone could persuade the BBC iplayer to send its h264 streams to the G1 rather than trying to invoke flash...
Click to expand...
Click to collapse
The other day I downloaded nswPlayer, in the video section it has an 'enter URL' field but I'm not sure whether it means it can stream remote videos - probably not.
Are there any other Android players that would play H264 streams?
~Christopher
No idea how VLC does it, unless you've got the x86 codecs loaded from mplayer (which are just copies of the Windows ones).
I expect the browser can be persuaded to stream h264.. it's just Webkit after all.

Xvid playback using built-in player

I did some searching, but all the posts appear to be older, and are discussing downloaded players. At work, we all have Droid Xs. My boss, recently reset his, and was working on downloading some video players. We download a lot of xvid files, and he wanted to be able to play them. Well, it appears one of his downloads has updated the built-in player to play xvid. The reason I think this is because after he dumped about 20 videos on there for transport, most...about 16 of them, had thumbnails in the gallery. I tried playing one, and loads directly up, and even has the little HDMI icon in the top corner. I went through the players he downloaded, and none of those appear to have the HDMI option. I've been trying to figure this out so that I can replicate it.
Has anyone else done this? I don't have the phone in front of me, but I know he got arcmedia and youplayer. I'm not sure what else, but I figure you guys may have some ideas.
I guess I've stumped the minds here. Thanks for looking.
UPDATE:
I just checked my phone, and now I'm able to playback one of the files. The strange part is that after seeing it happen on his phone, I copied the same file to mine, and couldn't play it. Gave the usual unsupported error. But today, I look at my phone, and there's a thumbnail of the video in the gallery. I click on it, and it starts playing, with the little HDMI option in the corner. WTF is going on here? I still have one file that won't play that I put on there. Does the built-in player support Xvid with certain options enabled/disabled?

Streaming to the GTablet (Orb, Tversity)

I have been able to get both ORB and TVeristy to stream videos, music, pictures to my GTablet with very very good results. both have the strong points (Orb has a cleaner interface, but TVeristy has streams faster.
The secret is to setup each to use FLASH as the Stream encoder. This means you must install the FLASH APK (Search this site you will find links)
In TVeristy, you do this with
http://MyIpAddress:41952/flashlib
In Orb
You need to set the your skin to HOME THEATER. And your Streaming to FLASH.
No special Video player or other hacks needed. Should work on all MODS and well as STOCK.
In Cyanogen (Maybe in other mods), you have to click the Down Arrow the first time to Start-up FLASH.
The video quality is amazing even when tethered using my phone.
How is your luck with streaming ac3 encoded audio streams with video on tversity? I keep coming up with video and no sound. What codec pack are you using? What options did you pass to ffdshow? Tyia.
Sent from my DROIDX using Tapatalk
I did not do any special configuration or change any FFSHOW settings. The only thing I cannot stream is ripped RAW DVD files.
Im using tversity on my windows home server and was running into the no sound issue with flash. I went to tversity's site and saw that for tversity to stream sound using the flashlib, the streaming computer needs to have a soundbcard installed.
I would be hard pressed to find a home computer that does not have a sound card. But good to know. My motherboard (HP) has an integrated sound card and appears to work properly. Also, remember that with the CyanogenMod, you need to use the Headphone trick or the Headphone widget to get sound working after a re-boot.
Does any one know of how to have the browsers auto-Start the Flash player?
I use Dolphin HD and when you set it up set flash to Always by default its (on demand) if you already set it up and need to change it, its in the options menu of the browser.
I have integrated sound on my computer serving tversity. What I think the problem stems from is that it is trying to pass the Facebook audio along without reencoding it. I've been trying everything I can come up with for the week trying to get around the sound issue with no luck. What codec pack are you using?
Sent from my VEGAn-TAB-v1.0.0b3 using Tapatalk
orb
brookfield said:
I have been able to get both ORB and TVeristy to stream videos, music, pictures to my GTablet with very very good results...
In Orb
You need to set the your skin to HOME THEATER. And your Streaming to FLASH.
No special Video player or other hacks needed. Should work on all MODS and well as STOCK.
In Cyanogen (Maybe in other mods), you have to click the Down Arrow the first time to Start-up FLASH.
The video quality is amazing even when tethered using my phone.
Click to expand...
Click to collapse
Are you using the ORBLIVE app, or just using the web page?
Just the web Page. By setting it to HOME THEATER, it looks awesome. Give it a try
What do you mean "Home theater"?
I have been using the website to view.... my problem with the website is that it does not cache very well, and I get alot of pauses. AND... when it lags enough to lose the video, there is no skipping ahead, so you have to start from the beginning again. The App caches better and it easily skips ahead.

Streaming audio and browsing at same time

So my last cell phone was the HTC shadow from Tmobile. It was windows based and could do everything this phone can albeit with older hardware tech, yet I could play a youtube video or some streaming audio from a website then go back to the browser and start surfing the web and reading other sites, while the audio played in the background.
The G2x is my first android device and not only does the battery life suck, but now I find that I can't even multitask! I've searched if the G2x or any android device could stream music/audio and browse at the same time and found no adequate answer. The only one that gave me hope was to hold down the home key and you'd get the last 6 apps you've used, but this still it does not work, and the music/audio cuts off the moment I want to browse in another window.
Is there anyway to listen to an audio on one window, open another and surf the net, while the audio is still playing in the other window?
I don't know exactly which applications you're using, but this works fine for me with Pandora -- keeps right on playing while I browse.
I think he is trying to browse and use sound from a youtube video at the same time. I have never needed to do this. If you get an app like Pandora and Grooveshark you can stream music and do whatever you want at the same time.
Sounds like he is trying to stream audio from a website via the web browser. the web browser needs to be on screen with the screen on and unlocked for sound to stream.
however if you use an app like pandora or soundcloud you can let it run in the background
Yeah, I tried playing a Flash-based stream in the browser; the OP is right, as soon as I switched to a different window within the browser or switched to a different app, Flash stopped streaming. Same thing with YouTube. I don't know why. The hardware and OS are certainly capable of it, as shown by Pandora, etc.
Try SkyFire.
Back to the days I was using Nexus One 2.2. I was only able to play BBC iplayer with Flash background was SkyFire. When you get video prompt when you're about to play flash-based player, let SkyFire runs on its own way. In which you can play it in the background.
mingkee said:
Try SkyFire.
Back to the days I was using Nexus One 2.2. I was only able to play BBC iplayer with Flash background was SkyFire. When you get video prompt when you're about to play flash-based player, let SkyFire runs on its own way. In which you can play it in the background.
Click to expand...
Click to collapse
I've. Tried it on dolphin, skyfire, stock and other free browers and each time I play a video on YouTube or an audio mp3 stream from a particular site then try and open another window to browse the audio cuts of. Only when I make that window active will the audio video begin to stream again. This feature should be standard, since all windows mobile smart phones can do this, no problem.

[Q] Music playing related questions - some answers - another question

I posted this in the old Atrix 4G forum, before this existed. I now have an a partial answer to C. More comments / questions embedded.
I just came from the Windows Mobile world and needed to research how to listen / watch live streams.
A) Trying to listen to streaming audio (mp3) from a webpage. Leaving the web browser stops the audio. Besides trying to find the stream in a separate program, is there a browser (or other way) to keep the music playing?
B) Is there a way to keep the music streaming with the screen off (to save battery power)?
>>Item A/B I have yet to find a webbrowser which will continue to play in the background or stream with the screen off. Other music programs do work.
C) Is there a way to get embedded WMV/WMA (http/mms/.wmv/.wma/.asx/.asp) to stream, embedded or kicked off from a webpage?
I still can't fine a program which a browser will kick off if the browsers doesn't support it internally for an embedded media file. Any ideas?
Regarding entering in URLs directly. Using XiiiaLive I am able to stream a *.pls file and *.asx file. And in order to get the *.asp file to work, I'm able to open the file in a webbrowser, which then kicks off XiiiaLive and it works.
Unfortunately, it only plays the audio of video streams (even an *.wma) and on a recorded stream, you still can't fastforward or rewind. This is the only program I have found on the market that seems to support the various playlists / wrappers. I haven't found such a player for video.
In order to play WAV voicemail files in email, I used Remote Wave. It currently has a bug, that you need to kill it between uses. They are working on it.
I have been using the phone during my runs and out of 6 runs I have yet to have music last the whole time. I have used iheart and I have used the radio and both times after about 15-25 mins it will stop. Don't know.if lose signal or if runkeeper is doing it but it pisses me off.
Do you have task manager set to kill any apps or your music player. If so that could be the cause.
No. Why would that help? Think too many going on so system shuts it down?
No I had similar problems with my OG. When I set it to kill a few apps I had accidentally set it to automatically shut off my music payer also and it drove me crazy till I found it.

Categories

Resources