# How to Auto Full Screen Live Streaming

**URL:** <https://forum.webosose.org/t/how-to-auto-full-screen-live-streaming/505>\
**Category:** App Development\
**Created:** [August 17, 2018, 4:53am UTC](https://forum.webosose.org/t/how-to-auto-full-screen-live-streaming/505 "2018-08-17T04:53:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![suaji](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@suaji](https://forum.webosose.org/u/suaji)\
**Post date:** [August 17, 2018, 4:53am UTC](https://forum.webosose.org/t/how-to-auto-full-screen-live-streaming/505/1 "2018-08-17T04:53:25Z")

</div>

Hello Everyone..

Newbie here. I cant get auto full screen when play live streaming file (.m3u8). But Autoplay is working.

Here is html code i used \>

"video id="video" width="100%" height="100%" controls"

I tried 1280x1080 too. But still small size. I need to click manual for full screen.

![](https://canada1.discourse-cdn.com/flex031/uploads/developer1/original/1X/f05765338be79c17d1dc5d0065595538cd90a13a.png)

 ![](https://canada1.discourse-cdn.com/flex031/uploads/developer1/original/1X/f9dc35897ecdd658ac507d07b3b0866031f9f69b.jpeg)

---

<div class="post-metadata">

**Author:** ![n-jay](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/n-jay/32/126_2.png) [@n-jay](https://forum.webosose.org/u/n-jay)\
**Post date:** [August 18, 2018, 7:21am UTC](https://forum.webosose.org/t/how-to-auto-full-screen-live-streaming/505/2 "2018-08-18T07:21:38Z")

</div>

Hi @suaji,  
Might I suggest using a `<canvas>` tag and using the window.innerWidth and window.innerHeight properties to auto fit the window? So it would essentially autofit any size without the need to hardcode.

Something similar to what's suggested in this video:

You could also put the `<video>` inside the `<canvas>` tag and do the needful from there. I don't know if that's how you've arranged the page as the red box had blocked the upper and lower tags.

---

<div class="post-metadata">

**Author:** ![suaji](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@suaji](https://forum.webosose.org/u/suaji)\
**Post date:** [August 21, 2018, 1:31am UTC](https://forum.webosose.org/t/how-to-auto-full-screen-live-streaming/505/3 "2018-08-21T01:31:20Z")

</div>

Hi bro njay.. Thanks for reply.. I will try it after holiday..

Thanks again ^\_^v

---

<div class="post-metadata">

**Author:** ![n-jay](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/n-jay/32/126_2.png) [@n-jay](https://forum.webosose.org/u/n-jay)\
**Post date:** [August 22, 2018, 5:53pm UTC](https://forum.webosose.org/t/how-to-auto-full-screen-live-streaming/505/4 "2018-08-22T17:53:59Z")

</div>

No prob @suaji,  
please do update this thread on any developments that you make 🙂

---

<div class="post-metadata">

**Author:** ![suaji](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@suaji](https://forum.webosose.org/u/suaji)\
**Post date:** [August 30, 2018, 4:33am UTC](https://forum.webosose.org/t/how-to-auto-full-screen-live-streaming/505/5 "2018-08-30T04:33:31Z")

</div>

not yet try it bro. Lazy to flash back old image file. I dont know why latest image, cant fit with my TV 720p.

Previous image file can fit my tv using 1366x768. huhu  
I tried to 1280x720 also not working.

---

<div class="post-metadata">

**Author:** ![suaji](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@suaji](https://forum.webosose.org/u/suaji)\
**Post date:** [October 10, 2018, 2:27am UTC](https://forum.webosose.org/t/how-to-auto-full-screen-live-streaming/505/6 "2018-10-10T02:27:07Z")

</div>

Hi Admin..

Should i open new thread or stick with this thread?.

I had problem with version #27 (20180925122909).

I cant play live streaming anymore.

I dont know how to get logcat, so i can share here what is the bug.

Here is code is used to play live streaming.  
[Html Code](https://pastebin.com/GbtGE6Q6)

Previous version can play m3u8 file.  
[https://youtu.be/1fIxJpAqvxo](https://youtu.be/1fIxJpAqvxo)
