MPMovieplayer for stream video from server

Hello all,
I want to stream video from server.So for that i am using mpmovieplayer.but its not load the video from server. I am try with http://km.support.apple.com/library/APPLE/APPLECAREALLGEOS/HT1211/sampleiTunes.mov but its not load in mpmovieplayer.
Thank you...
Message was edited by: diyora

Hello all,
I am now able to load video from server successfully.Now i want to play this video recursively so for that i am used MPMoviePlayerPlaybackDidFinishNotification notification & again play my movieplayer. But its work in sdk 3.2 only. When i switch to sdk 4.2 then stop the video playing recursively.
Thank you...

Similar Messages

  • Streaming video from server....Not easy..help would be appreciated!

    Dear Developers,
    It has been a long time since I have posted on this community - its nice to see some familiar avatars still here.
    I have been developing an iphone/ipad app for cancer patients that requires streaming of video footage from a server.  The app is sturctured in a simple tableview with images of a range of videos.  The user selects these tableview cells and the video should then stream.
    I hoped to use material saved on a private youTube account - but getting a seamless stream from the Tableview selection hasnt been easy.  It seems that youTube clips must be loaded into a uiWebview and then selected. This feels clumsy.
    I have subsequently opted to stream from an alternative server with .mov files. The code I am using is as follows:
    NSString *videoURLString = @"https://www.dropbox.com/s/7wmltu14ti91qm9/IMG_0024.MOV";
    NSURL *videoURL = [NSURL URLWithString:videoURLString];
    MPMoviePlayerController moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:videoURL];
    [moviePlayer prepareToPlay];
    [moviePlayer play];
    [self.view addSubview:moviePlayer.view];
    When I select call this code the movieplayer opens, but the video will not load. I recieve an error warning in the console containing :
    CGcontextsaveGState: invalid context 0x0
    CGContextClipToRect: Invalid context 0x0
    CGContextTranslateCTM: invalid context 0x0
    CGContextDrawShading: invalid context 0x0
    CGContextRestoreGSState: invalid context 0x0.
    What must I do to get this code working ?
    I would be very grateful for your help on this.  I am also keen to learn if anyone knows of other source code that would provide a cleaner experience of youtube video streaming.
    with thanks.
    James

    You may use this:
            NSString *videoFilepath = @"https://www.dropbox.com/s/7wmltu14ti91qm9/IMG_0024.MOV";
            NSURL *videoURL = [NSURL URLWithString:videoFilepath];
            MPMoviePlayerViewController *movie = [[MPMoviePlayerViewController alloc] initWithContentURL:videoURL];
            [[NSNotificationCenter defaultCenter] addObserver:self
                                                     selector:@selector(playbackFinishedCallback:)
                                                         name:MPMoviePlayerPlaybackDidFinishNotification
                                                       object:movie];
            [self presentMoviePlayerViewControllerAnimated:movie];
    then
    - (void) moviePlayBackDidFinish:(NSNotification*)notification {
        NSError *error = [[notification userInfo] objectForKey:@"error"];
        if (error) {
            NSLog(@"Did finish with error: %@", error);
    add the MediaPlayer.framework to your project &
    add to your .h
    #import <MediaPlayer/MediaPlayer.h>
    Hope this helps

  • Streaming Video from Server to Ipad

    Hello,
    This issue is not easy to explain. But I will try.
    A Video camera in the field transmits video to a server back at the studio.
    Ipad wont support flash so non of Adobe media apps would work.
    I need to "Push" the live video stream arriving at the window server to ipad via a secure LAN and/or WIFI
    Question is how.?
    Thank you

    When I say it works on iPhone/iPod I mean version 4

  • Bandwidth adjustment for streaming video to server

    I am trying to adjust for available bandwidth at a mobile device sending live video to a server. I am currently using the total upload bytes per second and the video loss rate as the parameters to detect when I need to change the camera parameters. I am using the video size and framerate to estimate the required bandwidth. (bandwidth = height * width * framerate / [encoding contant] )
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStreamInfo .html
    When the available upstream network capacity is low, I adjust the maximum video upload bandwidth and the framerate for the reduced capacity.
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Camera.html
    The problem I am having is that even after adjusting the camera parameters, the video loss rate can be very high ~0.6-0.7. This is even for values that seem to work normally if the camera is initially set with these values.
    Can anyone explain why what causes the video loss rate to be high? I may need to use a different parameter to indicate when the camera parameters need to be changed.

    CharlyV wrote:
    ...... Is that possible?
    Welcome to the Apple Community.
    Unfortunately not.

  • Need Help Streaming Video From Web Server Built Into Application - Linksys WRT54g Router

    Very much appreciate any help getting streaming video feed from web server built into video application to work properly using port forwarding on my Linksys WRT54g wireless router.
    Here is the situation:
    My PC is connected to the internet via a Linksys WRT54g wireless router.
    The Windows XP Pro SP2 firewall is enabled, with a firewall exception established for the video camera application.
    On the router, forwarding of port 80 is enabled for the LAN IP address of the PC running the video application with an embedded web server, and the web server in the video camera application is also set to use port 80.
    I have a free DYNDNS account and also run the DYNDNS updater program on the PC running the video application with embedded web server. According to the DYNDNS web site and the DYNDNS updater program, the IP address assigned to the machine running the video application with embedded web server is set correctly in my dyndns account.
    When I open a browser (Explorer or Firefox) on the PC running the video camera application with embedded web server, I am able to  connect to the video application's web server by going to the dyndns address linked to the machine running the video application. The video application's web server is set to use the dyndns address. That's the good news. The bad news is that I can't connect to the video application's web server from any machine that connects to the internet that uses a router other than the router used by the PC running the video application. I am only able to connect to the streaming video from the application's web server only on machines that connect to the internet using the same (home) router used by the PC that is running the video application.
    Since I am able to connect to the video app's embedded web server successfully on the machine running the video application, it seems that at least something about the current port forwarding settings is correct. For example, if I uncheck 'enable' for forwarding of port 80 on the router settings page, I am no longer able to connect to the video app's web server when I try to do so in a browser running on the machine running the video app. When I re-enable port 80 forwarding on the router, I am again able to connect to the web server of the video application on the machine running the video app. I thought that by enabling forwarding of port 80 on the router and associating that port with the LAN IP of the machine running the video application, it would be possible to connect to the streaming video of the video app's embedded web server from ANY machine connected to the internet, but that is not the case. There must be some other router settings to update/change in order to get the port forwarding working to enable a successful connection to the video web server, but I am stumped. Very grateful for any suggestions as to how to get this working properly.
    Thanks in advance...

    The firewall log can be configured on the third tab in the window for the firewall settings, where you can turn the firewall on and off completely.
    From your tests, though, it does not seem to be the firewall. However, to be sure, it would be good to check the log. It will help to eliminate the firewall as the culprit and you may find it handy in the future, too. ;-) Just don't forget to turn the log off again after you are done because it may cause some performance penalty on your system while on.
    From what you write, it seems as if I should give a little networking background on the ip addresses you'll see. Your setup is (or should be) a modem connected to the WAN/Internet port of the WRT. The computer is connected into a LAN port of the WRT.
    Your router has two IP addresses (that's what makes it a router): a WAN address and a LAN address. The WAN address is the address assigned by the ISP. It is a normal internet IP address. Everyone is able to send packets to this IP address. The WAN address is the one reported by whatismyipaddress.com, it should be listed in the dyndns record and it is the address that your router shows on the Status page. It's the public IP address of your router. Dyndns maps your dyndns.org name to that IP address.
    Your router also has an IP address on the LAN side. You can configure it to be whatever you want. The default is 192.168.1.1 with netmask 255.255.255.0 and it is better to leave it like that or at least inside the network 192.168.*.*. 192.168 is a special, reserved IP address range for private networks. Basically, routers in the internet are not supposed to forward addresses in this range. That makes them suitable for private LANs as the packets never can get anywhere. Most people using Linksys routers have there LAN in 192.168.1.*.
    The router acts as gateway, which means it forwards packets from PCs in the LAN to the internet and back. As all your PCs in your LAN share a single WAN IP address, the gateway does address translation (NAT). This works only in one direction: from the inside to the outside. The router remembers when a PC in your LAN sends something out and accepts the responses in and sending them back to the PC. If something comes in from the internet which cannot be associated with a ongoing communication the packet is dropped unless you use port forwarding.
    All computers in your LAN either have a static IP address assigned or use DHCP to get it automatically. The router has a DHCP server as well which gives out IP address from 192.168.1.100-149 if not changed. With a router with default settings static IP addresses can be in the range of 192.168.1.2-99 and 150-254.
    ipconfig /all reports your IP address in your LAN, i.e. an address 192.168.1.*. The gateway in this output should be 192.168.1.1 which is your router. And packet no in the LAN address range 192.168.1.* is send to the router which forwards the packets into the internet.
    An address 192.168.1.* should not appear as internet address in the Status page of the router nor should it appear at dyndns.
    Port forwarding is used to operate a server in the LAN. By default, a server in the LAN cannot be reached from the internet. You have to configure port forwarding for this. You configure that traffic bound for a specific port (e.g. TCP port 80 for http) on your WAN IP address is forwarded to the same port on a specific LAN IP address. If your server runs on 192.168.1.50 than traffic to your WAN IP address port 80 is forwarded to 192.168.1.50 port 80. That way your HTTP server can be reached from the internet. As you can only configure a fixed IP address in port forwarding it is recommended that the server uses a static IP address and not DHCP as in the latter case the IP address may change over time...
    O.K. so much for networking. I hope that makes things a little clearer and you can verify that your setup is how it is intended to be.
    I suggest the following: on the router's security page there is an option to block WAN requests. Remove the check if it is set (meaning: do not block). After you did that change you should be able to ping your WAN address (e.g. ping xxxx.dyndns.org) from the internet. That way we know that it is on the correct address.
    Also on the Administration page make sure that remote management is disabled (should be like that per default) or that the management port is NOT 80 but for example 8080. What is your your UPnP settings on the same page?
    O.K. that should be enough for the moment...

  • Streaming Video From Android to Adobe Media Server

    Hello All -
    i am looking for the best advice on how to live stream videos from Android Phone (3.0+)to Adobe Media Server.
    Thanks,

    hi,
       yes you can do that but for that you need to write your own server side module for handling streams and storing them

  • Embed streaming video from FlashMedia Server 2 in a Captivate Course

    I am trying to add streaming video from FlashMedia Server 2
    Developer Edition in a Captivate 3.0 course. The streaming server
    is working fine and I can stream video from a Flash 8.0 file. The
    problem seems to be in Captivate 3.0 because the video will not
    display in a Captivate swf file. The html and swf file resides on
    the web server therefore it cannot not be a security issue. When I
    try to play the Captivate file; it does make connection to the
    media server however the flv file will not stream. The Bytes
    Out(Bytes to the client) number stops incrementing after a 1,000
    bytes. Once you close the browser then the connection to the media
    server is lost. However if I insert a .fla file from Flash
    8.0(which will connect to the streaming server and play) and
    publish it in the Captivate project; It will connect to the server
    and playback the audio but not the video. I turned on and off
    hardware acceleration on my video card thinking that was the
    problem. I would appreciate any help on this. Once I get this to
    work I can justify purchasing the full version of the Flash Media
    Server.

    I think this isn't really an InDesign issue at all. It sounds like an Acrobat issue.
    First, you haven't said what version of Acrobat you're using. I'm assuming Acrobat X Pro?
    I've used this with a friend's Flash Media Server so I know it works. What version of Flash server do you have installed?
    I the link you provide I see a spaceband after the word "test" in the path. Could that be a problem?
    Other than that, it appears that you're following the requirements listed in the Help file for Acrobat X Pro.
    If you have further problems, you might post this on the Acrobat User Forum.

  • HT202157 New apple is not asking for the WIFI password.Home sharing is not working,i am getting Error while streaming videos from Youtube.

    I got new Apple TV 10 days back,its not asking for the WIFI password.Home sharing is not working,i am getting Error while streaming videos from Youtube.
    I can only see pics and video saved in my iphone. No other options are working.The worst part is that its not asking wifi passoword.
    Not able to connect istores and itunes.
    I cannot do software update. Can anyone help in this content?

    Thanks Brian- I am not connecting it with iphone teethering. I am using it with my DSL wifi.
    I am using it with ethernet cable then its working fine.If i am trying to use it with WIFI then its giving error.
    I tried using Netwrok testing but its giving same error.

  • When I stream videos from my laptop onto my Apple TV via my iPad 2 using the Air Video app/server the video plays great however when I pause the video the Apple TV reverts back to the home screen within a few seconds and then when I want to restart watchi

    When I stream videos from my laptop onto my Apple TV via my iPad 2 using the Air Video app/server the video plays great however when I pause the video the Apple TV reverts back to the home screen within a few seconds and then when I want to restart watching the video I have to re-buffer the video. Is there any way I can stop the Apple TV from reverting back to the home screen when I pause the video I’m watching?

    Welcome to the Apple Community.
    Contact the developer of the Air Video app.

  • I am trying to stream video from iTunes store for the last 2 days and all I get is the message "iTunes store is unavailable. Try again later." I have tried turning it off, restoring it, signing in and out again.  Netflix works though.

    I am trying to stream video from iTunes store for the last 2 days and all I get is the message "iTunes store is unavailable. Try again later." I have tried turning it off, unplugging all cords, restarting it, reseting it, restoring it, and signing in and out again.  Netflix works, but iTunes seems to be bugging out.  If anyone could help, it would be much appreciated.  Thanks.

    melaniefrommadisonville wrote:
    I want to try to un-install iTunes then re-intstall but am a new mac user and don't know how to do this.
    click here and follow the instructions.

  • Streaming video from a browser page

    I currently stream video from my capture card. If there is a video playing in a browser page, is there a way to stream it to my server?

    Copyright issues aside you can use screen capture programs to capture your screen and broadcast it, this is what most gamers do to stream their games. FFsplit is one for example.

  • Streaming video from amazon prime?

    Anything new on watching streaming video from amazon prime on ipad2?  It seems I can't do it because of the flash.  I am still on iOS 4, does this matter?  thanks!

    I just bought the Splashtop streamer app that allows you to stream flash video from Safari to your iPad. I'm streaming Amazon Prime video content to my iPad using this app. It's not perfect though. There is some loss of frame rate for some reason, although this may be due to the way my wireless network is set up. You install "server" software on your iMac or whatever and then it streams from there to the iPad.

  • Can't view photos or stream videos from websites on iPad 3

    When I go to a website with safari, I can't stream video or view photo galleries.  It tells me that I need adobo flash player.  That is not supported for this device.  How do I see photoographs or stream video from websites??

    Jenpre.... keep your head down in that hurricane, and good luck. I hope it moves away soon for you all.
    When I say "more modern", from what I've read many sites recognise that Flash can be a problem on mobile devices (phones and tablets) because it's very power hungry. So, if I understand things correctly, many sites are putting up html5 versions, which is supposed to be much easier on computers / devices. Quite oftne when I go to a site on my iPad it auto-diverts to the "mobile" version of the site, and I haven't found a single case where I can't see a video. To be truthful, even if not directed to a mobile version, I don't have much trouble with any of the sites I visit..... I can see most videos and pretty much all graphics, the same as I can on my Mac, which does run Flash.
    Still, I'm sure a computing expert will know much more.
    Good luck in that hurricane....
    PS... there are quite a few good hurricane tracking Apps you know....

  • Streaming video from macbook pro to apple tv

    Hello, I understand that you can use airdisplay to stream the whole desktop view to the apple tv. However, I've found that its extremely laggy when I play videos that way. When I do, the video and sound is always off by a second. When I stream using my ipad or iphone to play videos that never happens and runs perfectly. Is there a way to just stream videos from sites like youtube for the mac like the iphone and ipad?

    Yes, forget streaming that way, .....the ANSWER youre looking for is the APP BEAMER
    you cannot stream youtube, rather ON COMPUTER video and movie files.
    free trial to test it
    http://beamer-app.com/
    for streaming elsewise, use VLC STREAMER
    One of the most handy APPS for entertainment ever made.

  • Streaming video from Macbook Pro to 46 inch LCD

    I am trying to stream video from my 13 inch Macbook Pro to my 46 inch Samsung LCD TV. I am using a HDMI cable to a DVI cable to attach the computer. When I play videos from iTunes, the picture looks great, however when I am streaming video from an internet site such as Netflix, the picture is not great (it almost looks pixilated). I am wondering, is this an issue with my computer (video card, etc) or does it have to do with my internet connection (I currently have the lower DSL connection)? Is there any other way to make the picture look better? Thanks for your help.

    Yes, forget streaming that way, .....the ANSWER youre looking for is the APP BEAMER
    you cannot stream youtube, rather ON COMPUTER video and movie files.
    free trial to test it
    http://beamer-app.com/
    for streaming elsewise, use VLC STREAMER
    One of the most handy APPS for entertainment ever made.

Maybe you are looking for

  • Abug in Flash CS3?

    I'm having this problem using Flash CS3. I put a movieclip called "my_mc" in frame 20 and put this code in the first frame of my movie: gotoAndStop(20); my_mc.gotoAndStop(2); This should put the header into frame 20 and show the second frame of "my_m

  • Will another website try to contact you to update your browser.

    When running firefox, another window develops (I don't think it is a popup) with the following address: "http://www.browser-fast.com/Firefox/". I says that version 24 is not up to date etc. and to download and run a .exe file. It is very confusing be

  • Interlacing

    Hi, I need to deinterlace some video since there are some bad artifacts- the usual jagged edges, bad motion etc. I usually solve this with the interlacing filter in FCP through a little trial and error, but this is not doing the job for my current wo

  • Need help saving Workspace layout

    At Photoshop World, Julieanne Kost mentioned that she likes to have all of her panels to the left. I tried this at home and really like it like that, so I saved a new workspace. My problem is that when I open a new image, the image window floats behi

  • How do you bring a mac back to brand new without a Virus

    I was wondering wether there is a way that I can bring my mac book air to normal without a virus