Simple AVFoundation troubleshooting Situation - objective-c

I have an app that has some video editing tools. I mix photos and videos and I am running into an odd issue. When i arrange a video composition with a video, then a photo, then back to the video it plays fine until the transition back to the video at which point it freezes! I still hear the audio, and if i seek around the video starts playing again. I dont know how I can error check this! Anyone have any ideas?

The fix more my situation, I created a 1 second clip of blackness and injected that into my composition at the photo spot and now it works fine

Related

Facebook Cover Video in vue.js

Facebook's functionality which needs to be recreated is described really well in this video: https://youtu.be/CMKJoK3DI50?t=128
Our stack is Laravel + Vue.js 2 on a LAMP server.
the ability to upload the video, and after the video is uploaded, the ability to move the video behind the player so that it is "cropped" (see youtube video above, #2:20) - i am not sure if facebook actually crops their videos or simply leaves it whole and changes the placement of the video behind the viewable player so that a certain area of the video is shown, but the entire video is playing behind the "mask".
Any pointers on the best way to get this done in vue.js? And is the video actually cropped, or just "masked".
thanks, Sebastian

MPMoviePlayer video quality is not the same as original video quality on Youtube

I am trying to play YouTube videos in IOS App and it working fine. But the issue is in quality, Quality is not same in MPMoviePlayer as video's are on YouTube.
I have tried different approaches but did not get any solutions.
like : YTPlayerView,LBYouTube etc...
Please help me if anyone have a solution for that.
Thanks in advance.
I read this somewhere...it working fine...
Try it by using
LBYouTubePlayerViewController
It is a subclass of MPMoviePlayerViewController.
LBYouTubeView is a small view that is able to display YouTube videos in a MPMoviePlayerController.
you have choice to select between high-quality and standard quality.
LBYouTubeView doesn't use UIWebView which makes it faster .

Playing a muted video without interrupting background music

My design calls for a video playing in the background of my login screen, exactly like 6snap has.
I would like to avoid the default behavior of stopping the user's music when the video starts to play. My video does not have sound.
I'm using:
<MediaElement Source="MyVideo.mp4" />
I tried setting IsMuted=true which didn't help. Does anyone have an idea how 6snap managed it?
Edit: currently trying the animated gif route. Using the ImageTools 3rd party library and having converted my MP4, it works fine. My 9 second 640x1136 3MB video became a 41MB GIF, so I have to reduce the quality drastically. Still trying to find a better way if possible.
You won't be able to do that with Background Audio and MediaElement, hence as MSDN says:
When a MediaElement control plays audio or video content, any background sounds or media already playing are halted. The app launches the playback experience when the user taps the control. Only one MediaElement control can operate at a time.
It's no matter you have no sound - when you start to play all background sounds/media are halted.
I'm not sure how the App you have mentioned achieved that, but maybe you can try with DirectX/XNA - thought I've not tried this and don't know if that would help.

Looking for a working example to add srt subtitles to video in xcode

Any one please help me… my app is based on showing subtitles under video…I did little bit in that by using Movie Player project from developer.apple, I can play and pause the subtitle while play and pause the video. I have a problem with how to synchronize the video with subtitle such as forward, backward, slider,entering full screen. I looking for an example like synchronize .srt file with MPMoviePlayerController in Xcode and also other..Please discuss your idea in that with me... Thank you

How can I format a movie to play through MPMoviePlayerViewController on the iPad?

I've been struggling to make video on the iPad work. I'm using an MPMoviePlayerViewController and it plays fine in the simulator. I've tried several different converters, including ones dedicated to producing iPad-formatted video, but none of the videos play on the device. The MPMoviePlayerViewController loads and the controls appear.
For most of the videos, the spinning progress indicator never goes away. For a few, the video loads but when I press play the video immediately pauses. I know that the video is there because I can scan through and see various frames.
I know the code works because it plays a different movie file perfectly. I just have no idea what I'm doing wrong that's preventing my movie from playing. Does anyone know a good step-by-step process of getting an iPad-formatted video from any .mov or .mp4?
Thanks,
Luke
Also, just for future reference, import target video into iTunes, then highlight it and from the Advanced menu choose "Create iPod or iPhone Version" or "Create iPad or AppleTV Version" depending on your target device.
This guarantees that the right codecs are used and the right bitflags set on the video file.
Fixed - the one that loaded but couldn't play eventually worked. Why? Who knows.