Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
What you need to do is put some custom HTML and embed the video in a UIWebView. I create a small UIWebView behind one of my UILabels in my view so the user doesn't really see it. For the code to play the video when the user clicks something like a View Video button, I use this:
// This is a youtube video. Put up an invisible UIWebView if (youTubeWebView == nil) { youTubeWebView = [[UIWebView alloc] initWithFrame:CGRectMake(5.0, 5.0, 2.0, 2.0)]; youTubeWebView.scalesPageToFit = YES; youTubeWebView.delegate = self;
Lastly, implement the findButtonInView method. This method recurses through the UIWebViews subviews looking for the button the user needs to click to start the video. This is so you can have the video auto play without the user having to press or see the embedded youtube view.
i tried this method with iPhone and it worked fine. but its not working with iPad .. the video plays and you can hear the sound of the video but the youtube player is not showing.
i tried this method with iPhone and it worked fine. but its not working with iPad .. the video plays and you can hear the sound of the video but the youtube player is not showing.
any thought why ?
Hmm, I never tried this on an iPad, so not sure what would be happening here. Sorry.
Replies
How to Watch YouTube Videos on Your iPhone | eHow.com
I hope this can help.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeI want to play Youtube inside my app.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeWhat you need to do is put some custom HTML and embed the video in a UIWebView. I create a small UIWebView behind one of my UILabels in my view so the user doesn't really see it. For the code to play the video when the user clicks something like a View Video button, I use this:
Then, you need the following code inside your controller to capture the UIWebView delegate call that the load finished:
Lastly, implement the findButtonInView method. This method recurses through the UIWebViews subviews looking for the button the user needs to click to start the video. This is so you can have the video auto play without the user having to press or see the embedded youtube view.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesomei tried this method with iPhone and it worked fine.
but its not working with iPad .. the video plays and you can hear the sound of the video but the youtube player is not showing.
any thought why ?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome