Make the transcript interactive with the given video

Assignment Help JAVA Programming
Reference no: EM131320703

Assignment

This assignment will give you a chance to exercise your knowledge of extending jQuery and of multimedia players like the JWPlayer. We're building on the "divide-text-into-spans" example we started in Homework #3a, and will finish this with a fully-working example.

You will use jQuery and JWPlayer to to add a video to this page, and make the transcript interactive with the video. The file at js/transcript.js has a framework "stubbed out" with a few key code segments for you to fill in.

At the bottom of this page is a block of text which is the transcript from a public-domain video produced by NASA. (Sorry for the hokey video - I needed something public domain, brief, and for which there was a timed transcript available). If you look at the source code, you'll see that this seemingly single block of text is actually broken up into many separate SPANs, similar to the ones you made in Homework #3a.

The HTML source code looks something like this:

<span class="words" data-start="17.869" data-dur="3.82">Hey this is Dwayne Johnson. While playing astronaut Chuck Baker in the film Planet</span>

<span class="words" data-start="21.689" data-dur="0.701">51</span>

<span class="words" data-start="22.39" data-dur="3.56">I gained a lot of respect for our nation's space program. NASA makes new</span>

The code in the js/transcript.js file provides the framework for the solution which is a jQuery plugin called 'playerConnect()'. In usage, it looks like this: $('.words').playerConnect(player);, where the jQuery selector is returning the collection of SPAN elements, and player is the jwplayer instance we've added to the page.

The resulting behavior is twofold:

As the video plays, the relevant part of the transcript highlights.

If the user clicks on the transcript, the video seeks to the relevant segment.

A video showing the desired behavior is on the assignment page in Canvas.

Much of the code is provided for you in a well-commented framework, but the solution will require you to add code in four three places, each marked by a comment line like this: "YOUR CODE TO ADD #n":

YOUR CODE TO ADD #1: The first one is near the end of the JS file, where you'll create the jwplayer and load it into the page (this one is already done for you ... you're welcome!)

YOUR CODE TO ADD #2: Next you'll move into the jQuery plugin itself, where you'll get the current position of the video playback from the jwplayer's event object

YOUR CODE TO ADD #3: Third, you'll write the loop that compares the current player time with the time described in each element, and apply a style if the times match up.

YOUR CODE TO ADD #4: Finally, the click handler for each element is created, but the logic inside is missing. You'll add the code that causes a click to make the player seek to the right moment.

If this sounds scary, don't despair! The code already includes most of the heavy lifting, detailed instructions, and pseudo-code is provided in several places.

We will cover JWPlayer next week (4/29) in great detail and walk through some examples very similar to this one.

As usual, submit your project as a zip file, with a folder named like [lastname_firstname].hw4 zipped into a file called [lastname_firstname].hw4.zip.

Video Will Appear Here

Hey this is Dwayne Johnson. While playing astronaut Chuck Baker in the film Planet 51 I gained a lot of respect for our nation's space program. NASA makes new discoveries about our universe every day but one of the coolest things about nasa is the technologies that it creates for exploring space are also improving life here on earth. NASA technologies can be found everywherefrom the soles of the shoes to the freeze dried fruit in your cereal. These technologies, called spinoffs, help doctors heal patients with heart problems, scientists track rare animals, and firefighters and police officers and soldiers stay safe on the job. Space technology has even helped Olympic swimmers win gold medals. All of these the spinoffs began as innovations for nasa missions like the space shuttle, the Hubble Space Telescope, and the International Space Station. You don't have to be an astronaut to trace space back to where you live. Visit nasa.gov to learn more about how nasa technologies play a role in your life. After all, there's no space like home.

Reference no: EM131320703

Questions Cloud

What is valence bond model and the energy band model : If all the valence electrons in silicon are in the valence band, what is the minimum photon energy that is just enough to release an electron from silicon into vacuum?
Determine sensitivities and interactions : What market-mix considerations need to be evaluated to determine sensitivities and interactions? Why are market-mix relationships and interactions often difficult to analyze?
Is there information it should have asked for but did not : Did the information requested of you seem that it would be useful to the company? If so, why? If not, why not?Is there information it should have asked for but did not?In general, was your experience one that was conducive to you making purchases f..
Bringing a new kind of hamburger to its stores : Suppose McDonald's® was considering bringing a new kind of hamburger to its stores. What kind of research would it need to do in order to have some confidence that the new product would sell well, not just in the United States, but in its location..
Make the transcript interactive with the given video : You will use jQuery and JWPlayer to to add a video to this page, and make the transcript interactive with the video. The file at js/transcript.js has a framework "stubbed out" with a few key code segments for you to fill in.
Why are the valence electrons the most important : Why are the valence electrons the most important on influencing the electrical properties of silicon? Why are the core electrons not as important?
The return on an average stock in the market last year : Booher Book Stores has a beta of 1.2. The yield on a 3-month T-bill is 3.5% and the yield on a 10-year T-bond is 6%. The market risk premium is 5%, and the return on an average stock in the market last year was 15%. What is the estimated cost of comm..
Determination of its circuit equivalent : Outline the steps involved in the electromagnetostatic field analysis of a parallel plate structure and the determination of its circuit equivalent.
What is the purpose of strategic planning : What is the purpose of strategic planning for successful court management? How do the purposes and responsibilities of the various court personnel influence the planning and overall vision for court management

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd