Closed (duplicate)
Project:
JW Player
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2011 at 08:24 UTC
Updated:
9 May 2016 at 18:06 UTC
Jump to comment: Most recent
Comments
Comment #1
nathanjo commentedFor now I hide it when the file_mime is video/youtube.
Comment #2
rickvug commented@nathanjo How are you specifically passing a YouTube video to JW Player at the moment? I'm assuming media_youtube. At the moment I'm only implementing the HTML5 version of JW Player, wich I don't believe supports playing YouTube videos through the player. What I would do in your case is use File Entity to handle how video files should be displayed. Have YouTube first, with a fallback to JW Player for local files.
Hope this helps. With some more information I may be able to get a bit further.
Comment #3
sgdev commentedIn 7.x-2.x, it is possible to add a YouTube URL to a link or text field, format the field as JW Player, and have it play YouTube videos.
To enable/disable the controls, it can be done within the presets, or programmatically through the available hook. Please download 7.x-2.x-dev, apply the following patches, and let us know your feedback. Thanks.
* Refactor theming: https://www.drupal.org/node/2713725
* Add not empty checks and Repeat option: https://www.drupal.org/node/2719995
* Add js file to build player: https://www.drupal.org/node/2719977