Jump to content
  • 0

Full Screen - How to do ?!


Anthony
 Share

Question

Hi 
It is possible to have an example (help) on how to set the resolution and aspect ratio values to have an "always" Full Screen image (Video that fills the whole screen). 

Is it possible?

This for Publish and Play Examples ..... 

Many Thanks
Link to comment
Share on other sites

  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

6 answers to this question

Recommended Posts

  • 0
Hi Anthony,

Have a good day. I developed this feature. It's on PR(https://github.com/ant-media/StreamApp/pull/47)

Btw, you can change your play.html and player.css according to my PR. Please check it -> https://github.com/ant-media/StreamApp/pull/47/files

Best Regards,
Selim

On Saturday, May 30, 2020 at 11:32:40 PM UTC+3, Anthony wrote:
Hi 
It is possible to have an example (help) on how to set the resolution and aspect ratio values to have an "always" Full Screen image (Video that fills the whole screen). 

Is it possible?

This for Publish and Play Examples ..... 

Many Thanks
Link to comment
Share on other sites

  • 0
Many Thanks Selim. 
Now I will try.

However I thought, since the player has the "FullScreen" function (and Picture in Picture) it would not be possible to activate a simple "fullscreen" function when the page is loaded? (onload event)? .. for example ... <body onload = "fullscreeen ()"> ..... for example?!



Il giorno sabato 30 maggio 2020 23:06:55 UTC+2, Selim Emre ha scritto:
Hi Anthony,

Have a good day. I developed this feature. It's on PR(https://github.com/ant-media/StreamApp/pull/47)

Btw, you can change your play.html and player.css according to my PR. Please check it -> https://github.com/ant-media/StreamApp/pull/47/files

Best Regards,
Selim

On Saturday, May 30, 2020 at 11:32:40 PM UTC+3, Anthony wrote:
Hi 
It is possible to have an example (help) on how to set the resolution and aspect ratio values to have an "always" Full Screen image (Video that fills the whole screen). 

Is it possible?

This for Publish and Play Examples ..... 

Many Thanks
Link to comment
Share on other sites

  • 0
Hi Anthony,

I think you can do it. Could you please check below URLs can help you.

Best Regards,
Selim

On Sunday, May 31, 2020 at 12:48:27 PM UTC+3, Anthony wrote:
Many Thanks Selim. 
Now I will try.

However I thought, since the player has the "FullScreen" function (and Picture in Picture) it would not be possible to activate a simple "fullscreen" function when the page is loaded? (onload event)? .. for example ... <body onload = "fullscreeen ()"> ..... for example?!



Il giorno sabato 30 maggio 2020 23:06:55 UTC+2, Selim Emre ha scritto:
Hi Anthony,

Have a good day. I developed this feature. It's on PR(https://github.com/ant-media/StreamApp/pull/47)

Btw, you can change your play.html and player.css according to my PR. Please check it -> https://github.com/ant-media/StreamApp/pull/47/files

Best Regards,
Selim

On Saturday, May 30, 2020 at 11:32:40 PM UTC+3, Anthony wrote:
Hi 
It is possible to have an example (help) on how to set the resolution and aspect ratio values to have an "always" Full Screen image (Video that fills the whole screen). 

Is it possible?

This for Publish and Play Examples ..... 

Many Thanks
Link to comment
Share on other sites

  • 0
Hi Selim.

Thank you very much.

However I tried your example and it works well, congratulations. 
The only thing I don't understand is because the aspect ratio is 4: 3 and my web camera is definitely 16: 9 (1280 x 720 30 fps). Maybe it's because the publish page already acquires in 4: 3 mode?

Is there a way in your play example to adjust (force) the aspect ratio ?? Or a way to take action on the Publish page ??

Thank you....

Il giorno lunedì 1 giugno 2020 14:00:39 UTC+2, Selim Emre ha scritto:
Hi Anthony,

I think you can do it. Could you please check below URLs can help you.

Best Regards,
Selim

On Sunday, May 31, 2020 at 12:48:27 PM UTC+3, Anthony wrote:
Many Thanks Selim. 
Now I will try.

However I thought, since the player has the "FullScreen" function (and Picture in Picture) it would not be possible to activate a simple "fullscreen" function when the page is loaded? (onload event)? .. for example ... <body onload = "fullscreeen ()"> ..... for example?!



Il giorno sabato 30 maggio 2020 23:06:55 UTC+2, Selim Emre ha scritto:
Hi Anthony,

Have a good day. I developed this feature. It's on PR(https://github.com/ant-media/StreamApp/pull/47)

Btw, you can change your play.html and player.css according to my PR. Please check it -> https://github.com/ant-media/StreamApp/pull/47/files

Best Regards,
Selim

On Saturday, May 30, 2020 at 11:32:40 PM UTC+3, Anthony wrote:
Hi 
It is possible to have an example (help) on how to set the resolution and aspect ratio values to have an "always" Full Screen image (Video that fills the whole screen). 

Is it possible?

This for Publish and Play Examples ..... 

Many Thanks
Link to comment
Share on other sites

  • 0

Need to set mediaConstraints to:

var mediaConstraints = {

 video : {

   "width": {

   "min": 1280,

   "max": 1920

 },

 "height": {

   "min": 720,

   "max": 1080

   }

 },

 audio : true

};

 

Also for Antmedia folks, the new ability to switch video inputs in webrtc_adaptor.js doesn’t maintain these values :

 

In the function:

this.switchVideoCameraCapture = function(streamId, deviceId) 

 

if (typeof deviceId != "undefined" ) {

 thiz.mediaConstraints.video = { "deviceId": deviceId };

 }

 

Should become:

 

if (typeof deviceId != "undefined" ) {

 thiz.mediaConstraints.video = {...thiz.mediaConstraints.video, ...{ "deviceId": deviceId }};

 }

Robert J Berger

Omnyway CTO/SVP Engineering

http://www.linkedin.com/in/rberger

http://www.omnyway.com

On Jun 1, 2020, 8:17 AM -0700, Kevin Maude <kevin@socialvideo.online>, wrote:
I’m also interested to know. I believe the 4:3 aspect is somewhere set on the server side. I can set the play.html to be a 16:9 player and the capture to be 16:9 as well however delivery is 4:3 in the 16:9 player. 

--

Kevin Maude 206.972.0076 Sent from Mobile

 

--

You received this message because you are subscribed to the Google Groups "Ant Media Server" group.

To unsubscribe from this group and stop receiving emails from it, send an email to ant-media-server+unsubscribe@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/ant-media-server/CAJ30Hqj18YRyy6WzoC5ZNRpRHwUvitJjFCGhA%2B00GDh%2BkmrdcA%40mail.gmail.com.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...