Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-12-2008, 03:21 AM   #1 (permalink)
iPhone developer
 
Join Date: Aug 2008
Location: India
Posts: 20
Send a message via AIM to iFoneTechy Send a message via MSN to iFoneTechy Send a message via Yahoo to iFoneTechy
Thumbs up How to play/stream a video from server through http/rtsp???

Hello,
Currently, I am being able to play a video on iPhone simulator placed under resource folder of application and also being able to make http connection with server to transfer text data.
Now my next step is to play/stream the video on iPhone Simulator through http or rtsp placed on server.

Please guide me if any body having same experience on same problem and came out with a solution.
Also clear my one doubt can i use rtsp to stream video from server or not.

Thanks in advance...


Cheers!!!!!
iFoneTechy is offline   Reply With Quote
Old 08-12-2008, 08:51 AM   #2 (permalink)
iPhone developer
 
Join Date: Aug 2008
Location: India
Posts: 20
Send a message via AIM to iFoneTechy Send a message via MSN to iFoneTechy Send a message via Yahoo to iFoneTechy
Lightbulb

If anybody having any idea do tell me. It might be very helpfull to findout the final solution.....
Cheers!!!!
iFoneTechy is offline   Reply With Quote
Old 08-14-2008, 03:19 AM   #3 (permalink)
iPhone developer
 
Join Date: Aug 2008
Location: India
Posts: 20
Send a message via AIM to iFoneTechy Send a message via MSN to iFoneTechy Send a message via Yahoo to iFoneTechy
Default

I came to know we can use NSURL for making connection with server. But still having no idea how can we download or directly stream the video from server...
iFoneTechy is offline   Reply With Quote
Old 08-15-2008, 09:16 AM   #4 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 27
Send a message via AIM to superuser
Default

You've probably figured this out already but this plays a movie, or mp3 from a server but I am not sure it fits your definition:

-(NSURL *)movieURL
{
if (mMovieURL == nil)
{
id path = @"http://www.yourserver.com/iphone/yourmovie.m4v";
mMovieURL = [NSURL URLWithStringath];
[mMovieURL retain];
}
return mMovieURL;
}

(I got this from another post - not my code)

I have not tested this on an iPhone but only on the simulator so I can't comment about performance issues.

One thing I don't like, when playing mp3 it displays a Quicktime logo and the url of the file. I would like to be able to define an image to use as a background or minimize the instance of MPMoviePlayer so I can show and image.

My only solution thus far is to create a slideshow of images as a movie and just treat it as a movie but that increases the size from a 6Mb sound file to a 84Mb movie file... all for the sake of images.
superuser is offline   Reply With Quote
Old 08-18-2008, 06:18 AM   #5 (permalink)
iPhone developer
 
Join Date: Aug 2008
Location: India
Posts: 20
Send a message via AIM to iFoneTechy Send a message via MSN to iFoneTechy Send a message via Yahoo to iFoneTechy
Default

Hi,
Yep its working fine.......on simulator
Thanks Alot...
iFoneTechy is offline   Reply With Quote
Old 01-28-2009, 12:58 AM   #6 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 6
Default

have you played video file using rtsp?
iphonejudy is offline   Reply With Quote
Old 01-28-2009, 08:07 AM   #7 (permalink)
Registered Member
 
Join Date: Jul 2008
Posts: 355
Default

Quote:
Originally Posted by iphonejudy View Post
have you played video file using rtsp?
It's not supported.

No iPhone app uses it. They use http with incremental downloads.
Bucky is offline   Reply With Quote
Old 07-03-2009, 04:39 AM   #8 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 15
Default any one have any new idea abt RTSP live streaming in iphone 3.0

anybody having any idea ?
rkp01_jec is offline   Reply With Quote
Old 07-04-2009, 01:37 AM   #9 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 15
Default

Quote:
Originally Posted by Bucky View Post
It's not supported.

