Giter Site home page Giter Site logo

su-sws / stanford_video Goto Github PK

View Code? Open in Web Editor NEW
3.0 28.0 0.0 334 KB

Stanford Web Video: Custom content type and video player for captioned video created by captioning.stanford.edu

License: GNU General Public License v2.0

CSS 3.32% PHP 96.68%
d7 module media

stanford_video's Introduction

#Stanford Video

Version: 7.x-3.x-dev

Maintainers: jbickar, sherakama, josephgknox

Changelog.txt

This module delivers a content type, which allows for the embedding of a video directly into a page as well as the inclusion of other items (i.e., quote and speakers). It includes a view with four display options, and also allows for two page layout options: full width (default) and half width.

Installation

Install this module like any other module. See Drupal Documentation.

This module requires the Video Embed Field contrib module.

Configuration

  • Create a new video node at node/add/stanford-video
  • You can embed videos directly by inserting the direct URL to a video hosted on YouTube or Vimeo
  • The default page views will be available at videos/recent-videos and /videos/recent-videos/grid (block views can be placed liek any other block views)

Troubleshooting

If you are experiencing issues with this module try reverting the feature first. If you are still experiencing issues try posting an issue on the GitHub issues page.

Contribution / Collaboration

You are welcome to contribute functionality, bug fixes, or documentation to this module. If you would like to suggest a fix or new functionality you may add a new issue to the GitHub issue queue or you may fork this repository and submit a pull request. For more help please see GitHub's article on fork, branch, and pull requests

stanford_video's People

Contributors

cynmij avatar jbickar avatar kmakitan avatar sherakama avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stanford_video's Issues

Add some default Views and views template files

If you create a View and use the "Fields" row style, the views.tpl.php file takes over the field display from the custom template file in the module. Should add some default Views and views-view-field—field-stanford-video-media-fid.tpl.php and views-view-field—field-stanford-video-remote-value.tpl.php template files.

Add support for videos in subdirectories

If a user pastes in streamer code to a video in a subdirectory in their space on the Stanford Video streaming server, the JWPlayer JS code gets populated incorrectly.

E.g., rtmp://sv-stream.stanford.edu/su-webservices/some/arbitrary/level/of/nestingfoo.mp4 results in:

streamer: "rtmp://sv-stream.stanford.edu/su-webservices/some/arbitrary/level/of/",
file: "foo.mp4"

When it should be:

streamer: "rtmp://sv-stream.stanford.edu/su-webservices",
file: "some/arbitrary/level/of/nestingfoo.mp4",

The fix would be to update the preg_split that generates $remote_file and $remote_streamer, https://github.com/SU-SWS/stanford_video/blob/6.x-2.x/content-field-field_stanford_video_media.tpl.php#L60

Verify that video meta tag is no longer needed

Part of the investigation into IE9 compatibility indicated that the video needed the following tag in the HTML section:

It does not look like the most recent version has this, yet it still appears to work with IE9.

Verify that this is not needed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.