Ulysses Stuff > Ulysses Release Archives

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

<< < (4/19) > >>

LuaTenshi:
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.

RynO-SauruS:

--- Quote from: HeLLFox_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 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.

--- End quote ---

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.

LuaTenshi:

--- Quote from: RynO-SauruS on August 08, 2011, 10:43:40 AM ---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.

--- End quote ---

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.

RynO-SauruS:

--- Quote from: HeLLFox_15 on August 08, 2011, 02:31:39 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.

--- End quote ---

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

Stickly Man!:
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  )

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version