Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: Remove sharing from JW AllVideos

Remove sharing from JW AllVideos 1 year 2 weeks ago #45110

  • WillRoz
  • WillRoz's Avatar
  • OFFLINE
  • OSTycoon
  • Posts: 305
  • Thank you received: 2
  • Karma: 0
Hello again,

I'm using JW AllVideos to show a self-hosted flash video. When the video is done running a screen overlays the player that enables the user to share the video, gives an embed code option, and gives the video information.

I'm looking to remove that function from the player, so the video just ends once it's done playing. I can't find any parameter in the plug-in that does this, and I took a look at the plug-in code, but didn't see anywhere obvious to remove or comment out.

Any ideas on how to make this disappear once the video is done playing?

The video was given to me with a blank (black) first couple of frames, so I'm also looking for a way to add a preview image. Any ideas?
Will Rosner
Please become a member of OSTraining to reply to this post.

Remove sharing from JW AllVideos 1 year 2 weeks ago #45116

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
On their demo page demo.joomlaworks.gr/allvideos

The two MP4 video examples end the way you want. But you're right I don't see any way to specify that happening. I've loaded it on a demo site and see what I can see a way.

They have custom options, and there may be one for this, but I can't find it.
Custom options per video
Easy, descriptive syntax for media embedding. Use: {format/provider}filenameORvideoID{/format/provider}
You can also use syntax like: {format/provider}filenameORvideoID|width|height|autoplay{/format/provider}

...where "width" and "height" are the media dimensions in pixels and "autoplay" is enabled using 1 (use 0 to disable it).

For example, a YouTube video with 600x450 dimensions that autoplays on page load would be displayed adding this plugin tag in your Joomla! article (or K2 item, or Virtuemart product etc.): {youtube}he73js822|600|450|1{/youtube}

Have you asked JW about this? It's in the demo, but don't see it in the docs.

Let me know if you've contacted them and they have any answers. In the meantime I'll try to see if I can figure it out.

Ed
Please become a member of OSTraining to reply to this post.

Remove sharing from JW AllVideos 1 year 2 weeks ago #45121

  • WillRoz
  • WillRoz's Avatar
  • OFFLINE
  • OSTycoon
  • Posts: 305
  • Thank you received: 2
  • Karma: 0
Thanks Ed,

I was rooting through their forum and discovered that if you upload an image with the same name as the video into the /images/video directory, it automatically uses it as the preview image.

I still haven't figured out the share overlay though.
Will Rosner
Please become a member of OSTraining to reply to this post.

Remove sharing from JW AllVideos 1 year 2 weeks ago #45132

  • WillRoz
  • WillRoz's Avatar
  • OFFLINE
  • OSTycoon
  • Posts: 305
  • Thank you received: 2
  • Karma: 0
Nestled deep in the forum I found the answer.

In plugins/content/jw_allvideos/includes/sources.php

change line 32 ‘oncomplete’: ‘false’

Same with line 58 'oncomplete': 'false'

To get rid of the "Menu" icon completely locate the code for plugins (your 'oncomplete' may be set to true).

Change:

'plugins': {
'viral-2': {
'onpause': 'false',
'oncomplete': 'false'
}
},

to:

'plugins': {},

You have to do this on both lines 29 and 50
Will Rosner
Please become a member of OSTraining to reply to this post.
The following user(s) said Thank You: walldorff

Remove sharing from JW AllVideos 1 year 2 weeks ago #45166

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
Hi Will,

I just came back to this and see you already found the answer. I found one too, but it looks like yours is even better.

Delete 'viral-2' as '' in sources.php, line 30 and 56 (/www/plugins/content/jw_allvideos/jw_allvideos/includes)

Yours leaves the code intact so you can turn it back on. Nice persistence. Glad you got it solved.

Cheers,
Ed
Please become a member of OSTraining to reply to this post.

Remove sharing from JW AllVideos 1 year 2 weeks ago #45194

  • WillRoz
  • WillRoz's Avatar
  • OFFLINE
  • OSTycoon
  • Posts: 305
  • Thank you received: 2
  • Karma: 0
Hi Ed,

Thanks for taking the time to into this. It took me quite a while of searching their forum to find the right answer. I ended up removing all of the code and leaving it as 'plugins':{} to get rid of the 'menu' on the face of the player as well as the overlay at the end of the video.

It would be nice if they made this an option in the parameters instead of having to dig into the code, but at least I now know the work-around. Now the trick is to remember it for next time :)

Thanks again!
Will Rosner
Please become a member of OSTraining to reply to this post.
The following user(s) said Thank You: walldorff

Remove sharing from JW AllVideos 1 year 2 weeks ago #45263

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
it should be an option. I'm going to suggest it to them. It only makes sense.

Ed
Please become a member of OSTraining to reply to this post.
The following user(s) said Thank You: walldorff

Sign Up for OSTraining

Powered by Kunena Forum

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.