What's the process of web browser player?

Hi,

What's the process of web browser player?
I want to play video in webOS, is it possible? And if so, what's the process?
If I play youtube url, or other url that comes out video, is it possible like in chrome browser?
How can I call the web browser player?
Should I using the LS2 API? If so, what can I use the api?
I just wanted to test, launch .ipk using the 'Built-in Web Apps' edit index.html like this

<!DOCTYPE html>
<html>
<head>
<meta charset="EUC-KR">
<title>Insert title here</title>
</head>
<body>
	<div class="content">
    <video controls width="560"height="315">
			    <source src="./img/test.mp4">
		</video>
	</div>
</body>
</html>

I launched that in emulator, and it works.
There are no luna api, but it works. How it could be?
Sorry for that I have a lot of questions, but I want to know how it works.

Thanks

What's the process of web browser player?

As far as I know, the process like this: web application --> web browser (Chromium-based) ---> Media Service. So if you want to play video only on the web application. you can use browser API, such as video tag. I think it is enough to play the video without DRM. Playing DRMed video is a different story.

I want to play video in webOS, is it possible? And if so, what's the process?

YES! you can play video on webOS. The webOS platform supports HTML5 APIs.

If I play youtube url, or other url that comes out video, is it possible like in chrome browser?

YES, but it is not perfectly the same as chrome browser in the desktop PC.

How can I call the web browser player?

You can call it using video element. HTML Video

Should I using the LS2 API? If so, what can I use the API?

If you want to play a video on a native application or services, you can use media service ( com.webos.media | webOS Open Source Edition)

If you application was launched and worked on the emulator, I think it will be worked on RPI4.

A web browser is application software for accessing websites . When a user requests a web page from a particular website, the browser retrieves its files from a web server and then displays the page on the user's screen. Browsers are used on a range of devices, including desktops, laptops, tablets, and smartphones.