How to play .oga or .ogg file in ios app? [closed] - ios

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I want to play .ogg/.oga audio files from a remote URL in my iOS app. I also want to play audio even when the app is in background state.
I have tried https://github.com/iosdevzone/IDZAQAudioPlayer this player, but it cannot play from remote URLs and only play local audio in foreground state.
Anyone can help me out?

I don't know of any player that does that directly, but there are a couple of OGG decoding libraries that you can use in iOS:
The Xiph libraries which you can find precompiled for iOS.
A public domain OGG Vorbis decoder library which is contained in a standalone C file and therefore is easy to integrate into any project.
You would have to pass the streaming data to the decoder and play the decoded samples. For this you could save the decoded samples into a buffer and play them with an AVAudioPlayerNode.
I also want to play audio even app is in background state.
There is an app capability in iOS that enables you to play background audio.

Related

How to stream live video from camera in iOS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
How can I stream a live video from a camera to an iOS application.
Let me know what are the possible way for stream video from the camera to cloud and view in iOS application.
It depends on what your camera supports. There are two ways to implement live streaming in an ios application.
HTTP Live Streaming :- HTTP Live Streaming (also known as HLS) is an
HTTP-based media streaming communications protocol that provides
mechanisms that are scalable and adaptable to different networks.
HLS works by breaking down a video file into a sequence of small
HTTP-based file downloads, with each download loading one short
chunk of a video file.
Reference Links : https://developer.apple.com/streaming/
https://developer.apple.com/library/content/documentation/AudioVideo/Conceptual/MediaPlaybackGuide/Contents/Resources/en.lproj/HTTPLiveStreaming/HTTPLiveStreaming.html
HTTP LIve Streaming
https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/Introduction/Introduction.html
RTSP Streaming :- The Real Time Streaming Protocol (RTSP) is a
network control protocol designed for use in entertainment and
communications systems to control streaming media servers. The
protocol is used for establishing and controlling media sessions
between end points. There are third party library available which
can be used for RTSP streaming Like FFMPEG, VideoKit etc.
Reference Links :
https://www.ffmpeg.org
https://iosvideokit.com
There are several platforms out there where you can record and distribute your recording and share it with friends. Some of them are
UStream
Live Stream
Youtube
Youtube specifically has extensive documentation on what apps to download and how to setup your encoder and how to distribute your playback URL. The link to their documentation is here
https://support.google.com/youtube/answer/2853700
Facebook
This will be more specific to distribution only within the facebook network. So, if you want to publicly distribute your live stream, you should probably go with one of the others.
There would definitely be a lot more other platforms. But, these are the ones that come to mind.

Walkie talkie open source library on iOS? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have to do two way walkie talkie iOS app.. I searched a lot got information about 'push to talk service'. But can't get clear idea. May anyone can help me? How it works by iPhone for a particular channel... I got a iTunes link
https://itunes.apple.com/us/app/two-way-walkie-talkie/id595560554?mt=8
Can anyone tell me how this app works? Is they recorded and send voices to other user or they are sending live audio ? Also they are not getting any information from user..
Most walkie talkie apps are done by sending recorded audio file instead of sending live audio stream.
If you want to implement a record-and-forward type walkie talkie, you need to have a backend file server for storing temporary audio files which can be downloaded by the receiver side.
If you choose the hard way, i.e, sending live audio stream, it's another level of complexity. You're look at implementing literally a VOIP app. You may use PJSIP for your VOIP core functionality. However, you might end up spending months on the project in this case.
Personally, I strongly recommend you to go with the first one.

Youtube livestreaming a prerecorded video [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to create a live event with specific dates and scheduled times on Youtube. The content itself is pre-recorded video, but I want to showcase it in a "live" manner so that users can't skip ahead. After each individual live event comes to a finish, I then want the video to be archived so users can freely watch it on our youtube channel.
Any help or info would be greatly appreciated!
Do you have to do it via youtube itself ? If yes, then you will have to enable "Live" streaming feature in your account. Looks like you will have to be eligible to have it enabled.
http://www.youtube.com/live/all
If its enables, you can push your pre-recorded video files to the google's publishing point. For that you can use any supported media encoders. More info can be read here on how to set it up.
https://support.google.com/youtube/answer/2907883?hl=en&ref_topic=2853713
Once thats setup, you can stream events as if its a real live event !

Can I play audio into the microphone? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Is it possible to route the audio being played by an AVAudioPlayer(for example) to the Microphone as input?
The aim is to be able to play a sound whilst on the phone to someone. That the other person can hear.
Thanks
Chris
Short answer: No
Long answer.
There are lots of ways to route audio though the system. There a several methods of accomplishing what are describing. But Apple restricts access to the audio system while the phone is active. If you attempt to circumvent this your app will be removed from the app store.
You request the ability to use the microphone as input. A microphone is a sensor that detects movement in the air. The only way to use it as input would require that you make vibrations in the air. One could play music through the speaker on the phone that is then picked up by the microphone then that audio is shipped the the receiver via it's normal audio route.
A better way would likely be to mix your audio into the the audio recorded from the microphone and send it to the receiver then play the unmixed audio via the ear piece so the sender can hear it cleanly and the receiver can hear it mixed with a voice. If you are developing a VOIP app you could make this happen.
RemoteIO and AudioUnit are likely the best place to start for creating a low latency audio routing system that enables you to mix microphone input with an existing audio stream. You can read about it here.
http://atastypixel.com/blog/using-remoteio-audio-unit/

youtube views count increasing [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I added youtube video in my website, i have question that is that possible that wen we watch the video in the website and the view of the video youtube get increased.
Need Urgent reply. Thanks in advance
I think you can get the answer from here:
YouTube video count WILL increment when:
You watch a video on youtube.com, as long as you don’t reload the video a bazillion times (particularly as it approaches 308 views).
You watch an embedded video (using YouTube’s own HTML5 or Flash player) on another domain that requires you to hit play.
YouTube will NOT increment video count when:
You watch an embedded video in a player that has autoplay enabled (video begins playing immediately on page load).
You watch a video that is loaded through a proprietary player via the YouTube API.

Resources