Lock URL of html video element

  • dynamind
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 week ago - 10 years 1 week ago #44836 by dynamind
Lock URL of html video element was created by dynamind
Hi,

I'm working on a video-portal with restricted access to all videos.
Instead unregistered users should see only the preview image.
The html code looks like that:
Code:
<video class="video-js vjs-default-skin" poster="https://my*video*url/A01-a1.png" preload="none" controls="controls" width="568" height="320" data-setup="{}"> <source src="https://my*video*url/A01-a1.mp4" type='video/mp4' /> </video>

How to the load the video url only for paid & logged on member?
I mean something just like ...
Code:
<video class="video-js vjs-default-skin" poster="https://my*video*url/A01-a1.png" preload="none" controls="controls" width="568" height="320" data-setup="{}"> <source src="[locked]https://my*video*url/A01-a1.mp4[/locked]" type='video/mp4' /> </video>

best regards
Last edit: 10 years 1 week ago by dynamind.

Please Log in or Create an account to join the conversation.

More
10 years 1 week ago #44868 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Lock URL of html video element
Hi

You are embeding that HTML code into a Joomla article, is that correct ? If so, maybe you can use the solution explained in this forum post joomdonation.com/forum/membership-pro/29...n-members.html#29339 to restrict access to it to subscribers only.

Basically, the "Content - Membership Pro Content Restriction" will allow you to hide part of Joomla article (in this case, that's the video HTML code) to only subscribers of your site.

Please try it and get back to me with the result !

Tuan

Please Log in or Create an account to join the conversation.