Iphone http streaming video problem - iphone

When our application play new url of http streaming video , mpmovieplayer show previous image of video during loading new video from new url .
In detail , it show last part of previous video then show first part of previous that video again ( all captured image ) then it plays new url http streaming .
We need your advice how to solve this . Thanks in advance .

This is a known bug in the MPMoviePlayerController. You can work around it by adding the following to your MPMoviePlayerPlaybackDidFinishNotification callback:
[myMoviePlayerController stop];
[myMoviePlayerController setInitialPlaybackTime: -1.0];

Related

KRPANO player for dynamic content

I have website where user can upload 360 image and video . I play that image and video using vrview but vrview doesnot seems that good as it lack enough control button in video player (as i know).
I want to use krpano , but i dont know hoe to use for dynamically added content .
I search it but couldn't get proper knowledge on that .
I am posting so anyone who will come here searching for solution could get some help :
Actually the solution comes from how video is played by krpano .
In krpano for playing video we need to give xml file that contain necessary information related to video we are going to play .
So for every video , we want to play , we should have xml file of that video mean xml file containing the video source , thumbnail source specified .
we can create xml file for every video file while uploading .
I made xml file using string concatenate and wrote that in xml .
xml file is in sample code inside example folder .

AVFoundation created video won't upload to Facebook

I'm working on an app that create a video from a collection of frames using AVFoundation, adds an audio track and uploads to Facebook. I've previously had this working successfully, but it now appears to be failing and I can't find the issue with the format of the video.
An example video is available here: http://www.sendspace.com/file/6p8u11
It should be a Quicktime movie with H.264 and AAC audio. This ought to be ok, but perhaps something about the frame size or frame rate are an issue?
Hope someone can help.
Thanks,
J

mp4 vs m3u8 format

I am trying to play a video in iPhone, which has m3u8 format. The video's link is parsed from an XML (so i cannot change it). I'm trying to play it with MoviePlayerController (set it on fullscreen, controlStyle is fullscreen too, set the presentModalViewController to the MoviePlayerController). After pressing the play button, the movie has only sound for a few seconds, no video screen, and the app crashes.
In this XML I have a different videolink, which contains mp4 format. Playing the video in the same mode (with MoviePlayerController and the settings...), it works fine. So: do you have any ideas what the problem is? If there is any encoding problems of m3u8? If it can be changed and how?
Thank you :)
Look the AVPlayerDemoPlaybackViewController class from this very useful open source control released by Peter Steinberger
https://github.com/steipete/PSPushPopPressView
Thanks again Peter!

how to get the completed and remaining times of the playing audio using streamer

i am thinking whether the avaudio player is working for audio url content playing........
i am using streamer to play this one but i am showing audioslider to show playing...
to move slider i want to get the time completed playing by streamer.....
any help appreciated...
i used audiostreamer class from github website its working now.....
https://github.com/mattgallagher/AudioStreamer

Play two videos with MPMoviePlayerView Controller

I am developing an application for IPAD and I need to play two videos one after another but can not find how. I'm using MPMoviePlayerViewController to do it and do not know how to launch a share after the first video to be played and start the second. Can someone help?
what about using MPMoviePlayerPlaybackDidFinishNotification from documentation ?
In that method:
[..] you can also change the currently playing movie by changing the value in the contentURL property. [..]
(still from documentation)
hope it helps