Anthony Posted May 30, 2020 Share Posted May 30, 2020 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 More sharing options...
0 Selim Emre Posted May 30, 2020 Share Posted May 30, 2020 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 More sharing options...
0 Anthony Posted May 31, 2020 Author Share Posted May 31, 2020 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 More sharing options...
0 Selim Emre Posted June 1, 2020 Share Posted June 1, 2020 Hi Anthony, I think you can do it. Could you please check below URLs can help you. https://stackoverflow.com/questions/17143720/video-js-enter-fullscreen-on-play https://github.com/videojs/video.js/issues/4948 https://stackoverflow.com/questions/53671960/videojs-requesting-fullscreen-on-first-time-play https://stackoverflow.com/questions/24884242/videojs-autoplay-and-fullscreen-on-pageloading https://github.com/videojs/video.js/issues/1294 Best Regards, SelimOn 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 More sharing options...
0 Anthony Posted June 1, 2020 Author Share Posted June 1, 2020 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. https://stackoverflow.com/questions/17143720/video-js-enter-fullscreen-on-play https://github.com/videojs/video.js/issues/4948 https://stackoverflow.com/questions/53671960/videojs-requesting-fullscreen-on-first-time-play https://stackoverflow.com/questions/24884242/videojs-autoplay-and-fullscreen-on-pageloading https://github.com/videojs/video.js/issues/1294 Best Regards, SelimOn 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 More sharing options...
0 Kevin Maude1648581700 Posted June 1, 2020 Share Posted June 1, 2020 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 Maude206.972.0076 Sent from Mobile Link to comment Share on other sites More sharing options...
0 Robert Berger Posted June 1, 2020 Share Posted June 1, 2020 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 BergerOmnyway 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 More sharing options...
Question
Anthony
Link to comment
Share on other sites
Top Posters For This Question
3
2
1
1
Popular Days
Jun 1
4
May 30
2
May 31
1
Top Posters For This Question
Anthony 3 posts
Selim Emre 2 posts
Robert Berger 1 post
Kevin Maude1648581700 1 post
Popular Days
Jun 1 2020
4 posts
May 30 2020
2 posts
May 31 2020
1 post
6 answers to this question
Recommended Posts