Video Embed Ustream provides support for ustream video on Drupal Site.
For Enabling this, user must first have to enable Video Embed Field Module in its site, after that he can also enable this module in it.
After enabling, user has to add a field of type video embed and widget video in its content type.
After that he can add a content of that node, and for video embed field, he just have to paste url of video in its content type and video will be rendered in its page.
Project page : https://www.drupal.org/sandbox/manojbisht891/2306561
GIT COMMAND FOR CLONE
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/manojbisht891/2306561.git
Manual Review of Other Module
https://www.drupal.org/node/2645032#comment-10953393
https://www.drupal.org/node/2684799#comment-11004259
https://www.drupal.org/node/2621380#comment-11004333
https://www.drupal.org/node/2621380#comment-11009079
Manual Review of Other Module
https://www.drupal.org/node/2787937#comment-11536209
https://www.drupal.org/node/2737337#comment-11536483
https://www.drupal.org/node/2775811#comment-11536561
| Comment | File | Size | Author |
|---|---|---|---|
| #57 | coder-results.txt | 1.2 KB | klausi |
| #52 | video_embed_ustream_test.png | 462.75 KB | ajits |
| #16 | Error 10.209.11.26.png | 12.39 KB | gaurav.pahuja |
| #11 | Video_embed_ustream_undefined_variable.png | 27.82 KB | debaryadas |
Comments
Comment #1
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxmanojbisht8912306561git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #2
manojbisht_drupal commentedBugs have been fixed, README file has been added.
Please review it and promote it to production
Comment #3
th_tushar commentedHi,
I have manually reviewed your code,
The quotes are not required in .info file.
Else, the code looks fine for me.
Comment #4
pushpinderchauhan commented@manojbisht_drupal, thanks to you for contributing.
I installed this module and try to add content, after submission getting following issue:
Fatal error: Call to undefined function custom_module_knownId() in C:\xampp\htdocs\drupal731\sites\all\modules\2306561\video_embed_ustream.module on line 122Comment #5
manojbisht_drupal commented@pushpinderrana - Thanks for reviewing this module.
I have updated the file, after resolving the bugs.
Please review the module, so that I can promote this to production.
Comment #6
PA robot commentedProject 1: https://www.drupal.org/node/2320099
Project 2: https://www.drupal.org/node/2311531
As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).
If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #7
manojbisht_drupal commentedComment #8
harshil.maradiya commentedHello manojbisht_drupal,
I did quick review and following my code comments
1> Please add method definition for each and every method in module file
2> remove commented from file
3>Try to put helper function in different file so code will be in more readable format.
Thanks
Harshil
Comment #9
harshil.maradiya commentedComment #10
debaryadas commentedHi manojbisht_drupal,
Please check the following link. It will show you an automated review result.
At present your application contains formatting related issues which you need to resolve first.
http://pareview.sh/pareview/httpgitdrupalorgsandboxmanojbisht8912306561git
Manual Review
---------------
Few things that I have noticed
1] All the function names do not follow Drupal naming conventions of functions.According to
Drupal coding standard(https://www.drupal.org/coding-standards#naming), the function name
should not have "Uppercase" letters. Rather you can user underscore. So according to me,
the following functions
_video_embed_ustream_getVideoProperties
_video_embed_ustream_getChannelProperties
_video_embed_ustream_getUserProperties
_video_embed_ustream_validId
_video_embed_ustream_knownId
can be renamed as
_video_embed_ustream_get_video_properties
_video_embed_ustream_get_channel_properties
_video_embed_ustream_get_user_properties
_video_embed_ustream_valid_id
_video_embed_ustream_known_id
2] The following functions do not have definitions
_video_embed_ustream_getVideoProperties
_video_embed_ustream_getChannelProperties
_video_embed_ustream_getUserProperties
3] Got an error after adding an url in the video embed field. [See image Video_embed_ustream_undefined_variable.png].
In the video_embed_ustream_handle_video function, _video_embed_ustream_check_type is called with '$embedCode'
which is neither defined in the function _video_embed_ustream_check_type nor passed to it.This variable is being
passed as arguments without initializing properly.
I request you to review my sandbox project also. Following is the URL
https://www.drupal.org/node/2322009
With Regards
Debarya Das
Comment #11
debaryadas commentedattached pic
Comment #12
manojbisht_drupal commented@debaryadas
Thank you for pointing out the error.
I have solved the error, which was coming.
Please review it again, to help me promoting it on production.
Comment #13
manojbisht_drupal commentedPlease review this module, so that I can promote it to production
Comment #14
pushpinderchauhan commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Comment #15
gaurav.pahuja commentedHi Manoj,
Can you please let me know the key differences between your module and those provided by Media Ustream.
https://www.drupal.org/project/media_ustream
Comment #16
gaurav.pahuja commentedAlso, I tried putting different values inside Video field
1.
alert('XSS');Got error: Video: Invalid Video URL.
Perfectly Fine.
2. Valid Ustream URL:
http://www.ustream.tv/recorded/17516386
Worked fine.
3. Invalid ustream URL:
http://www.ustream.tv/embed/recorded/17516386
Got a exception:
Comment #17
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #18
alar commentedIn response to post #15, I think the major difference between this project and the module provided by ustream is there is no dependancy on the Media module ( Media 1.x or Media 2.x).
The only requirement here is the Video Embed Field Module.
For anybody who has run in to the file_entity issues with: was in media 1.x, is standalone in media 2.x well this looks to be clean and simple. I'm going to give it a go.
Comment #19
alar commentedThat was so sweet / easy :)
Don't forget to enable Ustream Video
/admin/structure/types/manage/video/fields/field_video
Add:
Select the allowed video providers
Youtube
Vimeo
+ Ustream Video
:)
---
Let me help test if you are still interested in promoting this @manojbisht_drupal
Comment #20
manojbisht_drupal commentedThanks @alar, for your feedback.
Please give this module a try.
Comment #21
manojbisht_drupal commentedComment #22
babusaheb.vikas commentedHi manojbisht_drupal,
Pareview.sh is showing lots of warning - http://pareview.sh/pareview/httpgitdrupalorgsandboxmanojbisht8912306561git
which you need to resolve first.
Manual Review
---------------
1. No need to use quotes in .info file.
2. It would be better if your info file look like:
name = Video Embed Ustream
description = Provides Ustream handler for Video Embed Fields.
core = 7.x
package = Media
configure = admin/config/media/vef_video_styles
dependencies[] = video_embed_field
3) You should provide the hook_help to allow site builders to find information about your module using Drupal UI.
Comment #23
smakisog commentedHi manojbisht_drupal,
1) Please format all code in one standard and remove spaces on end of lines
2) At line 258 in security reason you need rewrite code from
to
Comment #24
jwilson3Based on #22 and #23, needs work.
Comment #25
klausiMinor coding standard issues and a missing hook_help() are surely not application blockers, anything else that you found or should this be RTBC instead?
Comment #26
manojbisht_drupal commentedHi,
I have fixed bugs in this module.
I also agree with klausi, that some hook_help and coding standard issue, should not be the issue for not making it to production.
Can u please review this module and this functionality, so that we can promote it to production.
Thanks,
Manoj Bisht
Comment #27
manojbisht_drupal commentedComment #28
ajitsAssigning to myself for a review.
Comment #29
fabian.fernandes_30 commentedhi manojbisht_drupal,
there are some pending issues in
http://pareview.sh/pareview/httpgitdrupalorgsandboxmanojbisht8912306561git
Review of the 7.x-1.x branch (commit f37f2cd):
EDIT: removed long pareview.sh dump.
Comment #30
klausi@fabian.fernandes_30: please don't directly post the long pareview.sh dump, use a txt attachment instead or just post the link to the online service.
Comment #31
manojbisht_drupal commentedHi,
Fixed the formatting issue,however these are not related to functionality.
Please review it.
Comment #32
manojbisht_drupal commentedComment #33
varghese commentedPlease fix the coding standard corrections
http://pareview.sh/pareview/httpgitdrupalorgsandboxmanojbisht8912306561git
Comment #34
manojbisht_drupal commentedHi,
I have fixed the coding issue in it.
http://pareview.sh/pareview/httpgitdrupalorgsandboxmanojbisht8912306561git
Please promote it to contrib.
Comment #35
manojbisht_drupal commentedComment #36
manojbisht_drupal commentedComment #37
klausiRemoving review bonus tag, you you have not listed 3 manual reviews of other project in the issue summary. Make sure to read https://www.drupal.org/node/1975228 again.
Comment #38
pankajsachdeva commentedHi Manoj,
Your module is working fine.
There are few suggestions:
Comment #39
pankajsachdeva commentedThanks for your contributions.I would suggest you to take a review bonus to speed up the process. Please help reviewing and put yourself on the high priority list, then GIT Admin will take a look at your project right away :-)
Comment #40
manojbisht_drupal commentedComment #41
manojbisht_drupal commentedComment #42
manojbisht_drupal commentedRemoved Config Link, and implemented hook_help.
Comment #43
manojbisht_drupal commentedComment #44
th_tushar commentedHi @manojbisht_drupal,
I have manually reviewed your code. I found that this functionality is already available in Media: Ustream. Also the code written in your module is available in Media: Ustream.
If that fails for whatever reason please get back to us and set this back to "needs review".
Comment #45
manojbisht_drupal commentedHi Tushar,
Yes you are right similar provider exists also for Media Module, but the module, which I have created provides support for video_embed_field in Drupal 7.
Media:Ustream provides support for Media field, and it cannot be used for video_embed_field. To provides support for ustream for video_embed_field, this module has to be enabled.
Below is the data from video_embed_field project page.
Module Comparison
While other modules provide solutions for storing videos or creating media entities, this module only stores the URL to the video, hosted by external video platforms. Using this information the thumbnail and embed code are derived for display. It's appropriate as a simple, powerful replacement to copying and storing embed codes.
Comment #46
manojbisht_drupal commentedHi Tushar,
If u think its gud, then please promote it to Production.
Comment #47
manojbisht_drupal commentedComment #48
klausiI think this was RTBC already.
Comment #49
th_tushar commented@manojbisht_drupal,
This feature can still exist in Media: Ustream module!
Comment #50
manojbisht_drupal commented@tushar
I dont get it, if this feature can exits in Media:Ustream module, then there are many other modules which are supported and are specifically for video_embed_field.
Please check video_embed_field project page, under Provider section you will see the links of all the providers.
https://www.drupal.org/project/video_embed_field
Comment #51
ajitsReviewing it now.
Comment #52
ajitsAutomated Review
Everything good! http://pareview.sh/pareview/httpgitdrupalorgsandboxmanojbisht8912306561git
Note that perfect adherence to Drupal Coding Standard is NOT a reason to block an application, except for total disregard of them. However, modules should follow them as closely as possible.
Manual Review
'@ustream\.tv/([a-zA-Z0-9_\-]+)$@i'accepts invalid ustream URLs as well; or the module doesn't handle it well. Ex embed codes that were accepted during my tests:http://www.ustream.tv/arirangtvhttp://www.ustream.tv/embed/14067349?html5uihttp://www.ustream.tv/<script>alert('hi');</script>http://www.ustream.tv/recorded/54591846http://www.ustream.tv/channel/ghosttwustream.tv/user/growveinitiativeNOTE: In case of invalid URL #3 from the list above, the iframe shows the typical 404 error from ustream site. See screenshot below:

This should be handled in the validation, or support for such URL format should be removed.
Implementation of foo_bar.if the name of the function is_foo_bar(). These type of comments are typically used if the function is a hook implementation (correct way -Implements hook_foo().). As these are not hook implementations, the comments needs to improved to mention what the functions do exactly.// print_r($embed_url);die('Dying in Embed URL');.The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #53
ajitsComment #54
ajitsComment #55
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #56
manojbisht_drupal commented@ajits, Done with changes.
Comment #57
klausiReview of the 7.x-1.x branch (commit c7f1694):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
The wrong db_query() usage is a blocker right now. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #58
manojbisht_drupal commentedComment #59
manish.upadhyay commentedAutomated Review
Best practice issues identified by pareview.sh / drupalcs / coder:
Manual Review
It is working fine for me and i don't see any major blocker in the module.
Thanks,
Comment #60
manojbisht_drupal commentedHi,
Please review this module, I have updated the code.
Comment #61
manojbisht_drupal commentedComment #62
manojbisht_drupal commentedComment #63
klausiReview of the 7.x-1.x branch (commit bd470e6):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
But otherwise looks good to me.
Thanks for your contribution, Manoj!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.