We are developing modules that fit the needs of our projects / customer and want to give these modules back to the community.
The first one we want to share is a module called "Silverlight Video". It's a silverlight player for Drupal.
More Information:
Name of module: Silverlight Video
Version: 1.0
Author: Daniel Greitens, Daniel Wissemann
Description:
“Silverlight Video” is a module, that can show wmv videos within a Silverlight player. The module stores every video as a node. Several options can be changed in the administration area. The module works with the templates generated by Expression Encoder, hence the templates are fully customizable with Expression Blend.
Function list:
- New content-type for Silverlight-videos
- Videos can be import from the files directory directly. The module creates a node for every video
- The module works with the templates generated by Expression Encoder
- The templates are fully customizable with Expression Blend
- Several settings can be set in the administration area
Available Seetings:
- Auto load: The video loads automatically when the page has loaded
- Autoplay: The video plays automatically when the page has loaded
- Display Timecode (Effect depends on template)
- Enable cached composition: Enables GPU support for video playback
- Enable captions: Shows captions under the video
- Enable offline: Stores the video locally in the isolated storage of silverlight
- Enable popout: Opens the video in a new window
- Start muted: The video plays in muted mode
- Stretchmode: Enables fullscreen videoplayback
- Width:The width of the video
- Height: The height of the video
Dependencies:
- Upload module
Comment | File | Size | Author |
---|---|---|---|
#11 | silverlightvideo.zip | 466.11 KB | maximago |
#8 | silverlightvideo.zip | 466.13 KB | maximago |
#2 | 002_silverlightvideo.zip | 466.24 KB | maximago |
#1 | 002_silverlightvideo.zip | 466.24 KB | maximago |
Comments
Comment #1
maximago CreditAttribution: maximago commentedComment #2
maximago CreditAttribution: maximago commentedplease don´t use this version
Comment #3
apadernoWhich should the file to review?
Comment #4
maximago CreditAttribution: maximago commentedThe first file :)
Comment #5
apadernoI guess you mean the file attached in comment #1. Thanks for the answer.
Comment #6
apadernoThe array indexes are not strings, or numbers.
Strings used in user interface should have the first word in capital case, and the other words in lower case (with the exception of proper nouns, adjectives derived from proper nouns, and acronyms).
The Drupal variable used doesn't respect the namespace.
Why isn't the code using a checkbox?
See the Drupal coding standards to understand how a module code should be written.
The hook should pass the permission strings without to translate them.
Menu titles, and descriptions are not passed to
t()
.The string is not translated; then, the message seems a debug message that should be removed.
The attribute color is deprecated in favor of CSS styles.
It should be
.$teaser
is not a string.The second argument of
watchdog()
is not correct.It doesn't seem that the code verify if the user has access to the silverlightvideo node, before to return any data about that node. This is a security issue.
The code doesn't seem correct; first it uses
variable_get('silverlightvideo_default_path', silverlightvideo_DEFAULT_PATH)
, and then'silverlightvideo_default_path'
.Why isn't the code using a Drupal function with the same purpose?
Hidden items are not shown in the HTML page; the code is building a list of items that are not visible.
Before to save a node that has been built in memory, the code should allow to third-party modules to add their own data.
Rather than concatenating two strings, the code should use a placeholder.
Schema descriptions should not be passed to
t()
anymore. See system_schema() for an example of what done by Drupal core code.Comment #7
apadernoComment #8
maximago CreditAttribution: maximago commentedHello,
In the Attachment is a newer version.
The following Points were fixed:
1.2, 5, 6, 7, 8, 9, 10, 11, 12, 17, 18
Comment #9
maximago CreditAttribution: maximago commentedComment #10
apadernoSee the Drupal coding standards to understand how a module code should be written.
In particular, see how the code should be formatted, and the part about the namespace respect.
Also, I don't see the definition of the constant
autoload_true
in that file, and the file is not including another file.Comment #11
maximago CreditAttribution: maximago commentedHello,
I have fixed the formatting of the Quellcode.
I´m tested with the coder module.
Then i have changed the name of the constants.
Comment #12
dextrose CreditAttribution: dextrose commentedHello I am new to the drupal community and have just started learning to use it. I would like to integrate Silverlight into my site and this is the only thing I can find on the website regarding Silverlight. However, since I cannot find this work under the Modules section of this website, it is unclear to me if this is something that can be used now? I see that I could download the attached .zip file (silverlightvideo.zip) but again I am concerned about the status of said code etc.
Thanks,
Dex
Comment #13
maximago CreditAttribution: maximago commentedComment #14
apadernoComment #15
maximago CreditAttribution: maximago commentedHi all,
after 1,5 months of waiting, I don't understand the current project status.
Is something happening there?
Or are we doing something wrong?
With this module we wanted to say thank you and give something back to the community.
Are you uninterested in our work?
Thanks
maximago
Comment #16
apadernoComment #17
maximago CreditAttribution: maximago commentedIt's a little bit sad...we are developing for the community and don't succeed in making it public. Please just tell us, what is needed to get it public!
Comment #18
apadernoThe code contains code lines as
variable_get(framerate, '')
, which are not correct for two reasons (I have already reported why such lines are not correct).Comment #19
apadernoThere have not been replies in the last week. I am marking this application as
.