How to get the streamID


#1

How I will get the steam id based on the broadcaster address in javascript.Please help me


#2

Hi @rohitmishra,

You have to get the job created by the broadcaster first. The streamID is in the job struct.

Eric


#3

Hi, @ericxtang Suppose I have broadcast my job. the and my web-based client side how I will get stream id (how to access stream job smart contract information )


#4

@rohitmishra you can use the livepeerjs sdk. If you have broadcasted a job, you should know the broadcaster Eth address. From that, you can get a list of jobs created by that broadcaster, and the streamID should be in the job struct.


#5

Hi @ericxtang i have to go with livepeerjs sdk. But it always gives the error with the current version of node ,if you have any working example of this please share with us.


#6

There are some examples from the recent ETHDenver hackathon here: https://github.com/livepeer/ethdenver

I think the URLs in the examples may need to be updated from “-testnet” to “-rinkeby” since we’re now running on the Rinkeby testnet.