Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2009
    Posts
    81
    Thanks
    0
    Thanked 8 Times in 8 Posts

    mvplayer a url-list player widget Part 3/3

    (3 of 3)
    Complete source for mvplayer mvplayer.zip (includes argreader.js)

    Some final notes:

    0) You can add rounded corners in html5 browsers by adding these css rules to the #xp_d1 element in the css files: -moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px;
    1) Clicking 'Play Lists' shows the play lists links. Clicking one of the links will start the associated play list, each url shown in turn.
    2) Clicking 'Singles' shows all of the individual urls. You can open any of the links in a new tab, but it will be a one-off opening. The page will stay open until you close it.
    3) While a play lists is playing, the ordinal of the current url is displayed at the bottom of the widget (as in 1/5, 2/5 etc). Also, the time remaining until the page is closed is displayed in the same area.
    4) If you close a tab manually while mvplayer is running, the player will continue and open the next site after the allotted time is up.
    5) You can Skip a url by clicking 'Skip'. his closes the currently displayed tab and re-opens the tab with the next site.
    6) You can stop a list form playing by clicking "Stop".

    Widget Links:
    Play Lists: displays play lists.
    Singles: displays individual links.
    Stop: stops mvplayer.
    Skip: skips the currently playing url.
    MyLists: opens a panel where you can add additional play lists, or get a 'Dump' of the current set of play lists.


    The full file set is:
    1) argreader.js (required. found on this site in the "Post a JavaScript" section)
    2) rsmvallvids.js (holds rsmv.allvids which is required. File can be renamed as long as it matches the 'urls' argument)
    3) mvplayer.js (required.)
    4) mvplayerOrange.css (required. default color)
    5) mvplayerBlue.css (required. argument &color=blue)
    6) mvplayerTeal.css (required. argument &color=teal)
    7) mvplayerTin.css (required. argument &color=tin)


    Lastly, here are a few additional url-lists:
    Code:
    The Guild
    ["Episode 1: Wake-Up Call","http://www.youtube.com/watch?v=grCTXGW3sxQ&feature=PlayList&p=EE93D30C5588A850&index=0",Time(0,3,58)]
    ["Episode 2: Zaboo'd","http://www.youtube.com/watch?v=Qb7GNu3NN-E&feature=PlayList&p=sUoi5Pu-0R0",Time(0,2,48)]
    ["Episode 3: The Macro Problem","http://www.youtube.com/watch?v=SrCoUqWns6g&feature=PlayList&p=sUoi5Pu-0R0",Time(0,4,28)]
    ["Episode 4: Cheesybeards","http://www.youtube.com/watch?v=OplPTPdDSKA&feature=PlayList&p=sUoi5Pu-0R0",Time(0,5,06)]
    ["Episode 5: Rather Be Raiding","http://www.youtube.com/watch?v=pKkVIbA5iyE&feature=PlayList&p=sUoi5Pu-0R0",Time(0,6,50)]
    ["Episode 6: Total Wipe","http://www.youtube.com/watch?v=JtBO4R-ZD_A&feature=PlayList&p=sUoi5Pu-0R0",Time(0,5,34)]
    ["Episode 7: Home Invasion","http://www.youtube.com/watch?v=f3dRlbjgp7o&feature=PlayList&p=sUoi5Pu-0R0",Time(0,4,05)]
    ["Episode 8: Tipping Point","http://www.youtube.com/watch?v=rNWt0J-MYko&feature=PlayList&p=sUoi5Pu-0R0",Time(0,3,29)]
    ["Episode 9: Owning Bladezz","http://www.youtube.com/watch?v=orFgoo28IOU&feature=PlayList&p=sUoi5Pu-0R0",Time(0,4,48)]
    ["Episode 10: Boss Fight","http://www.youtube.com/watch?v=rq05zQjgoUA&feature=PlayList&p=sUoi5Pu-0R0",Time(0,6,19)]
    ["S2 Ep 1: Link the Loot","http://www.youtube.com/watch?v=S8oH0C4dySQ&feature=related",Time(0,5,00)]
    ["S2 Ep 2: Block'd","http://www.youtube.com/watch?v=rjVoLX68Z5w&feature=PlayList&p=PoVju6zcx7A",Time(0,5,08)]
    ["S2 Ep3: Quest Accepted!","http://www.youtube.com/watch?v=1rVSbOlSyCw&feature=PlayList&p=PoVju6zcx7A",Time(0,5,29)]
    ["S2 Ep4: Heroic Encounter","http://www.youtube.com/watch?v=8wRU2J1lrlw&feature=PlayList&p=PoVju6zcx7A",Time(0,6,51)]
    ["S2 Ep5: Sacking Up","http://www.youtube.com/watch?v=UyWbv27viR8&feature=PlayList&p=PoVju6zcx7A",Time(0,6,55)]
    ["S2 Ep6: Blow Out","http://www.youtube.com/watch?v=xxoMVyZK07g&feature=PlayList&p=PoVju6zcx7A",Time(0,6,47)]
    ["S2 Ep7: Panic Attack","http://www.youtube.com/watch?v=YY96ugZrSL8&feature=PlayList&p=PoVju6zcx7A",Time(0,6,33)]
    ["S2 Ep8: Emergency!","http://www.youtube.com/watch?v=sFvTXb7_xFg&feature=PlayList&p=PoVju6zcx7A",Time(0,5,43)]
    ["S2 Ep9: Grouping Up","http://www.youtube.com/watch?v=2OZCNiP1qP4&feature=PlayList&p=PoVju6zcx7A",Time(0,6,50)]
    ["S2 Ep10: Socializing Sucks","http://www.youtube.com/watch?v=Fxb0PrlyvPI&feature=PlayList&p=PoVju6zcx7A",Time(0,8,32)]
    ["S2 Ep11: Collision Course","http://www.youtube.com/watch?v=DcLHc1Tlvho&feature=PlayList&p=PoVju6zcx7A",Time(0,6,22)]
    ["S2 Ep12: Fight!","http://www.youtube.com/watch?v=24OPgmdeI9g&feature=related",Time(0,8,39)]
    ["A Christmas Raid Carol","http://www.youtube.com/watch?v=q21iitT0VL4&feature=related",Time(0,1,51)]
    ["Do You Wanna Date My Avatar","http://www.youtube.com/watch?v=urNyg1ftMIU&feature=related",Time(0,3,48)]
    
    Easy Listening
    ["10 CC - I'm Not In Love","http://www.youtube.com/watch?v=Y2BavhwpIJg",Time(0,4,06)]
    ["David Essex - Rock On","http://www.youtube.com/watch?v=NgcYfKw0_TI",Time(0,3,27)]
    ["Looking las brandy","http://www.youtube.com/watch?v=7-dleViv2nc&feature=related",Time(0,3,03)]
    
    Red Hot Chili Peppers
    ["Aeroplane","http://www.youtube.com/watch?v=vV8IAOojoAA&feature=fvw",Time(0,4,10)]
    ["Californication","http://www.youtube.com/watch?v=YlUKcNNmywk&feature=related",Time(0,5,22)]
    ["Give It Away","http://www.youtube.com/watch?v=Mr_uHJPUlO8&feature=related",Time(0,4,33)]
    ["Under The Bridge","http://www.youtube.com/watch?v=lwlogyj7nFE&feature=related",Time(0,4,27)]
    ["Can't Stop","http://www.youtube.com/watch?v=BfOdWSiyWoc&feature=channel",Time(0,4,38)]
    ["Around The World","http://www.youtube.com/watch?v=a9eNQZbjpJk&feature=related",Time(0,4,02)]
    ["Warped","http://www.youtube.com/watch?v=xmyuJZH3RAc&feature=related",Time(0,4,21)]
    ["RHCP","http://www.youtube.com/watch?v=0kT5w27YxyI&NR=1",Time(0,4,07)]
    ["Dani California","http://www.youtube.com/watch?v=Sb5aq5HcS1A&feature=related",Time(0,4,48)]
    ["Suck My Kiss","http://www.youtube.com/watch?v=C6jElKMMOWM&feature=related",Time(0,3,39)]
    ["Snow","http://www.youtube.com/watch?v=fmXLzY8kbYA&feature=related",Time(0,4,45)]
    ["RHCP- Scar tissue","http://www.youtube.com/watch?v=TGObF2q63Ew&feature=related",Time(0,3,41)]
    ["otherside","http://www.youtube.com/watch?v=LG1e4hHrsSI",Time(0,4,19)]
    
    Jane's Addiction
    ["Stop","http://www.youtube.com/watch?v=ZwI02OHtZTg",Time(0,4,36)]
    ["Been Caught Stealing","http://www.youtube.com/watch?v=jrwjiO1MCVs&feature=channel",Time(0,3,37)]
    ["Jane Says","http://www.youtube.com/watch?v=xh-5FI21s6M",Time(0,4,47)]
    
    Alternative
    ["Porno For Pyros - Pets","http://www.youtube.com/watch?v=HpkmtweNQ-U&feature=related",Time(0,3,38)]
    ["Porno For Pyros - Orgasm","http://www.youtube.com/watch?v=scJuNQtYlZE&feature=related",Time(0,4,37)]
    ["Type O Negative-Christian Woman","http://www.youtube.com/watch?v=xU5tQkwv0dY",Time(0,8,56)]
    ["Unknown","http://www.youtube.com/watch?v=3sMALbhJU6M",Time(0,4,27)]
    ["Type O Negative- Can't Lose You","http://www.youtube.com/watch?v=mN8elcdA5io&feature=related",Time(0,6,07)]
    ["meat puppets backwater","http://www.youtube.com/watch?v=9-HFbNhTTKQ",Time(0,3,39)]
    ["Crash Test Dummies-Mmm Mmm Mmm Mmm","http://www.youtube.com/watch?v=9q91_kcx3no",Time(0,4,01)]
    ["Deadeye Dick - New Age Girl","http://www.youtube.com/watch?v=sEDw9xgSmSc&feature=related",Time(0,3,18)]
    
    60's & 70's
    ["Somebody To Love/White Rabbit Jefferson Airplane","http://www.youtube.com/watch?v=Q1cfTMdjkYM&NR=1&feature=fvwp",Time(0,6,35)]
    ["Cream - White Room","http://www.youtube.com/watch?v=uGZeqwdWoeo&feature=related",Time(0,5,01)]
    ["Simple Man - Lynyrd Skynyrd","http://www.youtube.com/watch?v=BeNRdwAUuy8&feature=related",Time(0,5,16)]
    ["Tuesday's Gone Lynyrd Skynyrd","http://www.youtube.com/watch?v=8sF0bQBOsFM&feature=related",Time(0,7,29)]
    ["Lynyrd Skynyrd - That Smell","http://www.youtube.com/watch?v=p6q9nBusrq8&feature=related",Time(0,5,50)]
    ["Supertramp Breakfast in America","http://www.youtube.com/watch?v=Jh2TJ2DAy_o",Time(0,2,35)]
    ["Roger Hodgson - Give A Little Bit - Supertramp","http://www.youtube.com/watch?v=FLR5rU4GoqY&feature=related",Time(0,2,03)]
    ["Roger Hodgson - Take The Long Way Home","http://www.youtube.com/watch?v=obt4-QnYGoA&feature=related",Time(0,4,26)]
    ["Roger Hodgson - Even in the Quietest Moments","http://www.youtube.com/watch?v=wfPT0ODaM1Q&feature=related",Time(0,4,14)]
    ["Roger Hodgson - Fool's Overture","http://www.youtube.com/watch?v=BuwEhXB5TJc&feature=related",Time(0,10,40)]
    ["Supertramp - Fool's Overture","http://www.youtube.com/watch?v=Iq1JcCenXWE&feature=fvw",Time(0,3,48)]
    ["Supertramp - School","http://www.youtube.com/watch?v=FiKztimr1hQ",Time(0,5,34)]
    
    Fiona Apple
    ["Criminal","http://www.youtube.com/watch?v=FFOzayDpWoI",Time(0,4,23)]
    ["Sleep To Dream","http://www.youtube.com/watch?v=L9Wnh0V4HMM&feature=related",Time(0,4,6)]
    ["Shadowboxer","http://www.youtube.com/watch?v=QnXjISlKLuE&feature=channel",Time(0,5,16)]
    ["Paper Bag","http://www.youtube.com/watch?v=BK30r_SIZ-g&feature=channel",Time(0,3,39)]
    ["Fast As You Can","http://www.youtube.com/watch?v=NbxqtbqyoRk&feature=channel",Time(0,3,55)]
    ["Limp","http://www.youtube.com/watch?v=CfTNpbraBbI&feature=channel",Time(0,3,29)]
    ["Parting Gift","http://www.youtube.com/watch?v=NP869swP2po&feature=channel",Time(0,3,39)]
    ["Not About Love","http://www.youtube.com/watch?v=u09s0uz0tEU&feature=channel",Time(0,4,13)]
    ["Never Is A Promise","http://www.youtube.com/watch?v=c5XptSCCciU&feature=channel",Time(0,4,41)]
    ["O'Sailor","http://www.youtube.com/watch?v=Azx6F2fYPa0&feature=channel",Time(0,4,40)]
    ["Across The Universe","http://www.youtube.com/watch?v=8gLWTtlMwo4",Time(0,4,27)]
    ["Love ridden","http://www.youtube.com/watch?v=FiMHRn-DFgI&feature=related",Time(0,3,16)]
    ["The First Taste","http://www.youtube.com/watch?v=uiuk0z8dzXo&feature=related",Time(0,4,45)]
    ["Red, Red, Red","http://www.youtube.com/watch?v=xj2ivyQSnBs&feature=related",Time(0,3,41)]
    
    Mix #1
    ["Madison Rayne vs. Angelina Love","http://www.youtube.com/watch?v=WwSjaPYMlNk&feature=fvhl",Time(0,2,19)]
    ["WICKED GAME [HD] Chris Isaak","http://www.youtube.com/watch?v=-oaHHrNQVrg",Time(0,4,3)]
    ["Lake of fire","http://www.youtube.com/watch?v=quZ5rE8ujcA&feature=related",Time(0,2,43)]
    ["nirvana smells like teen spirit official","http://www.youtube.com/watch?v=fbsQKd9ELf4&feature=related",Time(0,4,56)]
    ["Nirvana - Lithium","http://www.youtube.com/watch?v=-CVhKYRP6yw",Time(0,4,54)]
    ["Foo Fighters - Darling Nikki","http://www.youtube.com/watch?v=G96rMqK6lFw&feature=related",Time(0,4,1)]
    ["Godsmack - Voodoo","http://www.youtube.com/watch?v=9SSUQxGjZZ4",Time(0,4,16)]
    
    Rammstien
    ["sonne complete","http://www.youtube.com/watch?v=mfHlA3fmJG0",Time(0,4,8)]
    ["Ich Will","http://www.youtube.com/watch?v=R37H38bMVec&feature=related",Time(0,4,5)]
    
    CSN
    ["Teach Your Children","http://www.youtube.com/watch?v=p6pphVs8bF0&feature=related",Time(0,2,26)]
    ["Southern Cross","http://www.youtube.com/watch?v=HlVNod_krsM&feature=related",Time(0,4,40)]
    ["Wasted On The Way","http://www.youtube.com/watch?v=x_kL1RlqwY8&feature=related",Time(0,3,18)]
    
    Madonna
    ["The power of goodbye","http://www.youtube.com/watch?v=GaNjCal26CM&feature=related",Time(0,4,09)]
    ["Time Stood Still","http://www.youtube.com/watch?v=gTIpChgjJ_k&feature=related",Time(0,3,48)]
    ["Celebration","http://www.youtube.com/watch?v=8Sif7M-2IAo",Time(0,3,35)]
    ["Give it 2 Me","http://www.youtube.com/watch?v=MgclGzu7wRc",Time(0,1,54)]
    ["Frozen","http://www.youtube.com/watch?v=aY529HuzXgc",Time(0,4,52)]
    ["Revolver","http://www.youtube.com/watch?v=tNbdhwc3c0Q",Time(0,3,53)]
    ["Like a Virgin","http://www.youtube.com/watch?v=aSWrQ8Z65gc",Time(0,5,06)]
    ["Like A Prayer","http://www.youtube.com/watch?v=dkiy8Yy76xk",Time(0,5,36)]
    provided by rdspoons 2010
    Last edited by rdspoons; 09-28-2010 at 02:43 AM. Reason: add a little style

  • #2
    New Coder
    Join Date
    Jun 2009
    Posts
    81
    Thanks
    0
    Thanked 8 Times in 8 Posts
    For what ever reason, I left out the required boolean useCapture argument for addEventListener in line 95 of mvplayer.js.

    For the player to work in FireFox and Opera, you need to modify line 95 in mvplayer.js so that it reads:
    if(window.addEventListener){window.addEventListener("load",rsmvpa.startinit,false)}


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •