tags:

views:

54

answers:

2

There are some apps in the app store that have a video stream without using mpvideo and they are embbeded on the uiview or uiwebview. How is this implementation done? Any help is great thanks.

+1  A: 

Probably with the standard HTML5 <video> tag. It allows you to play a video file that is local or remote. Or even a live stream. Check Apple's Safari Dev Center for all details.

St3fan
+1  A: 

You can try to load the HTML code into the webview itself with loadHTMLString:

The method is part of UIWebView and looks something like this:

[self.webview loadHTMLString:(NSString *)_some_string baseURL:nil]

You can store a basic html page with the embed code for the video in the _some_string variable and it will load up that page with the embed code.

NSString *html = @"\
<html>\
    <head></head>\
    <embed code for video here>\
</body></html>";

[self.webView loadHTMLString:html baseURL:nil];
Kennzo