56
Views
6
Comments
Solved
video widget to start playing right from where we logoff in previous session
Question

Hello,

Need solution for below scenario.

Once we login to the screen and started playing a video and logged off next time when we login the video should continue to play right from where we have stopped in the previous login. 

So what functionality to be added to the video widget to achieve this .


mvp_badge
MVP
Rank: #96
Solution

Hi Sandhya and Sanjay,

In addition to Remoco's previous comments and solution statements.. 

I have created a HowToDo sample application - It includes the demonstration of using various available HTML5 Video Tag events.

Refer the below links:

Forge Component: https://www.outsystems.com/forge/Component_Overview.aspx?ProjectId=8606 

Sample App: https://sbsam.outsystemscloud.com/ReactiveTestApp_UI/VideoPlayerEventsDemo 


@Sandhya: You can store/capture the Video Pause/Completion Timestamp value in the database table against a specific UserId, somewhat similar to what I implemented for capturing the video pause timestamp value in the sample app... 


Hope this helps you!


Regards,

Benjith Sam

mvp_badge
MVP
Rank: #27

Hi Sandhya,

You need to store the position of the video-player every second per user and when the page is reloaded. And then you have to start the video from the position that you stored in the database.

Hope this helps.

Kind regards,

Remco Dekkinga

Rank: #3883

Hello Remco,

Thanks for the reply.


May I know how to store the position of video player as the play and pause buttons were embedded in the video itself. 


mvp_badge
MVP
Rank: #27

Hi Sanjay,

What I explained were just some snippets of Javascript. You have to build your own piece of javascript to get this working.

I like to give some pointers into the direction of a possible solution. When I give the solution, you won't learn anything. ;)

The "video" in my example is the tagname, which shouldn't be replaced with your widget name.

<video></video>

Kind regards,

Remco Dekkinga

mvp_badge
MVP
Rank: #96
Solution

Hi Sandhya and Sanjay,

In addition to Remoco's previous comments and solution statements.. 

I have created a HowToDo sample application - It includes the demonstration of using various available HTML5 Video Tag events.

Refer the below links:

Forge Component: https://www.outsystems.com/forge/Component_Overview.aspx?ProjectId=8606 

Sample App: https://sbsam.outsystemscloud.com/ReactiveTestApp_UI/VideoPlayerEventsDemo 


@Sandhya: You can store/capture the Video Pause/Completion Timestamp value in the database table against a specific UserId, somewhat similar to what I implemented for capturing the video pause timestamp value in the sample app... 


Hope this helps you!


Regards,

Benjith Sam