ULX

Author Topic: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)  (Read 88750 times)

0 Members and 4 Guests are viewing this topic.

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #15 on: August 08, 2011, 12:21:18 AM »
I was wondering if you could make a playlist feature.

Also if you can make it so more videos can be added to a play list that is playing.

It would also be interesting if you added a command like PlayX's '!ytlast' so when a guest posts a YouTube link into chat I can just type the command and it will play the last link that was posted in chat.

Please and Thank you.

Edit: You Finally hit 2 pages.
« Last Edit: August 25, 2011, 10:20:05 AM by HeLLFox_15 »
I cry every time I see that I am not a respected member of this community.

Offline RynO-SauruS

  • Jr. Member
  • **
  • Posts: 77
  • Karma: 17
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #16 on: August 08, 2011, 10:43:40 AM »
I was wondering if you could make a playlist feature.

Also if you can make it so more videos can be added to a play list that is playing.

It would also be interesting if you added a command like PlayX's '!ytlast' so when a guest post a YouTube link into chat I can just type the command and it will play the last link that was posted in chat.

Please and Thank you.

Edit: You Finally hit 2 pages.

By "playlist feature", do you mean a queue? A list of videos that will automatically play one after another?
The problem with this would be that when one video is "over", and a client has had to buffer the video at some point, then their current video will likely still be playing.
So playing the next video in the queue, would cut off some of what was playing first. I don't think there's any way to tell when the client's video has finished playing, other than setting a timer of the length of the video right at the start. (this is how it auto-hides the player controls.. but when the player controls are hidden, it doesn't stop the video, to avoid cutting it off)

The "!ytlast" command.. I'll look into that. I would obviously need to find a way to get the last YouTube link that was posted.


YouTube music player by RynO-SauruS

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #17 on: August 08, 2011, 02:31:39 PM »
By "playlist feature", do you mean a queue? A list of videos that will automatically play one after another?
The problem with this would be that when one video is "over", and a client has had to buffer the video at some point, then their current video will likely still be playing.
So playing the next video in the queue, would cut off some of what was playing first. I don't think there's any way to tell when the client's video has finished playing, other than setting a timer of the length of the video right at the start. (this is how it auto-hides the player controls.. but when the player controls are hidden, it doesn't stop the video, to avoid cutting it off)

The "!ytlast" command.. I'll look into that. I would obviously need to find a way to get the last YouTube link that was posted.

I would say make it wait at max 30 seconds before playing the next video, because I don't see people ever having delays that big unless they are crashing. I also suggest getting the next video to be pre-loaded in the background, that would help to avoid buffering delay.
I cry every time I see that I am not a respected member of this community.

Offline RynO-SauruS

  • Jr. Member
  • **
  • Posts: 77
  • Karma: 17
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #18 on: August 08, 2011, 02:35:16 PM »
I would say make it wait at max 30 seconds before playing the next video, because I don't see people ever having delays that big unless they are crashing. I also suggest getting the next video to be pre-loaded in the background, that would help to avoid buffering delay.

Good idea.. this playlist idea is going to take a lot of work if I decide to do it :D


YouTube music player by RynO-SauruS

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #19 on: August 08, 2011, 04:12:47 PM »
Easiest way to get the last link is to hook every chat message (lowest priority with ULib) then parse the message for a valid YouTube link. If none, then ignore it. If there is one, then store in in a variable. Piece of cake! (assuming you can figure out regex or other string searching methods supported by gmod Lau. That's also assuming I am correctly understanding how the chat hook works :P  )
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Willdy

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 1
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #20 on: August 21, 2011, 11:02:47 AM »
I support the playlist, make it shuffle and pick a random song to play :O

Offline Kazter

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #21 on: December 21, 2011, 06:30:47 PM »
How do i install dis?

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #22 on: December 21, 2011, 06:47:52 PM »
The download link appears to be broken.

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #23 on: December 22, 2011, 10:06:22 PM »
How do i install dis?

The download link appears to be broken.

The download link works fine for me, and to install this, just drag and drop it into, your add-ons folder.
I cry every time I see that I am not a respected member of this community.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #24 on: December 23, 2011, 09:41:50 AM »

That is what I get when I try to download it.

EDIT:  Looks like attachments are broken for Firefox?
« Last Edit: December 23, 2011, 12:03:29 PM by Aaron113 »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #25 on: December 23, 2011, 01:08:24 PM »
Works fine for me and Stickly Man who is running Firefox. Based off how I assume SMF implements attachments, I think you might have security settings set too high in FF or something in your browser is broken.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #26 on: December 23, 2011, 02:32:09 PM »
Works fine for me running firefox 6 something.
Looks like your mime encoding recognition is off keel. Try saving the index.php as "ULX_YouTube_music_player1.3.rar".
I'm betting you'd still get the file.
« Last Edit: December 23, 2011, 02:35:16 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #27 on: December 23, 2011, 02:47:56 PM »
Hmmm...  Looks like you're right.


Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #28 on: December 23, 2011, 04:57:45 PM »
So, on to next question... it still working?
Ryno's at least checked the forums lately. If it's not working due to actual Gmod updates (or ULib), he's likely paying attention.

Offside-..Aaron.. might I recommend 7z instead of Winrar?
It's (bonus!) an open source application. Will pack to zip for compatibility, and unpack rar files using a (not open source of course) special usage license.
Many features I've never even researched. http://www.7-zip.org/ .. good stuff.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline AviZ

  • Newbie
  • *
  • Posts: 32
  • Karma: 0
Re: Re: [SVN ULX/ULib only] YouTube music player (UPDATED: June 26th, 2012)
« Reply #29 on: January 02, 2012, 04:18:30 PM »
i just installed this, no player box when choosing the song to play and no sound either.

is there a fix for this?