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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:29:23+00:00 2026-05-23T10:29:23+00:00

I am working on determining if an event is live by reading from an

  • 0

I am working on determining if an event is live by reading from an XML file http://www.calvaryccm.com/ServiceTimes.asmx/IsServiceTime.

It returns a boolean result, but I cannot figure out how to access it using objective-c. This is what I have so far:

NSError * error = nil;
NSString * responseString = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"http://www.calvaryccm.com/ServiceTimes.asmx/IsServiceTime"] encoding:NSUTF8StringEncoding error:&error];
NSLog(responseString);
if (error) {
    NSLog(@"%@", [error localizedDescription]);
}

if ([responseString isEqualToString:@"true"]) {
    // Handle active content.
    NSString *baseVideoUrl = @"http://streaming5.calvaryccm.com:1935/live/iPhone/playlist.m3u8";
    NSLog(@" finalUrl is : %@",baseVideoUrl);

    MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL URLWithString:baseVideoUrl]];

    if ([moviePlayer respondsToSelector:@selector(setFullscreen:animated:)]) {  
        // Use the 3.2 style API  
        moviePlayer.controlStyle = MPMovieControlStyleDefault;  
        moviePlayer.shouldAutoplay = YES;  
        [self.view addSubview:moviePlayer.view];  
        [moviePlayer setFullscreen:YES animated:YES];  
    }

} else {
    // Inform user that the content is unavailable
    UIAlertView *alert = [[UIAlertView alloc]
                          initWithTitle: @"Live Service"
                          message: @"There is no service going on at this time"
                          delegate: nil
                          cancelButtonTitle:@"OK"
                          otherButtonTitles:nil];
    [alert show];
    [alert release];
}
  • 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-23T10:29:23+00:00Added an answer on May 23, 2026 at 10:29 am

    Firstly your NSLog statement should be:

    NSLog(@"%@", responseString); 
    

    This will properly log out the response String, you will then get this value back (I just tried it):

    <?xml version="1.0" encoding="utf-8"?>
    <boolean xmlns="http://tempuri.org/">false</boolean>
    

    Your response String is not equal to true because it is the fully qualified XML String representation. You need to either search the String, you could do this by looking for if it contains the text “true” or “false”.

    NSRange range = [responseString rangeOfString : @"true"];
    
    if (range.location != NSNotFound) {
        //String contained true
    }
    

    Alternatively you can use a lightweight XML solution like GDataXMLNode

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

Sidebar

Related Questions

I'm currently working on a website that imports XML data that we download from
also try this but for me it isnt working. Determining image file size +
I am working on determining if a stream is live or not. I have
Working with an Oracle 9i database from an ASP.NET 2.0 (VB) application using OLEDB.
I am new to Android and I am working on determining if a stream
How would you go about determining how much time was added due to working
I'm working on a T4 template to automatically generate a C# class definition from
I'm working on a complex network software and I have trouble determining how to
I'm currently working with some code involving saving a file to a user-defined file.
Is there any way of determining the current working directory of an already running

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.