2019-08-17 17:55:11 (edited by cat 2019-08-17 19:41:30)

hello. This is edited by me, cat. I want play radio file or television file, so pls or m3u8, on bgt. I want add play files on the live system, if you play BC you know how to made that

2019-08-17 18:58:42

Can you reformulate your question?
Offcourse you can't connect to your tv with bgt, neither will you be able to with any programming language.
What is a pls file?

2019-08-17 19:42:02 (edited by cat 2019-08-17 19:42:21)

look at #1 I re write again

2019-08-17 20:01:04

I still don't know what are you are talking about, mainly because I am not familiar with such things, but I am sorry to disappoint you by saying no.
What you can do is to find a showcast or icecast server for the radio station and use bass to play the audio data from the remote url.

2019-08-18 02:30:38

I mean, if you just want to play a file from your computer that isn't encoded or encrypted in anyway, sure! But otherwise, if you mean actually connect to a radio station or tv channel, ain't no way in the 9 hells!

----------
“Yes, sir. I am attempting to fill a silent moment with non-relevant conversation.”
“You don’t tell me how to behave; you’re not my mother!”
“Could you please continue the petty bickering? I find it most intriguing.” – Data (Star Trek: The Next Generation)

2019-08-18 05:24:29

I believe they used a library for that.

2019-08-18 07:23:03

hi,
yes it is possible, but don't know if it is possible with bgt.
m3u files are text files which contain the links to radio stations or media files stored on internet
you read them, get their links, then start downloading the track while playing the audio data.
same is true with online radios which are available on the internet, and they can be accessed with the http protocol.

2019-08-18 11:23:07 (edited by cat 2019-08-18 11:24:14)

constant battle is typed by bgt, This game have radio stream on some map

2019-08-18 17:33:35

@7, IF THIS IS TRUE, THEN IT WOULDN'T BE VARY HARD METHINKS? You'd just use the http function thingy ma bob too download a file and play it? Methinks?

----------
“Yes, sir. I am attempting to fill a silent moment with non-relevant conversation.”
“You don’t tell me how to behave; you’re not my mother!”
“Could you please continue the petty bickering? I find it most intriguing.” – Data (Star Trek: The Next Generation)

2019-08-19 17:45:45

Here ya go.

https://cp.sync.com/dl/7444bef10/8g85xw … u-h3xttfax

I've been going by Bryn, which is now reflected in my profile. Please do your best to respect this :) Mess ups are totally OK though, I don't mind and totally understand!
Follow on twitter! @ItsBrynify
Thanks, enjoy, thumbs up, share, like, hate, exist, do what ya do,
my website: brynify.me

2019-08-19 18:30:37

I cant believe! Just thanks!

2019-08-19 18:35:14 (edited by cat 2019-08-19 18:35:43)

I'm sory for tiring you but you can make this for game maps?

2019-08-19 18:38:35

Questionmark?

I've been going by Bryn, which is now reflected in my profile. Please do your best to respect this :) Mess ups are totally OK though, I don't mind and totally understand!
Follow on twitter! @ItsBrynify
Thanks, enjoy, thumbs up, share, like, hate, exist, do what ya do,
my website: brynify.me

2019-08-19 18:43:57

why question mark?

2019-08-19 18:46:45

I'm not understanding what you are asking.

I've been going by Bryn, which is now reflected in my profile. Please do your best to respect this :) Mess ups are totally OK though, I don't mind and totally understand!
Follow on twitter! @ItsBrynify
Thanks, enjoy, thumbs up, share, like, hate, exist, do what ya do,
my website: brynify.me

2019-08-19 18:51:45

I want play radio on game maps, not on BGT app

2019-08-19 19:28:22

Then make it happen. Just poured his code and combine it with your map code if you have it. He’s not going to do all the work for you.

2019-08-19 19:50:18 (edited by cat 2019-08-19 19:52:22)

I don't listening you bro. You cant down me. Just hide your ideas your self

2019-08-19 22:34:48 (edited by amerikranian 2019-08-19 22:35:44)

First, I am not your bro. Second, I am not sure what you mean. What I said holds true, Mason will not do all of the work for you.  If you choose not to listen to me, somebody else will likely tell you so.  This is not a room where people do what you want for you in terms of coding, this is the room where you come for help, people give you advice, and you use that advice to accomplish your goal.

2019-08-19 22:47:14

but some times, maybe some developers wants give you bgt files, so I don't join your Ideas.

2019-08-22 21:32:11 (edited by Simter 2019-08-22 21:35:48)

Hi.

This is really cool. Is there a general reference for bass.dll? I think it's also kapable of playing files on normal file system, and also pan those, think that was what cat mend.

btw, nice radio station.

Lamas with hats, but with sponge bob as carl Stay tuned.

https://www.youtube.com/channel/UCvAUQt … subscriber

2019-08-23 01:09:10 (edited by Yukie 2019-08-23 13:34:17)

yeah. cool radio player. i trying to add play/pause but, i can't figureout how to do it. i read the bass.dll documention and added the handel for pause to the streem.bgt.
and, i add the code to the example.bgt for play/pause. but, its not working.
here is the handel to pause.

//trying to add a pause.
void pause_file(long handle)
{
bass.call("void BASS_ChannelPause(long,long);",handle,0);
}

and, i do something like this in the example.bgt.

bool file_playing;

i added it to the start of the file after the include.
and, i do something in to the play/loading of file.

long handle=load_stream_url("http://"+link);
play_file(handle);
file_playing=true;

and to the key pressing.

if (key_pressed(KEY_SPACE) and file_playing==true)
{
pause_file(handle);
file_playing=false;
}
else
{
play_file(handle);
file_playing=true;
}

but, its not working. there is something rong with the code? please help?