Trying to create HTML5 Video Playlist in Edge Animate - I can't get it to work. Please help!?!?

Hi All,
I am creating an interactive site through Edge Animate and am in the process of trying to create a HTML 5 Video Playlist to function within Edge Animate.
Current Process - Example:
I have 3 videos that need to be played on a certain page.
I created a symbol and dragged the videos to the stage and hidden them within that symbol's timeline.
I then use thumbnail images in a side playlist to either .remove(); .hide(); a video and .show(); the next.
However when I do a hide / show option, the video continue to plays in the background if I don't also create an if/else statement to pause it.
My concern with pausing it is that it will continue to load and dramatically slow down the load time of the site.
References:
I found this which looks very helpful but don't know how to add this to edge composition.
http://demosthenes.info/blog/909/Create-An-Automatic-HTML5-Video-Playlist
Please help or put me in the right direction to create a playlist would be hugely... AMAZINGLY.. helpful.
Thanks,
Jason

Hi Joe,
Thank you so much for your help on this one. It is hugely appreciated!!
I have been working frantically to implement your solution to get this working. I used the 'change src' method.
I have added all my code below in case anyone wants the solution in the future.
Could you please help below as I am now totally stuck with the <track> and 'event listener issues' !!
Issue #1:
I am having major problems with loading the 'closed captions' track element.
Everything I click for the video to change source / to the next video, the closed caption track adds to the video and doesn't 'unload' the previous one. You then end up with multiple different subtitle tracks on the video screen
- The closed captions / subtitles are not showing up in Google Chrome either?
Issue #2:
I can't get the event listener in edge animate to work for 'playing' and 'ended'. Can you please help and point me in the correct direction??
Screenshot (showing what happens after the 3rd video is loaded)
This is the Code I am currently using in the "Creation Complete" of this Symbol.
SET UP OF VIDEO PLAYER AND FIRST VIDEO
var vid = sym.$("video_Chapter5");
vid.html('<video id="ch5video" width="100%" height="auto" margin= "0 auto"  \
position ="relative"  poster="video/video1_poster.jpg"  controls="controls" </video> \
<source id ="videomp4src" src="video/Video_mp4_1.mp4" type="video/mp4" </source> \
<source id ="videoogvsrc" src="video/Video_ogv_1.ogg" type="video/ogv" </source> \
<source id ="videowebmsrc" src="video/Video_webm_1.ogg" type="video/webm" </source> \
<track id ="trackvtt" kind="subtitles" src="video/Video_1_Script.vtt" srclang="en" label="English" hidden </track>');
VARIABLE IDS
$(document).ready(function() {
  var videoID = 'ch5video';
  var sourceID1 = 'videomp4src';
  var sourceID2 = 'videoogvsrc';
  var sourceID3 = 'videowebmsrc';
  var trackID = 'trackvtt';
  var vid1mp4 = 'video/Video_mp4_1.mp4';
  var vid2mp4 = 'video/Video_mp4_2.mp4';
  var vid3mp4 = 'video/Video_mp4_3.mp4';
  var vid4mp4 = 'video/Video_mp4_4.mp4';
  var vid1ogv = 'video/Video_ogv_1.ogv';
  var vid2ogv = 'video/Video_ogv_2.ogv';
  var vid3ogv = 'video/Video_ogv_3.ogv';
  var vid4ogv = 'video/Video_ogv_4.ogv';
  var vid1webm = 'video/Video_webm_1.webm';
  var vid2webm = 'video/Video_webm_2.webm';
  var vid3webm = 'video/Video_webm_3.webm';
  var vid4webm = 'video/Video_webm_4.webm';
  var script1vtt = 'video/Video_1_Script.vtt';
  var script2vtt = 'video/Video_2_Script.vtt'; 
  var script3srt = 'video/Video_3_Script.vtt'; 
  var script4vtt = 'video/Video_4_Script.vtt';   
  var newposter1 = 'video/video1_poster.jpg';
  var newposter2 = 'video/video2_poster.jpg';
  var newposter3 = 'video/video3_poster.jpg';
  var newposter4 = 'video/video4_poster.jpg';
VIDEO PLAYLIST THUMBNAIL BUTTONS - TO CHANGE VIDEO IN PLAYER
  sym.$('btn1').click(function(event) {
  sym.$('#'+videoID).get(0).pause();
  sym.$('#'+sourceID1).attr('src', vid1mp4);
  sym.$('#'+sourceID2).attr('src', vid1ogv);
  sym.$('#'+sourceID3).attr('src', vid1webm);
  sym.$('#'+trackID).attr('src', script1vtt);
  sym.$('#'+videoID).get(0).load();
  sym.$('#'+videoID).attr('poster', newposter1);
  sym.$('#'+videoID).get(0).play();  
  sym.$('btn2').click(function(event) {
  sym.$('#'+videoID).get(0).pause();
  sym.$('#'+sourceID1).attr('src', vid2mp4);
  sym.$('#'+sourceID2).attr('src', vid2ogv);
  sym.$('#'+sourceID3).attr('src', vid2webm);
  sym.$('#'+trackID).attr('src', script2vtt);
  sym.$('#'+videoID).get(0).load();
  sym.$('#'+trackID).load();
  sym.$('#'+videoID).attr('poster', newposter2);
  sym.$('#'+videoID).get(0).play();  
  sym.$('btn3').click(function(event) {
  sym.$('#'+videoID).get(0).pause();
  sym.$('#'+sourceID1).attr('src', vid3mp4); 
  sym.$('#'+sourceID2).attr('src', vid3ogv); 
  sym.$('#'+sourceID3).attr('src', vid3webm);
  sym.$('#'+trackID).attr('src', script3srt);
  sym.$('#'+videoID).get(0).load();
  sym.$('#'+videoID).attr('poster', newposter3);
  sym.$('#'+videoID).get(0).play();
  sym.$('btn4').click(function(event) {
  sym.$('#'+videoID).get(0).pause();
  sym.$('#'+sourceID1).attr('src', vid4mp4);
  sym.$('#'+sourceID2).attr('src', vid4ogv);
  sym.$('#'+sourceID3).attr('src', vid4webm);
  sym.$('#'+trackID).attr('src', script4vtt);  
  sym.$('#'+videoID).get(0).load();
  sym.$('#'+videoID).attr('poster', newposter4);
  sym.$('#'+videoID).get(0).play(); 
EVENT LISTENER FOR PLAYING - TO CREAT BACKGROUND /LIGHT BOX SCREEN
sym.$('#'+videoID).get(0).addEventListener('playing', function () {
sym.getSymbol("backscreen_Ch5").$("backscreen").show();
sym.getSymbol("backscreen_Ch5").play("play");
EVENT LISTENER FOR ENDED - TO PLAY NEXT VIDEO IN SERIES
sym.$('#'+videoID).get(0).addEventListener('ended', function () {
//code to play next video

Similar Messages

  • Have converted videos to MP4 - Can't get them to iPod - Please help!

    I know there are threads on this subject already - why is it soooo **** hard to get a personal (non iTunes video) onto a new iPod?
    I have converted my videos to MP4 - I have them in the Videos main folder - when I update....nothing happens. Why??
    Can someone please help me with this... Why would Apple make this so hard?
    Thx

    So can you see the thumbnails in the video folder? If so, try dragging the thumbnail onto the iPod icon and see if it works that way.

  • I am trying to sync my mac to a roland vs2480 and can't get it to work. Anyone have experience with this?

    I am trying to sync my mac to my Roland vs2480 and need to know how to make it work. I have a video I am trying to score and it has a smpte time code. How do you get that time code to the smpte "in" on the vs2480? I tried using an audio out signal from the video and sent it to the smpte in jack via rca cables but, it doesn't seem to recognize any signal. any insignt would be greatly appreciated.

    Video formats supported: H.264 video up to 1080p, 60 frames per second, High Profile level 4.2 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format
    from
    http://www.apple.com/ipad-air/specs/
    it don't matter if your ipad is not the air if what you attempt to sync with it can't be played on the ipad because it don't support the format it will inform you

  • Trying to measure frequency with the cFP-CTR-502. Can't get tutorial to work!

    Hello,
    I am trying to measure the frequency of a
    signal that I'm counting using the cFP-CTR-502. I can successfully
    count pulses but I what I really need to know is the RATE of counts
    (counts/s or the frequency). I have found some Labview programs that
    supposedly do this that I've downloaded from ni.com (link below). The
    concept makes sense of using a gate and output but the programming is
    crazy - at least the program in the link below is. 
    1. Is there an easier way to measure the frequency of counts?
    2. Why will the program from the link below ( frequency_measurement__ctr_.vi
    ) not work on my system? I get an error everytime I run it. Could I be
    missing some VI's necessary for it to run? Or is it from another
    LabView version that is not compatible?
          The
    entire error is:   -32810 occured at FieldPoint initialization failed.
    Possible causes, 1. Missing or corrupt configuration file; 2. Failed to
    create call backs. : FP Open.vi
          Link for program: http://sine.ni.com/devzone/cda/epd/p/id/4682
    Thanks in advance for all your help and time!
    Sam T

    Sam,
    Have you tried the example titled Frequency Measurement.vi that ships with LV?

  • HT4108 I have a projector and I want to show output video all the time,but I can only get it to work on safari

    I have a projector and I was looking for an app that would allow output video all the time

    The one you are looking at I believe is an older model and does not have very good reviews for working with an AppleTV2 / iPad 2 setup.
    Here is the one that has worked for our district:
    http://www.amazon.com/ViewHD-Component-Converter-Support-Surround/dp/B004F9XVBC/ ref=pd_cp_e_2
    I can't say if the one you are referring two works or not, however I can say that based on the reviews, it looks like you may run into problems with the $45 version.

  • In trying to put a photo icon in my dock, I lost all my photo albums and can't get them back.  Please help.

    I tried to put a photo icon on my desktip dock.  In doing so, I have lost all my photos file, every album, every photo.  Can anyone help me retrieve them in their album form?

    As I said for iTunes purchases:
    See:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    For other music you have to get them from where you originally obtained them.

  • Trying to connect playbook to verizon mobile broadband usb modem--can't get it to work

    Does anyone have any suggestions for gettting the mobile broadband usb modem to work with my playbook?  it took me a while to find a connector to connect the mini usb to the type A usb, but now that i've got it, i couldn't get it to work at all.   Has anyone gotten something like this to work? 

    This is the instructions for tethering from a BlackBerry handheld device.
    Article ID: KB26141 How to setup Bluetooth Internet Tethering on the BlackBerry PlayBook tablet
    If you want to tether to another device, I don't know how.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I updated my iPhone 3GS to ios5, all apps and photos are restored but lost all contacts? I've restored it and it doesn't work, I've changed the iCloud settings to off on contacts then back on, I've tried loads but I can't get them back. Please help!

    It's weird as I did back it all up and whatever I try it doesn't work! I spoke to apple and they wanted to charge me!!!!

    Your contacts are available with your iCloud online address book - when you log in with your iCloud account via webmail access using a browser on your computer, your contacts are available there?
    Your contacts are not available with an address book app on your computer?

  • I'm trying to have existing Exchange accounts setup on my new iMac and can't get it to work.

    I have existing Exchange accounts setup on my iPhone and iPad to access my work email.  I'm trying to do the same on my new iMac and can't get it to work.  I have it setup the same as my iPad and it asks me for my password over and over...any suggestions?
    <Re-Titled By Host>

    Hi mwatts18,
    As a preliminary troubleshooting step, you should reference the information in the following article:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/TS3276
    I would especially suggest that you delete the account and re-add it, making sure that you are entering the correct password when you add the account. Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • I am trying to create a video of my desktop using Quicktime (10.0). I have no sound. I have checked my system preferences and everything looks good there. Why am I lacking sound on my video?

    I am trying to create a video of my desktop using Quicktime (10.0). I have no sound. I have checked my system preferences and everything looks good there. Why am I lacking sound on my video?

    You might also post this question in the Quicktime forum https://discussions.apple.com/community/mac_os/quicktime

  • How can i create a video playlist on my iPad?

    how can i create a video playlist on my iPad?

    Apparently you can change the videos to TV shows in itunes and sync them back to your ipad, this way you can play them continuosly. check out this for details
    http://blog.vinhkhoa.com/article/how-to-play-videos-continuously-on-ipad
    Ive not tested but the comments sound like it works

  • I have Mac pro and firefox 3.0.19.I am trying to download a video from youtube.? I can see the video. I want to download it and save in my computer to see it again. I have download helper. While the 3 red,blue,and yellow sphere are turning, It gives me t

    I have mac pro and firefox 3.0.19
    I am trying to download a video from youtube.?
    I can see the video. I want to download it and save in my computer to see it again.
    I have download helper. While the 3 red,blue,and yellow sphere are turning, It gives me the choice of place to save,and when I click and choose desktop , for example, this message comes ."Conversion requires an external application that appears to be missing on your system. Configure conversion ?
    When I click on okay, another page comes, which says" converter and a box next to it . in the box is written FFMpeg. but I can change it to MEncoder. In another box, says configure conversion rules. When I click on it, nothing happen.Thanks for your help.
    == This happened ==
    Every time Firefox opened
    == I want to download a video from youtube

    No, this reply is not helpful. It simply generates this little gem:
    "This service requires the conversion feature to be enabled.
    Configure conversion ?"
    And the same clicking on buttons that makes nothing happen and going around in circles with the escape key.

  • Iphone4 would not restore Error -50. I have tried to restore and it restored it to the point that it created after 5.0 was installed. How can I get it an older restore point from my backups and restore it on another computer? The phone has been wiped out.

    Iphone would not restore---- Error -50. I have tried to restore, and it restored it to the new point that it created after 5.0 was installed. How can I get it an older restore point from my backups and restore it on another computer? The phone has been wiped out. I can see earlier backups in my C:\Documents and Settings\user\Application Data\Apple Computer\MobileSync\Backup folder. There are four subfolders in this address. I need my contacts, photos, and messages back. I know this is a common error but I can not figure it out. I have ran the other troublshoot items in the error steps for 13 and 14 like apple says. Is there a way to call apple and get a step by step of how to restore from another restore point? Does anybody have a solution????

    It tells you to go to Error 13 and 14 if you receive error (-50).
    Here is what I have tried...
    Error 13 and 14: These errors are typically resolved by performing one or more of the steps listed below:
    Perform USB isolation troubleshooting, including trying a different USB port directly on the computer. See the advanced steps below for USB troubleshooting. I have moved it around to different ports.
    Put a USB 2.0 hub between the device and the computer. Didn't change anything.
    Try a different USB 30-pin dock-connector cable.
    Eliminate third-party security software conflicts. Removed all virus protection and firewall.
    There may be third-party software installed that modifies your default packet size in Windows by inserting one or more TcpWindowSize entries into your registry. Your default packet size being set incorrectly can cause this error. Contact the manufacturer of the software that installed the packet-size modification for assistance. Or, follow this article by Microsoft: How to reset Internet Protocol (TCP/IP) to reset the packet size back to the default for Windows.Used the Microsoft fix it.
    Connect your computer directly to your Internet source, bypassing any routers, hubs, or switches. You may need to restart your computer and modem to get online. Doesn't matter.
    Try to restore from another known-good computer and network. I do not know how to do this or how to find the correct/full/complete restore point. There should be more information for this.

  • After years of owning all things Mac, I am finally trying to use iChat, and can't get it to work. I see my buddy, but all I can do is send a message--the video and audio chat icons are gray, as is inviting to a video chat under Buddies.

    After years of owning all things Mac, I am finally trying to use iChat, and can't get it to work. I am using gmail, and I see my buddy (no camera icon next to her name), but all I can do is send a message--the video and audio chat icons are gray, as is inviting to a video chat under Buddies. My buddy has the same problem as I.  We are able to do video chat through gmail, but I had hoped to use iChat.  I am using OS 10.6.8, iChat v. 5.0.3.  What am I missing?

    HI,
    iChat will Video chat to another iChat in a Jabber Buddy List (Google run a Jabber server for GoogleTalk)
    However it will not Video to the Web Page login to iGoogle or the Web Mail Page login.  (where people can Google Chat as it were in a  Web Browser).
    Nor does it video to the Google Talk Stand alone app for PCs or any other Jabber apps on any platform.
    iChat uses a connection Process called SIP (Session Initiation Protocol) which is also used by other VoIP devices.
    Jabber/XMPP invited the Jingle Protocol for Jabber Applications.
    Google have included this in their Standalone app and the Plug-in for Web Browsers on both PCs and Mac (you can get this as a Standalone Plug-in or as part of Chrome)
    More on this here  This article has been changed several time in the recent months.  It now claims a greater involvement by Google in writing the Jingle Library (Although now Google's version does not work with the others)
    This tends to mean that using the web Login to Google to Chat also cannot video chat to other Jabber apps that are using Jingle.
    If your Buddy is using iChat then check the Video Menu has two items to Enable Camera/Video chat and Microphone/Audio chats are ticked.
    In the View Menu the Show Status Items should be ticked (Selecting them toggles the tick and the function On or Off)
    It could be Internet speed but at this stage I would doubt this at this stage.
    10:27 PM      Saturday; January 21, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How do I import a camera video from iphoto to imovie? I went to file, import, camera archives and the video I want I am not able to select. I even tried dragging it from my desktop, but it will not allow me to do so. Please help?

    How do I import a camera video from iphoto to imovie? I went to file, import, camera archives and the video I want I am not able to select. I even tried dragging it from my desktop, but it will not allow me to do so. Please help?

    Use File/Import/Movie and navigate to the file.

Maybe you are looking for

  • Is there any way to open a map to the location specified in a calendar event?

    Besides opening the event, copying the location, and pasting it into google\bing\etc mapping tools I do not see this rather common functionality available in Lightning. Ideally, right clicking on the event in the calendar (without opening the event)

  • How do I add a USB interface back to my network preferences

    Help, I mistakenly deleted the usb interface from the list of available interfaces from my network preferences. How do I add it back?

  • Partner, group editing error

    Welcome to everyone! I am the first BlackBerry user. All well and good for all. Fortnight flay the classic model. My problem is the following. Partner or group of Irish editing error "The partner can name up to 9 characters in length." Have you tried

  • ATV2 sound issues

    Have ATV2 connected to A/V receiver via optical audio cable. When playing movie trailers I get sound from both TV and A/V speakers. When playing a movie I only get sound from A/V speakers. Doesn't make sense.

  • Hotsync Palm w/ iPhone

    Windows XP/Treo 650.  Trying to sync calendar and contacts with iPhone.  Changed the conduits to Outlook.  Hand held device does not work thus can't sync with desktop.  Need to sync desktop Palm to Outlook.  Then iPhone will sync with Outlook.  I thi