How to take a screenshot while playing a HLS stream using AV foundation? - ios7

I am playing a video in my app, the video is a HLS streaming which i am fetching from my remote server. And i need a functionaltiy to take the screenshot of currently playing video but i am not able to do the same, i checked the documentation apple is saying you can take the screenshot if you are playing a video if you are playing a video from LOCAL URL or LOCAL FILE and you can not take a screenshot if you are playing a video from remote stream.
I am kind of stuck on this issue, i tried several methods discussed on stack overflow and other sites but nothing worked.
Please help,
Thanks

Related

S3 video play in edge and react native but not chrome or firefox

one of the user of the app I work for has an issue, all the video she upload doesn't work in an HTML5 video player, except on Edge and Safari for iOS (and if it works there I assume it could work in other browsers)
The video can be played in our react-native app or after being downloaded, but not directly using the S3 or cloudfront link
Since the vieos from the other users work, I'm assuming it's related to encryption and S3 specifications, does anyone have met this problem and found a solution ?
EDIT: forgot to put a sample link
https://video-reetags.s3.eu-west-3.amazonaws.com/compressed/aed0a512a419334fe5d0c0c6fb4094a21610642052.mp4
Since the videos from the other users are working fine, I'm assuming it's related to encryption and/or S3 specifications...
No, the problem is not encryption or S3 server issues.
Your MP4 container has video in HEVC format (aka H.265), which is not supported in Chrome or Firefox. You should still be able to hear the sound part since AAC audio is supported.
Playing the video is possible with React-Native and other (native) video players because they rely on the O.S running the player App to decode video. If a browser brand didn't buy a license for HEVC then that browser cannot play it.
Solution:
Re-encode such videos to MP4 containing H.264 with AAC audio (...not H.265 with AAC).
Re-encoding takes time but it's the only way for now. Either the user does it before any uploading, or your own app accepts any file and re-encodes the "not supported" ones on server-side (eg: using FFmpeg or GStreamer tool).

How live audio streaming and downloading to happen simultaneously in IOS using Objective c

I am creating one application with live audio streaming, I wanted live audio streaming and downloading to happen simultaneously (like WhatsApp files). Please let me know if someone can help me or guide me.
You can insert AVAssetResourceLoader between your AVPlayer and The Internet to allow caching while you stream.
Here are some examples I found on github:
AVAssetResourceLoader
VIMediaCache

HTML5 video streaming very slow

On my homepage there is a video file. While single user click on site(www.rollcall.co.in) that video running very well. But When Multiple user come at my site and that time video streaming getting very slow. I dont know how to resolve this issue.

iTunesconnect App Preview Error

I'm trying to upload an app preview video to my itunesconnect account, but i'm receiving the following error...
"This video has audio that is not two-channel, no-surround stereo"
As far as I can tell, there is not specific documentation discussing how to deal with this is issue, so any extra insight on this would be very helpful.
In my case I had created the video in iMovie and (intentionally) did not include any audio. To resolve the issue, I imported a silent audio track, added it to the timeline, decreased its volume to 0% just to be sure, then I shared the App Preview again. Uploading this file worked just fine. Seems the videos have to have audio included.
I have use this tool making the video https://handbrake.fr/ and uploaded the video in iTune . Work perfectly.

Why can I not access bitmap data of FLV video coming from Amazon S3?

I have a video player that loads progressive flv video from a server and applies a reflection to it. I do this by creating a bitmapData object and then drawing the video to it. This worked absolutely fine until we moved our content from testing server to Amazon S3. Now there is no reflection.
Can anyone explain why this is happening and even suggest a solution?
p.s. i am using Flash 8 AS2.
thanks
This most likely has to do with Flash player's security restrictions and domains. If you aren't getting any errors, try installing the debug version of the player and see what comes up.
Also take a look to Handling Crossdomain.xml and 302 Redirects Using NetStream for background info.
HTH
Juan