Active
Project:
Video
Version:
8.x-2.x-dev
Component:
General
Priority:
Normal
Category:
Plan
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Dec 2015 at 00:33 UTC
Updated:
21 Mar 2017 at 14:24 UTC
Jump to comment: Most recent
Build a Drupal 8 port of Video Module.
Build a list of tasks to complete to build a port and add new feature like embedding videos.
Comments
Comment #2
hypertext200Comment #3
hypertext200Comment #4
hypertext200Comment #5
hypertext200Comment #6
sam152 commentedWhy has the focus of this module been updated to include embedded videos? This is a significant overlap with video_embed_field. Having cloned the module, I was also interested to find the video_embed_field module has been copied into your module 1 for 1 with all of the tests deleted and some slight modifications? Was there no way to utilize the same plugins in your module? I would have thought so given the interface is exactly the same with a couple of methods removed. If there is a part of the module which is difficult to extend, an issue should have been filed in the queue.
I find this against the spirit of https://www.drupal.org/contribute/development#collaboration. The copied code now lacks the support of the video embed field maintainers it, isn't covered by the tests and is a totally unnecessary duplication given none of the new "video" functionality which you added actually touches or needs any of the copied embed field code.
I'd recommend we talk about the reasons behind the fork and figure out why vef couldn't be utilized for your purposes in the first place.
Comment #7
hypertext200@Sam152 I'm not trying to compete here with you or anyone else, I'm trying to do things little differently and I used video_embed_field and media_entity modules as a reference to implementing the plugin system. If I see something nice and clean I used it in my system, so if you see why I used annotations differently that is because it is more efficient that way.
I'm a big fan of stream wrappers too and I noticed that Media module doesn't carry that feature in to 8.x so I though may be it's a good idea to implement stream wrappers based solution for the embedded videos.
Currently D8 Flysystem module extend the D8 default file system to provide various other stream wrappers so storing local videos is no longer going to be an intensive task to the local server.
So if I used something similar in my interfaces or anywhere that is because I think it could be the best way to implement it, video_embed_field module is great and it will try to solve a one solution while video module will solve multiple solutions keeping a same kind of structure.
You might already know that we had YouTube embedded feature in video 4.7, 5.x and early 6.x modules and then dropped in 7.x as Media module addressed it using stream wrappers, so now we are adding it back in to 8.x since it might be a good idea to use stream wrappers based solution.
So in summary video module is a stream wrapper based implementation. I'd like to talk with you offline if possible find me "heshan"on IRC.
Comment #8
sam152 commentedI completely disagree with copying an entire module and offering the exact same functionality.
> I used video_embed_field and media_entity modules as a reference to implementing the plugin system.
Copying most of the code and providing the exact same functionality is not using it as a reference.
> video_embed_field module is great and it will try to solve a one solution while video module will solve multiple solutions
This is not a valid reason to copy a module into another.
> I though may be it's a good idea to implement stream wrappers based solution for the embedded videos
I don't understand what the distinction is here? Are videos input in a different format? Are they stored locally first? The identical regexes seem to indicate they are parsed from user input and output as an embed code. Can you explain how it works differently? How do stream wrappers come into play if there is nothing stored on the file system?
Comment #9
hypertext200@Sam152 I hope you know how the Stream Wrappers works in Drupal, we have a VideoRemoteStreamWrapper which extends ReadOnlyStream from Drupal core, so we treat youtube or other provider embedded codes/urls as files, so we take the input from the user but don't save it anywhere we just convert it to a file and save it in to the file_manged table (Eg. youtube://yACz4LBwCck for a YouTube video), then we treat it as a readonly file and do other operations like, read, getExternalUrl etc. Media YouTube do the same.
It is just the plugin manager interface is similar to the video_embed_field module but the functionality of the video module is completely different from the video_embed_field.
We are using single value field extending from file field to provide video uploads, embedded. Video embed widget provide the same functionality like file upload widget does.
Video module is not the video_embed_field module with just tests removed and it is false statement. I'll change the way I use Plugin API in future versions so may be it helps you to clear your thoughts.
Comment #10
hypertext200Comment #11
SebHaeu commentedHi heshanlk,
thanks for putting so much effort into this module. If the module handles both embedded and uploaded videos, it would be handy to have a select option when adding a video. In my case, my content type has two video fields, one for embedding and one for uploading. For a case like this it would be great to have a select option in the form display to choose which one, instead of seeing to seperate video fields.
Also, an option for choosing a thumbnail picture for uploaded videos would be nice.
Thanks and keep up the great work.
Regards, SebHaeu
Comment #12
hypertext200@SebHaeu we have one base field and two widgets, if you want to add both upload and embed videos you'll still need to configure it in the form display, so basically you'll need two fields. I'll keep notes tho so may be we can merge it to a single field since both widgets users same storing mechanism to store videos.
For the thumbnail picture, it might be a good idea to keep it separate and use some custom theme alter to implement it. I'll give some thoughts on that too.
Comment #17
hypertext200Comment #19
hypertext200Comment #20
sam152 commentedPersonally I don't believe differences with how the data is stored is enough of a reason to duplicate the whole feature set and implementation along with it. I see it as a waste of time amongst other things, but you are of course free to spend your time how you see fit.
Comment #21
hypertext200Comment #22
naveenvalechaCame from Twitter https://twitter.com/Sam_152/status/778467497079033856
I think give the credit to @Sam152 work on the project page & Readme.txt would be fair enough for this situation. Although I believe in https://www.drupal.org/contribute/development#collaboration and have not seen the whole code diff both repos have, so to closing this issue that's the ideal way now.
// Naveen
Comment #23
sam152 commentedParts were taken from media_entity_embeddable_video and parts from video_embed_field. I don't see credit as a problem really, it's more just the signal to noise ratio when multiple modules do the exact same thing, hence why VEF and MEEV merged in favour of collaboration. More confusing to newcomers.
Comment #24
naveenvalecha+1 I think you should start a new issue to deprecate the existing module in favour of media_entity_embeddable_video and video_embed_field. See existing issue for field collection https://www.drupal.org/node/2784931 Hope that would work.
// Naveen
Comment #25
kevin.dutra commentedThe Video module has traditionally done much more than just storing/rendering a video -- it also takes care of things like encoding. So although there may be overlap with
video_embed_field, by no means is there feature parity, so this module should not just be deprecated. Maybe it should evolve to play well with others rather than attempt to do all-the-things itself, butvideo_embed_fieldis not a direct replacement.Comment #26
sam152 commentedI agree, its focus has usually been to handle and manage local video files. The current functionality of this module is basically a field formatter that uses an HTML5 video tag on top of a file input. No pluggable players, no pluggable transcoding. A lot of the features that would have made this module useful are missing.
Comment #28
hypertext200We'll be dropping the video embedded feature from the Video module as of 8.x-2.x release and hopefully provide an upgrade path to the users who are already using the embedded feature of the module part of the https://www.drupal.org/contribute/development#collaboration. It make no sense to keep two modules fighting for the same and we will only be focusing on video transcode and uploaded videos. So there will be no feature conflict.
Comment #29
hypertext200