No iPhone app uses it. They use http with incremental downloads.
"iTuner radio" application supports RTSP streaming (URL: Tuner2 HiFi Radio: iPhone/iPod Touch Player). So has he achieved this?
rkp01_jec is offline   Reply With Quote
Old 08-04-2009, 08:31 PM   #10 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 6
Default

I really am having problems. I want a video to be displayed after a UIButton or a UIBarButtonItem is clicked. The video i have is streaming off of my dropbox. I know everything i need on that end. I just can't figure out how to play videos with the click off a button.

I have tried so many can someone tell me what i need to write in the .h, .m and delegate if needed. I have tried to make it using many methods and they all give me errors and warnings.

Please help and email me at antman3579@aol.com
antman872 is offline   Reply With Quote
Old 04-22-2010, 10:22 AM   #11 (permalink)
Junior Bacon Cheeseburger
 
Join Date: Mar 2009
Location: maryland
Age: 27
Posts: 48
Send a message via AIM to yujean Send a message via MSN to yujean Send a message via Skype™ to yujean
Default

Quote:
Originally Posted by Bucky View Post
It's not supported.

No iPhone app uses it. They use http with incremental downloads.
Oh boy ... trying to revive this thread ...

iPhone still does not support RTSP. I've been googling my *** off for some examples / tutorials on http incremental video streaming. Can anybody provide some guidance to me?

Thank you so much,

Eugene
yujean is offline   Reply With Quote
Old 04-22-2010, 10:33 AM   #12 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 6
Default

Quote:
Originally Posted by yujean View Post
Oh boy ... trying to revive this thread ...

iPhone still does not support RTSP. I've been googling my *** off for some examples / tutorials on http incremental video streaming. Can anybody provide some guidance to me?

Thank you so much,

Eugene
YouTube - iPhone SDK Movie Plays from server on Click

good works for all xcode 3.2 and higher
antman872 is offline   Reply With Quote
Old 04-22-2010, 10:50 AM   #13 (permalink)
Junior Bacon Cheeseburger
 
Join Date: Mar 2009
Location: maryland
Age: 27
Posts: 48
Send a message via AIM to yujean Send a message via MSN to yujean Send a message via Skype™ to yujean
Default

Quote:
Originally Posted by antman872 View Post
YouTube - iPhone SDK Movie Plays from server on Click

good works for all xcode 3.2 and higher
antman. First of all, you rule for responding so quickly.

Secondly, I'm concerned about bandwidth issues over the Edge & 3G networks, because the movies I'm trying to stream are 9mb - 25mb files.

I'm currently reading up on HTTP incremental downloading / streaming ... Is this the way I should be going?

iPhone HTTP Streaming with FFMpeg and an Open Source Segmenter

Thanks again,

Eugene
yujean is offline   Reply With Quote
Old 04-22-2010, 12:02 PM   #14 (permalink)
Junior Bacon Cheeseburger
 
Join Date: Mar 2009
Location: maryland
Age: 27
Posts: 48
Send a message via AIM to yujean Send a message via MSN to yujean Send a message via Skype™ to yujean
Default

Quote:
Originally Posted by yujean View Post
antman. First of all, you rule for responding so quickly.

Secondly, I'm concerned about bandwidth issues over the Edge & 3G networks, because the movies I'm trying to stream are 9mb - 25mb files.

I'm currently reading up on HTTP incremental downloading / streaming ... Is this the way I should be going?

iPhone HTTP Streaming with FFMpeg and an Open Source Segmenter

Thanks again,

Eugene
So as it turns out, a lot of this incremental-downloading business has to do with chopping up the video into smaller portions and feeding it through a variable playlist ... It has little to do with using the MPMoviePlayerController (which is easy).

Thanks again,

Eugene
yujean is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 596
21 members and 575 guests
Andy8888, Arfan, armmzz, bignoggins, BrianSlick, ckgni, devangvyas, Duncan C, Hito_kun, kvu, learningtocode, linkmx, LiquidFire, MarcoAlmeida, Monstertaco, oceanlablight, soonw29, sudama, Vineesh
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,775
Threads: 89,203
Posts: 380,590
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Andy8888
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:46 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0