Skip to content

URLStream is not playing at all #6

@denizsincar29

Description

@denizsincar29

Hello. What happened to sound_lib? I can't get url stream to work, but file stream is ok.

import time
import pafy
from sound_lib import output, stream

o=output.Output()
vid=pafy.new("https://www.youtube.com/watch?v=5jIWUGxrVnU")
#audiostream=vid.getbestaudio("m4a").url
audiostream="http://us2.internet-radio.com:8443/stream"
st=stream.URLStream(url=audiostream)
st.play_blocking()
#while st.is_playing:
    #time.sleep(0.1)

tried both youtube stream and this sample radio, both doesn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions