Page 1 of 1

Play video from a URL

Posted: Wed Jan 16, 2013 3:44 pm
by Jozef Fraai

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?


Play video from a URL

Posted: Wed Jan 16, 2013 4:42 pm
by maxkatz

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


Play video from a URL

Posted: Wed Jan 16, 2013 5:03 pm
by Kateryna Grynko

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


Play video from a URL

Posted: Wed Jan 16, 2013 11:26 pm
by Jozef Fraai

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


Play video from a URL

Posted: Wed Jan 16, 2013 11:34 pm
by maxkatz

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.


Play video from a URL

Posted: Wed Jan 16, 2013 11:38 pm
by Jozef Fraai

Guess i will have to wait to use it then,

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