Hi
I have 10 videos & i want them to execute in a loop . First video should run & browser should get closed , then second,third & so on
I want it in Web based application .
Thanks
Hi
I have 10 videos & i want them to execute in a loop . First video should run & browser should get closed , then second,third & so on
I want it in Web based application .
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal YelvePosted Feb 23, 2023, 6:06 PM
Hi Ramco,
I have shared the code as console app. And as per your request you want to auto run the job. So I'll suggest go with the console app.
Ramco RamcoPosted Feb 23, 2023, 3:43 PM
Hi Vishal
On this line - process.CloseMainWindow();
i am getting below error - {"Process has exited, so the requested information is not available."}
Below is the code
Thanks
Vishal YelvePosted Feb 23, 2023, 2:06 PM
Hi Ramco,
Try this code I have Tested this and its working on IE Edge properly
Naimish MakwanaPosted Feb 23, 2023, 6:47 AM
Hello Ramco,
If you want to read video from Database. You need to modify your binddata method or you can create new method which will return List of Vides:
Example:
Then in page load method you need to return this urls as string to your UI
Finaly at UI side you can access this variable.
Thanks
Naimish Makwana
Naimish MakwanaPosted Feb 23, 2023, 5:51 AM
Hello Ramco,
You can use below code to run videos on load.
Thanks
Naimish Makwana
Ramco RamcoPosted Feb 23, 2023, 5:25 AM
Hi Tuhin
I don't want button to be clicked. When i run application it should automatically loop the videos
Thanks
Tuhin PaulPosted Feb 23, 2023, 4:36 AM
Hi Ramco,
Assuming that you want to create a web-based application to play the videos in a loop, you can use JavaScript to achieve this functionality. Here's an example of how you can do it:
Here's some sample code that demonstrates this approach:
This code creates a web page with a "Start Loop" button. When the button is clicked, the startLoop() function is called, which creates a video player and starts the loopInterval. The playNextVideo() function is called by the loopInterval, which plays the next video in the array and waits for it to finish before moving on to the next video. When all the videos have been played, the loop stops.