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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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 09-07-2010, 08:08 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 9
NSpehler is on a distinguished road
Arrow Problem with my UIWebView

Hi guys !
I'm new on this forum, and I'm from France so sorry for my bad english

I've got a problem with a Tab Bar application. There is a WebView linked to a YouTube page in one of the tab. It works just fine but the problem is that when I watch a video from YouTube, my video don't allow landscape and stay in portrait mode even if I turn my device.

Here is my code :
Code:
- (void)viewDidLoad {
    [super viewDidLoad];
	NSLog(@"Here we call the web page load request in the awakeFromNib method.");
	[webpage loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://youtube.com/user/username"]]];
    timer = [NSTimer scheduledTimerWithTimeInterval:(1.0/2.0) target:self selector:@selector(tick) userInfo:nil repeats:YES];
}
Thank you for your help, I really appreciate !

Last edited by NSpehler; 09-07-2010 at 08:11 AM.
NSpehler is offline   Reply With Quote
Old 09-07-2010, 02:14 PM   #2 (permalink)
Registered Member
 
Join Date: Jan 2009
Location: Long Beach, CA
Posts: 612
bytor99999 is on a distinguished road
Send a message via AIM to bytor99999 Send a message via Yahoo to bytor99999
Default

Mon francais n'est pas bon. Et j'etude francais cinq ans dans l'ecole. Je voudrais parler francais tres bein.

Anyway, je pense the problem is basically YouTube in a WebView than your code.

Did you create the UI in Interface Builder, and when you attached the UIWebView did you say that it can rotate. I mean both the UIView and the UIWebView?

Is it just the video in the UIWebView? If so, are you using the standard embedded code for playing YouTube videos from the tutorials that are out there? Or is it a whole page where one element on the page is the video?

Mark
__________________
Perfect World Programming LLC
http://www.perfectworldprogramming.com

Please check out my apps.

TubeOrganizer
http://www.spritzlerapps.com/tube-organizer.html

Paper Clips
http://spritzlerapps.weebly.com/paper-clips.html
bytor99999 is offline   Reply With Quote
Old 09-07-2010, 04:09 PM   #3 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 9
NSpehler is on a distinguished road
Default

Hi Mark, thank you for replying !
Actually, my UIWebView only include a link to the iPhone mobile version of YouTube.
So I only have the link to the YouTube Userpage but I don't have any standard embedded code for playing YouTube video. Should I do that ? And how... ?
As you said, it is a whole page where one element on the page is a video.

I guess I need to allow rotation on my UIWebView, but I don't know how to do that...

Thank You !

Best Regards,
Nicolas Spehler

PS : Your French is good, don't worry about that
NSpehler is offline   Reply With Quote
Old 10-12-2010, 03:32 PM   #4 (permalink)
Registered Member
 
Join Date: Jan 2009
Location: Long Beach, CA
Posts: 612
bytor99999 is on a distinguished road
Send a message via AIM to bytor99999 Send a message via Yahoo to bytor99999
Default

Quote:
Originally Posted by NSpehler View Post
Hi Mark, thank you for replying !
Actually, my UIWebView only include a link to the iPhone mobile version of YouTube.
So I only have the link to the YouTube Userpage but I don't have any standard embedded code for playing YouTube video. Should I do that ? And how... ?
As you said, it is a whole page where one element on the page is a video.

I guess I need to allow rotation on my UIWebView, but I don't know how to do that...

Thank You !

Best Regards,
Nicolas Spehler

PS : Your French is good, don't worry about that
I apologize, it has been a long time since I been to the forums. Worked the past 4 weeks straight.

Here is the link to a blog post on embedded YouTube code to a UIWebView.

Display YouTube Videos Without Exiting Your Application

Unfortunately that is the only approach to take if you want the video to play inside your app.

Mark
__________________
Perfect World Programming LLC
http://www.perfectworldprogramming.com

Please check out my apps.

TubeOrganizer
http://www.spritzlerapps.com/tube-organizer.html

Paper Clips
http://spritzlerapps.weebly.com/paper-clips.html
bytor99999 is offline   Reply With Quote
Reply

Bookmarks

Tags
landscape, rotate, uiwebview, webview, youtube

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: 335
10 members and 325 guests
bignoggins, carlandrews, flamingliquid, hzwegjxg, ilmman, linkmx, nadav@webtview.com, stanny, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,656
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, iram91419
Powered by vBadvanced CMPS v3.1.0

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