Example code for playing video with trackbar