HTML5 audio over HTTPS won't work on smartphones? - iphone

I have tested some droids and iphones and have not found a phone that works. Basically if I use <audio src="http://.... everything works. When I change it to <audio src="https://..... the file plays fine on computers but not on smart phones. Any ideas why?
See similar posts:
cannot play iPad <audio> over https
http://code.google.com/p/android/issues/detail?id=19958)

I think for audio video streaming on android https protocol doesnt support. Look at here Android Supported Media Formats.

Related

Play sound in the WebView provided by vscode

I want to develop a plug-in to play local sound.So I make a demo for test with audio
:
<audio src="vscode-resource:/Users/asure/Documents/Projects/test/EffectMove.mp3" controls>
/Users/asure/Documents/Projects/test it's the directory where I tested it.I also tested after adding it to localResourceRoots.Below was what I get.
It seems that sound didn't load correctly while no errors can be found in console window.I was confused whether vscode disable audio related content in webview or something was wrong in my code.
Does anyone know how to play sound in the webview provided by vsocde
VSCode does not support playing sound with audio tag in WebView.
you can use web audio API instead.
and there is already an extension that plays local sound files with web audio API.
Because vscode does not support audio playback.
Actually, I just learned that we strip out ffmpeg and other media support from our release builds. This is by-design and something we will not change, but it does mean that many types of media playback will never be supported in webviews inside vscode
source: https://github.com/microsoft/vscode/issues/32540
Vscode v1.71 will support various audio codecs within a webView.
See release notes: ffmpeg support.
It includes mp3 suuport and
Vorbis
Flac
H.264
VP8
WAV
MP3
Ogg

play hls or rtmp inside android browser

The goal is to play live streaming inside android browser, thus using the
html5 video player.
I tried with m3u8 (which works on ios and also while tapping directly the m3u8 inside android), I tried with RTMP.
This works on IOS, not on android
<video id="my_video_1" controls autoplay
preload="auto" width="100%" height="100%" data-setup="{}">
<source src="http://mysite.com:8080/hls/video.m3u8" '/>
</video>
and this link works on android browser (it opens a video player )
http://mysite.com:8080/hls/video.m3u8
So: what should I do to display some live video inside android browser ?
regards
Look at longtailvideo where a whole list of supported browsers and so on is available: http://www.longtailvideo.com/html5/hls/
also have a look at the footnotes: Sometimes it is necessary to to click 3 times at the play button.
Also only Android 4+ supports a little bit of hls. But .m3u8 playlists are definitiv possible in some browsers on some devices, but it is challenging.

Voice Recording/Playback on Web for mobile(Android, iOS, BB)

I am working on a website that works across all mobile browsers specifically Android, iOS and BB. I have used the experimental jQuery mobile for the consistent look and feel. One of the pages require audio to be recorded and played back for this I did some research and found that HTML5 has support for this but still part of the spec so it may not available on these browsers yet, so I was wondering if there is any workaround for this. I atleast know of one such application that captures audio and its Google Voice for iPhone and I read somewhere that they use HTML5 so does that mean safari has support for HTML5 audio capture? Please suggest.
For audio playback, you can use this test page on all of your supported platforms and browsers. It should confirm which HTML5 audio playback constructs will work:
http://www.jplayer.org/HTML5.Audio.Support/
It sounds like there are issues with even getting playback to work on Android, see here for info:
http://textopiablog.wordpress.com/2010/06/25/browser-support-for-html5-audio/
I haven't seen anything about current browser support for audio recording through HTML5. You could try Java or Flash, but Java requires the user to have it installed (and accept suitable permissions), and Flash requires you to set up a server for the data to be sent to (e.g. Red5)...and remember that Flash does not work on iOS.

Play a Shoutcast Stream on iPhone with HTML5

I know this question is already asked in past, but i finally found no answer....
So I got a shoutcast stream, encoding audio/mpeg and I want create a web-app for my iphone to listen to my stream mobile.
I tried several methods of http://mydomain.com:8000/. With semicolon, with stream.nsv, with stream.nsv&type=mp3 and so on...
I tested it everytime with the Safari browser und nothing happened. I tried several options in the html5 audio tag. preload, auto-buffering etc..... it's still quiet...
Do you have any solutions or snippets or what else?
Thank you :)
HTML5 streaming web pp for iPhone.
<audio controls=">
<source src="http://www.yourstreaming.com" type="audio/ogg" />
<source src="http://www.yourstreaming.com" type="audio/mpeg" />
</audio>
Try jPlayer I'm pretty sure it can play shoutcast stream, and it works in iPhone. The player uses HTML5, and supports flash fallback.
you very welcome,sorry i don't know the source for Android,here are links that might help you,good luck with it.
http://dev.opera.com/articles/view/everything-you-need-to-know-about-html5-video-and-audio/
I would suggest Mediaelement . Its works well on most of mobile devices including iPhone.

How can a web page play mp3 on iPhone/iPad

As far as O know, web pages play mp3 sounds by embedding invisible Flash players. Since Flash is not available on mobile webkit (iphone/ipad), how is it possible to play mp3 on this platform?
HTML5 supports these 2 tags (audio / video) which Safari supports:
In your case, you can use the audio tag.
<audio src="horse.ogg" controls="controls">
your browser doesn't support HTML5 audio
</audio>
The only catch is getting the right format for your media. :-)
Safari supports MP3 for audio, and MPEG 4 for video... Firefox supports OGG for audio/video, (I believe Opera does too), and chrome supports both.
More information about the supported file formats in HTML5 are here:
http://www.html5laboratory.com/playing-with-audio-files.php
That links to a really useful page allowing you to test the format support on your particular browser:
http://www.jplayer.org/HTML5.Audio.Support/