I need to develop an ionic app(for ios and android both) which can play audio at regular interval. e.g. every 2 hours in night only.
This should play even if app is in background.
Any other idea is also welcome.
I suggest using a native HTML5 player to reproduce your audio.
Take a look at this documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio
Related
According to documentation, if you are using SSML for playing audio, you're limited to "120 seconds maximum duration".
Is there other way to start playing longer media (audio) with "Actions on Google" SDK on Google Home?
Example usage: Meditation sounds that can last longer than 2 minutes.
As responded by Leon Nicholls (Google Assistant Developer Programs Engineer), currently there is no way to play audio longer than 120 sec. However they are considering that in the future.
Please check Media responses. You can play MP3 file longer than 2 minutes.
I ran into the same issue. I created a Voice Metronome app which need to play for a long time. On the Google home, I was able to get it to play for 10 minutes. On the phone the limit was 2. I don't know if the new speaker devices have longer play times and I don't know how long they will allow this. Just an FYI.
I am trying to develop an iPhone application just like Vine using PhoneGap. PhoneGap 2.7 doesn't support duration control so I switched to PhoneGap 3.0. It supports duration control but I can't implement the touch to capture option.
Does anybody know how to customize video recording by altering the plugin? Is it possible to create a pause option during recording and set a 6 sec limit? How can I get better control using the PhoneGap plugin?
Take a look at the VideoCapturePlus plugin.
https://github.com/EddyVerbruggen/VideoCapturePlus-PhoneGap-Plugin
It allows a time limit and png video overlays which may be useful. It needs some tweaks to allow pausing the video, but it looks like there is something similar commented out in the source code. It may be worth contacting the developer for clarity.
Trying the SDK from the smart tv alliance, I worry about it not playing videos in the vbox.
The menu and browser works well, but e.g. when trying the video sample project within SDK, it does not play videos there. => screen remains black in the content area...
It's a smart tv virtualization, so I hope it supports video playback and is not a missing feature (as in some android simulators).
It's exactly like a normal site or HTML document...
Add your video like you would do normally.
The SDK emulator does not supprot much formats to be played except of the mp4 progressive download. What exactly are you trying to stream?
STeN
There are a ton of SO posts on audio, HTML5, and mobile Safari, such as these:
Reusing HTML5 Audio Object in Mobile Safari
Autoplay an Audio File on Mobile Safari
Preloading HTML5 Audio in Mobile Safari
Will HTML5 support the access of offline cached audio?
However, they all are outdated.
We prefer solutions to support iOS 3+, but we will take anything that works -- even if it's restricted to iOS 5.
Anyone have the definitive answer as things stand today, or testers on iOS 5 have any insights?
Can audio files be cached in mobile Safari? If so, what are the limitations?
Is there a way to minimize lag or delay between pressing a button and playing a sound?
Thanks!
I recently wrote an HTML5 audio player. I had similar trouble with iOS4 and iOS5. First, the play has to be triggered by user input, meaning specifically that it has to be in the same call stack as a click event.
I tested this a lot, and iOS seemed to refuse to cache the audio at all. It fetched the audio with every play. I think this should be considered a bug, but perhaps they are trying to preserve local storage space (audio files can get rather large).
If your audio files are not too large, you might want to consider appending them together into a single file and then using pause / jump to position / play to switch between sounds. I haven't tried it, but it should work. I didn't use the technique because my app was a music player, and music files are a bit too large for that technique to be valuable.
I'm writing the application for iOS in Flex (sdk 4.5). Is it possible to play movie in such built application?
I was trying to use Video component - which works well on my desktop, but it doesn't work on my iPod. Of course my application is running, but the video isn't playing.
I think I have final results:
It is possible to play video in iOS app written for AIR 2.6 but it can't be decoded by using h.264 video and acc audio codecs.
For me it was working when video was decoded by using vp6 codec and standard Video component. There is an issue with low frame rate which can be partially resolved when setting renderMode to gpu in descriptor file, however as you can see here it's not recommended.
P.S. Thanks for help J_A_X.
I would recommend that instead of trying to play the video internal to your application, you just link to it and let the native OS handle it. The OS will either open up a browser to play the file or launch a native app to handle it.
Have you tried to use the StageVideo class? It's new in 10.2 and meant to utilize full hardware acceleration. Follow this tutorial for more information.