Canuck Audio Mart Hifi and Audio ForumCanuck Audio Mart Hifi and Audio Forum
It is currently Fri May 25, 2018 5:08 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 35 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: CBC music streams
PostPosted: Sat May 12, 2018 11:29 pm 
Offline

Joined: Wed Mar 28, 2012 3:37 pm
Posts: 133
Location: tonawanda, NY, US
Audio_Guy wrote:
Is it OK to say how f'd up the Canadian Government and everything they do is?

If anyone can get a URL from the CBC streaming sites pls let me know and I will retract the line above.

It appears you need flash to listen to Radio Canada. Which leaves out all other software apps for music.
I'd gladly trade you for the clowns we have down here in the USA!!


Top
 Profile  
Reply with quote  
 Post subject: Re: CBC music streams
PostPosted: Sun May 13, 2018 1:05 am 
Offline

Joined: Fri Aug 29, 2014 8:55 am
Posts: 1
Location: Edmonton, AB, CA
canuckken wrote:
Has anyone found a solution for this yet? These work http://www.cbc.ca/radio/includes/stream.html but they are not the music urls for the specific music genres found here... https://www.cbcmusic.ca/

There is suppose to be a way to get music urls from inspecting elements or using software such as URL Snooper but I have never been able to figure it out.


I doubt this is possible with the way the current site is implemented... the "streams" are not a simple channel that you connect to, but are assembled from an interactive conversation between the code running in your browser and the back end, hosted by Akamai. There are restrictions on where it can be played (geolocation) and only a request generated from a browser on cbcmusic.ca is accepted. Each "song" is requested specifically, in segments, and the conversation between the back end and the code running in your browser enables your browser to request each piece of music in turn, and assemble it for seamless local playback. All of this is presumably because of the need for control, as a consequence of the limited rights CBC is granted by the rights holders. Music that might not be subject to the same limitations ends up being treated the same way, simply because it's how the platform works.

The Radio streams are different, because they aren't subject to the same rights-driven limitations.

This is all unfortunate for the person that just wants to listen to the CBC Music streams, in the way that is most convenient, and with the best possible quality, but it is playable anywhere you have a modern web browser, including mobile devices, assuming you're connecting with an IP seen to be within Canada. You can use a modest computer, tablet, or smartphone as a streaming host, and feed the audio (digitally, or analogue) to other gear for playback.


Here's an edited snippet from the conversation...

Code:
Request URL: https://webradios-vh.akamaihd.net/i/wam/a-e/bachconcertosandsinfoniasforoboe/0003bbfc_,64,128,.mp4.csmil/master.m3u8?hdnea=st=1526201055~exp=1526201175~acl=/i/wam/a-e/bachconcertosandsinfoniasforoboe/0003bbfc_*~hmac=d9d6e90326b2247a59b799121cf0aab03e3ee2e77e4152a4506d2cafd079693d
Request Method: GET
Status Code: 200 OK
Remote Address: 207.228.83.24:443
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: *
Access-Control-Allow-Methods: GET, HEAD, OPTIONS
Access-Control-Allow-Origin: https://www.cbcmusic.ca
Access-Control-Expose-Headers: *
Cache-Control: no-store
Connection: keep-alive
Content-Length: 959
Date: Sun, 13 May 2018 08:44:19 GMT
Expires: Sun, 13 May 2018 08:44:19 GMT
Mime-Version: 1.0
Pragma: no-cache
Server: AkamaiGHost
Accept: */*
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
DNT: 1
Host: webradios-vh.akamaihd.net
Origin: https://www.cbcmusic.ca
Referer: https://www.cbcmusic.ca/music-streams


and here’s the request for the first segment of this piece. I’ve seen up to 70 segments in a single piece of music.


Request URL: https://webradios-vh.akamaihd.net/i/wam/a-e/bachconcertosandsinfoniasforoboe/0003bbfc_,64,128,.mp4.csmil/segment1_1_a.ts?null=0&id=AgAXEXq%2fz+RTFOL691rE2obKtsVIaan8sQhEWfr7cHQF85dIikgmU8LWZZycDX0PGdO7zNr2cVYEYQ%3d%3d&hdntl=exp=1526287458~acl=/i/wam/a-e/bachconcertosandsinfoniasforoboe/0003bbfc_*~data=hdntl~hmac=01e08ce5f01d86b339165fa7623a988628a39c6fe80a31bfb64d9f751ff341d8
Request Method: GET
Status Code: 200 OK
Remote Address: 207.228.83.24:443
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: *
Access-Control-Allow-Methods: GET, HEAD, OPTIONS
Access-Control-Allow-Origin: https://www.cbcmusic.ca
Access-Control-Expose-Headers: *
Cache-Control: no-store
Connection: keep-alive
Content-Length: 171840
Content-Type: video/MP2T
Date: Sun, 13 May 2018 08:44:19 GMT
Expires: Sun, 13 May 2018 08:44:19 GMT
Mime-Version: 1.0
Pragma: no-cache
Server: AkamaiGHost
Set-Cookie: _alid_=k/TtlrtuOJ4gckWwDaH3SA==; path=/i/wam/a-e/bachconcertosandsinfoniasforoboe/0003bbfc_,64,128,.mp4.csmil/; domain=webradios-vh.akamaihd.net
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en-CA,en-GB;q=0.9,en;q=0.8,en-US;q=0.7,fr-CA;q=0.6,fr;q=0.5
Connection: keep-alive
DNT: 1
Host: webradios-vh.akamaihd.net
Origin: https://www.cbcmusic.ca
Referer: https://www.cbcmusic.ca/music-streams



- Syncytial.


Top
 Profile  
Reply with quote  
 Post subject: Re: CBC music streams
PostPosted: Mon May 14, 2018 8:29 am 
Offline

Joined: Fri Nov 16, 2012 3:14 pm
Posts: 51
Location: Airdrie, AB, CA
Well that explains it better, thanks Syncytial. My situation is a little different in that I design my own music widgets for my computer. It's not a matter of just using CBC's own site to stream music, it's that I want the playable urls so I can input them in my own designs. I can find plenty of radio stations (some with better quality) that work so it is not a big deal however it would still be nice to have the CBC option.
I contacted CBC about it but it was just a waist of time, I figured it would be but gave it a shot anyway.

Cheers :)


Top
 Profile  
Reply with quote  
 Post subject: Re: CBC music streams
PostPosted: Mon May 14, 2018 9:55 am 
Offline
User avatar

Joined: Sun Nov 11, 2012 2:18 pm
Posts: 483
Location: Sooke, BC, CA
canuckken wrote:
Well that explains it better, thanks Syncytial. My situation is a little different in that I design my own music widgets for my computer. It's not a matter of just using CBC's own site to stream music, it's that I want the playable urls so I can input them in my own designs. I can find plenty of radio stations (some with better quality) that work so it is not a big deal however it would still be nice to have the CBC option.
I contacted CBC about it but it was just a waist of time, I figured it would be but gave it a shot anyway.

Cheers :)


Yes, so can I. There are plenty of no fuss classical music streams out there for free with great content and pretty good quality. The CBC are just another branch of F*heads from our federal government which I believe to be entirely comprised of F*heads.

There are even individual cities that do a much better job than the a-holes from Ottawa. Check out this one from Venice:

http://174.36.206.197:8000/stream

_________________
Use Linux, Be Cool and Be Smart


Top
 Profile  
Reply with quote  
 Post subject: Re: CBC music streams
PostPosted: Mon May 14, 2018 10:07 pm 
Offline

Joined: Fri Nov 16, 2012 3:14 pm
Posts: 51
Location: Airdrie, AB, CA
Audio_Guy wrote:
canuckken wrote:
Well that explains it better, thanks Syncytial. My situation is a little different in that I design my own music widgets for my computer. It's not a matter of just using CBC's own site to stream music, it's that I want the playable urls so I can input them in my own designs. I can find plenty of radio stations (some with better quality) that work so it is not a big deal however it would still be nice to have the CBC option.
I contacted CBC about it but it was just a waist of time, I figured it would be but gave it a shot anyway.

Cheers :)


Yes, so can I. There are plenty of no fuss classical music streams out there for free with great content and pretty good quality. The CBC are just another branch of F*heads from our federal government which I believe to be entirely comprised of F*heads.

There are even individual cities that do a much better job than the a-holes from Ottawa. Check out this one from Venice:

http://174.36.206.197:8000/stream


Nice stream Audio_Guy, thanks for that.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 35 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 8 hours


Who is online

Users browsing this forum: GeoffC and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group