Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5986145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:37:52+00:00 2026-05-22T22:37:52+00:00

I have successfully implemented embedded vimeo videos into my app, however i would like

  • 0

I have successfully implemented embedded vimeo videos into my app, however i would like to create placeholder images as an overlay on the videos whilst they are not playing. Does anyone have an idea of how to do this?

    #import "FifthDetailViewController.h"

@interface FifthDetailViewController (Private)

- (void)embedVimeoInWebView:(NSString *)urlString webView: (UIWebView *)aWebView;

@end

@implementation FifthDetailViewController




@synthesize toolbar;
@synthesize videoOne;


#pragma mark -
#pragma mark View lifecycle

- (void) viewDidLoad{

    [super viewDidLoad];


    [self embedVimeoInWebView:@"http://player.vimeo.com/video/19967404" webView:videoOne];


}


- (void)embedVimeoInWebView:(NSString *)urlString webView:(UIWebView *)aWebView {
    NSString *embedHTML = @"\
    <html><head>\
    <style type=\"text/css\">\
    body {\
    background-color: transparent;\
    color: white;\
    }\
    </style>\
    </head><body style=\"margin:-2\">\
    <iframe src=\"%@\" type=\"application/x-shockwave-flash\" \
    width=\"%0.0f\" height=\"%0.0f\"></iframe>\
    </body></html>";
    NSString *html = [NSString stringWithFormat:embedHTML, urlString,  aWebView.frame.size.width, aWebView.frame.size.height];
    //UIWebView *aWebView = [[UIWebView alloc] initWithFrame:frame];
    [aWebView loadHTMLString:html baseURL:nil];

    //----Disable Scroll UIWebView----

    [[[aWebView subviews] lastObject] setScrollEnabled:NO];
    //[mainView addSubview:aWebView];
    //[self.mainView addSubview:videoView];
    [aWebView release];


}

- (void)dealloc {
    [toolbar release];
    [super dealloc];
}   
@end

This is what i have so far.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:37:53+00:00Added an answer on May 22, 2026 at 10:37 pm

    The approach we took with youtube videos is as follow (I guess you can do something similar with vimeo).

    What you need to do is set an imageview on top the webview, which should display the thumbnail img of your vimeo video (this is what I understand from your question).

    You can retrieve thumbnail images with Vimeo API

     To get data about a specific video, use the following url:
    
    http://vimeo.com/api/v2/video/video_id.output
    
    video_id The ID of the video you want information for.
    
    output Specify the output type. We currently offer JSON, PHP, and XML formats.
    

    You’ll get three thumbnails, one for different size (small, medium, large).

    Since your imageView will hide the webview and the button on it to start playing, you will need to perform an action when you tap the uimageview (or just set an uibutton on top). Then, the selector should call something like this:

        **
     * When webview has loaded, send an action to itself so it starts the video
     * playback automatically
     */
    - (void)webViewDidFinishLoad:(UIWebView *)_webView {
      _webView.hidden = NO;
      UIButton *b = [self findButtonInView:_webView];
      [b sendActionsForControlEvents:UIControlEventTouchUpInside];
    }
    
    - (IBAction) playVideo:(id)sender {
      NSString *key = [NSString stringWithFormat:@"%d", [sender tag]];
      UIWebView *youtubeView =
        [[UIWebView alloc] initWithFrame:CGRectMake(-180, 100, 160, 80)];
      youtubeView.tag = 3000;
      youtubeView.hidden = YES;
      [self.tableView addSubview:youtubeView];
    
      [self embedYouTubeIntoWebview:youtubeView withURL:[[self.nodeCollection objectForKey:
                                                          key] valueForKey:@"videoURL"]
                            inFrame:youtubeView.frame];
        [youtubeView release];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have successfully implemented printing and print preview for my app using the PrintDocument,
I have implemented Single-Sign-On in my iOS 4.3 app successfully. Now I want to
I have successfully implemented this from android to a java httpservlet on google app
I have successfully implemented django-ajax-uploader into my project. But I do not know how
I have successfully implemented push notifications to my app. The next step is, if
I have successfully implemented a UITextField in a UITableViewCell. Just like this: . I
I have successfully implemented the IAP. However I am wondering how to actually implement
I have successfully implemented an SQLite database in my Android app insofar as I
I have successfully implemented a mixed camera and glsurfaceview display. However, after pressing the
I have successfully implemented login with Facebook using Devise and OmniAuth (built into Devise).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.