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 8626531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:03:07+00:00 2026-06-12T08:03:07+00:00

I have added few videos inSame cell using tableview. Each cell is having its

  • 0

I have added few videos inSame cell using tableview. Each cell is having its own webview. Video is played in webview using the following code

NSString *embedHTML = @"<html><head>\<style type=\"text/css\">\body {\background-color:transparent;\color: white;\}\</style>\<script>\function load({document.getElementById(\"yt\").play();}\</script>\</head><body onload=\"load()\"style=\"margin:0\">\<video id=\"yt\" src=\"%@\" \width=\"%0.0f\" height=\"%0.0f\" autoplay controls></video>\</body></html>";
NSString *html = [NSString stringWithFormat:embedHTML, urlString, videoView.frame.size.width, videoView.frame.size.height,thumbnailImageLink];
[videoView loadHTMLString:html baseURL:nil];

It works absolutely fine. It displays the thumbnail video with play button on it. Tapping on Play button opens up the video player in Full Screen mode with all the controls.

Now the main issue is
When I press the done button the full screen mode goes away Well, thats as expected

But the downloading of the video Still continues. Not at all Good

So Say,
I opened up Video1 then I press on Done button, then I opened video2 But because video1 is still downloading, video2 is getting less internet speed.

So the Question is, Is there anyway out to forcefully stop Downloading when the Done button on full screen is pressed?

Note: There is a list of videos i.e. n videos = n webviews So it is not possible to detect Which webview is playing the video. If I am able to access the webview then I would have reloaded it So that the downloading can get stopped and it gets fresh content which does not start until I tap the thumbnail.

To be more Specific I can access when the video is played and when Done button is pressed using

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(videoPlayStarted:) name:@"UIMoviePlayerControllerDidEnterFullscreenNotification" object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(videoPlayFinished:) name:@"UIMoviePlayerControllerDidExitFullscreenNotification" object:nil];

And can be accessed through

BOOL isVideoInFullScreenMode;
-(void)videoPlayStarted:(NSNotification *)notification{
//Your stuff here
   isVideoInFullScreenMode = YES;
}

-(void)videoPlayFinished:(NSNotification *)notification{
    //Your stuffs here
    isVideoInFullScreenMode = NO;
}
  • 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-06-12T08:03:09+00:00Added an answer on June 12, 2026 at 8:03 am

    You can’t control what’s happening in the webview.
    I think it is a design issue. Webviews are not magic cure to all. You need to write the code yourself if you want to control it.
    I also hope you’ve bugged this with apple (http://bugreporter.apple.com).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have added few UI components using Storyboard (UILabel, UIImageView). I am trying to
Have a bit of confusion here. I added a few objects from a class
I have an object that I added to a few different ArrayLists. I wanna
I have a few custom UITableViewCells - http://img11.imageshack.us/i/customfacilitiescell.png/ which are added to this UIViewController
The problem i have is that i have created newsletter template, added few subscribers
i have implemented the in app purchase in my application and added few in
have recently changed the url structure of my website and have added a few
I'm trying to call web service for few hours. I have added clientaccesspolicy.xml: <?xml
I have added few images to my JList showing them horizontally. Now I want
I have added a few custom MenuItem objects to a ContextMenuStrip control. However, adding

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.