Skip to main content

Hi Guys

 

want to check something with you regarding K2 features

 

1)    Do k2 capable to play the video or audio link

 

Thank you

Hanif

 

 

 

 


This is defenitly possible, I managed to play a youtube video with adio via a content control by using the steps below, there is one thing to note though, you will have to embed your youtube video (example: https://www.youtube.com/embed/AJ6xaS-V_vY). First before you will be able to play it directly in the view, it will want to play the video in a new tab therefore it has to be embeded first: 


 



  1. Create a view

  2. Edit the view

  3. Add a Content control to the view

  4. In the Content control's properties locate the setting section and add your embedded video URL into the provided URL space.

  5. Save and Finish your view.

  6. Now run the view, you will be able to play the video with audio


Note: I only tested this with a youtube video, I did not test it with a audio url.


 


Hi,


 


As Raymond mentioned, the easiest to do this is to grab a copy of the HTML Litteral Control:


http://community.k2.com/t5/K2-blackpearl/HTML-Literal/ba-p/80400


 


And then in the code behind add something like this:


 


<video width="640" height="480" controls autoplay><source src="[URL_TO_VIDEO]" type="video/mp4">Your browser does not support the video tag. Please download the video</video>


 


-Jean


Reply