I am building python django application where I need to play a video when request is made from web browser. Scenerio: When I click a button from webapp then I should be directed to next page, and video should play on either mediaplayer such as VLC or something else(pop-up). I tired python openCV and VLC library, but had a very little luck because It wait for video to finish playing, so it doesn't render the page and kills the django server. Here is the code I was trying: play_video() opens the openCV frame and start playing the video, but django view doen't render
def index(request):
person = person.objects.all()
context = {'person': person}
play_video()
return render(request, 'index.html', context)