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

  Write a java application using netbeans ide

Write a Java application using NetBeans Integrated Development Environment (IDE) or jGROUP IDE that calculates the total annual compensation of a salesperson

  Implement a method that compares two rectangles

Implement the compare method of the class RectangleComparator. The method compares two rectangles.

  Evaluate the amount of a certificate of deposit on maturity

Write a GUI program to compute the amount of a certificate of deposit on maturity -  prepare a program to evaluate the amount of a certificate of deposit on maturity

  Java catering program console based

For this assignment, you are required to design and develop a console (text-based) application for a small catering business. This application will simulate booking appointments, tracking catering jobs and processing payments.

  Enterprise java beans (ejb) in software development

Enterprise Java Beans (EJB) in software development, EJB technology, EJB application, Stateless Session Beans (SLSB), Stateful Session Beans (SFSB), Message Driven Bean (MDB), Entity Bean

  Apply the bfs algorithm and show the output

Apply the BFS algorithm and show the output and Apply the DFS algorithm and show the output - Define the necessary functions to implement the search problem. This should include a function that takes a vertex as input and returns the set of vertice..

  Squashes the difference in fruit weight-distribution

Assume that in squashes the difference in fruit weight between a 3-lb type and a 6-lb type results from three independently segregating allelic pairs, A/a, B/b, and C/c. Each capital-letter allele contributes a half pound to the weight of the squash...

  Create an interactive java application for insurance agent

Create an interactive Java application for insurance agent in order to generate a quote for a household. According to your design, the program must: Implement all the four Java classes described with the correct inheritance of abstract classes.

  Display a welcome message in a message dialog box

Display a welcome message in a Message Dialog Box (JOptionPane.showMessageDialog()) that includes the full name, e.g., "Welcome John Q Smith.".

  Write a java application that reads a file containing text

Write a Java application that reads a file containing text. Your program should read each line and display it on the console screen preceded by line numbers. If the input file is:

  Deadlock and starvation

What is the difference between deadlock and starvation.Explain in a sentence or two how you prevented deadlock in your implementation.

  Maximum number of processes

The amount of disk space that must be available for page storage is related to the maximum number of processes, n, the number of bytes in the virtual address space, v, and the number of bytes of RAM, r. Give an expression for the worst-case disk-spac..

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