Jozef Fraai
Posts: 0
Joined: Wed Jan 16, 2013 3:44 pm

Play video from a URL

I am trying to build a app where you can scan a QR code and play a video from the URL that the QR is linked to.

At the moment I have the video's stored on a server with a simple HTML5 video script, but I would like to play the video from the Tiggzi video player cause this would be much nicer.

is there a way to do this?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Play video from a URL

The component that we have is just the standard HTML5 video element. Anything it supports, you can play.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Play video from a URL

You can use following code:
codeTiggzi('video_component_name').attr('src', 'http://clips.vorwaerts-gmbh.de/VfE.ogv');/code

Jozef Fraai
Posts: 0
Joined: Wed Jan 16, 2013 3:44 pm

Play video from a URL

Thanks for the fast reply,

What I actually am trying to do is to have a few QR codes wich users can scan and after scanning a QR code a different video plays in the same video player.

For now all I could do is use the video URL to play the video with the video player but this way I can't switch videos when a QR code is scanned

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Play video from a URL

You could use 'success' callback after the scan to update the video URL:

Image

But, there is a bug right now where you can't select any action for a native component. It's a known issue and will be fixed early next week.

Jozef Fraai
Posts: 0
Joined: Wed Jan 16, 2013 3:44 pm

Play video from a URL

Guess i will have to wait to use it then,

Thank you for helping me i will be lookin forward to the fix!

Return to “Issues”