I want to do an online radio with Python
up vote
-1
down vote
favorite
I want to make an online radio streaming available in my web page which is made with Django, (I already have video, I know that this is not a radio).
I would like to stream radio from the page and then use the Facebook APIs and twitch to transmit at the same time.
what Python libraries should I use to do the streaming?
python django python-3.x streaming
add a comment |
up vote
-1
down vote
favorite
I want to make an online radio streaming available in my web page which is made with Django, (I already have video, I know that this is not a radio).
I would like to stream radio from the page and then use the Facebook APIs and twitch to transmit at the same time.
what Python libraries should I use to do the streaming?
python django python-3.x streaming
Did my answer work for you @ulysss316?
– Jack Herer
Nov 11 at 18:26
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I want to make an online radio streaming available in my web page which is made with Django, (I already have video, I know that this is not a radio).
I would like to stream radio from the page and then use the Facebook APIs and twitch to transmit at the same time.
what Python libraries should I use to do the streaming?
python django python-3.x streaming
I want to make an online radio streaming available in my web page which is made with Django, (I already have video, I know that this is not a radio).
I would like to stream radio from the page and then use the Facebook APIs and twitch to transmit at the same time.
what Python libraries should I use to do the streaming?
python django python-3.x streaming
python django python-3.x streaming
edited Nov 11 at 13:18
Jack Herer
319112
319112
asked Nov 11 at 8:30
ulysses316
1
1
Did my answer work for you @ulysss316?
– Jack Herer
Nov 11 at 18:26
add a comment |
Did my answer work for you @ulysss316?
– Jack Herer
Nov 11 at 18:26
Did my answer work for you @ulysss316?
– Jack Herer
Nov 11 at 18:26
Did my answer work for you @ulysss316?
– Jack Herer
Nov 11 at 18:26
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Using requests;
def read_in_chunks(file_object, blocksize=1024, chunks=-1):
"""Lazy function (generator) to read a file piece by piece.
Default chunk size: 1k."""
while chunks:
data = file_object.read(blocksize)
if not data:
break
yield data
chunks -= 1
requests.post('http://some.url/chunked', data=read_in_chunks(f))
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Using requests;
def read_in_chunks(file_object, blocksize=1024, chunks=-1):
"""Lazy function (generator) to read a file piece by piece.
Default chunk size: 1k."""
while chunks:
data = file_object.read(blocksize)
if not data:
break
yield data
chunks -= 1
requests.post('http://some.url/chunked', data=read_in_chunks(f))
add a comment |
up vote
0
down vote
Using requests;
def read_in_chunks(file_object, blocksize=1024, chunks=-1):
"""Lazy function (generator) to read a file piece by piece.
Default chunk size: 1k."""
while chunks:
data = file_object.read(blocksize)
if not data:
break
yield data
chunks -= 1
requests.post('http://some.url/chunked', data=read_in_chunks(f))
add a comment |
up vote
0
down vote
up vote
0
down vote
Using requests;
def read_in_chunks(file_object, blocksize=1024, chunks=-1):
"""Lazy function (generator) to read a file piece by piece.
Default chunk size: 1k."""
while chunks:
data = file_object.read(blocksize)
if not data:
break
yield data
chunks -= 1
requests.post('http://some.url/chunked', data=read_in_chunks(f))
Using requests;
def read_in_chunks(file_object, blocksize=1024, chunks=-1):
"""Lazy function (generator) to read a file piece by piece.
Default chunk size: 1k."""
while chunks:
data = file_object.read(blocksize)
if not data:
break
yield data
chunks -= 1
requests.post('http://some.url/chunked', data=read_in_chunks(f))
answered Nov 11 at 9:33
Jack Herer
319112
319112
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53247034%2fi-want-to-do-an-online-radio-with-python%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did my answer work for you @ulysss316?
– Jack Herer
Nov 11 at 18:26