基本的にCokkieのセッション情報が必要。
概要を書く
細かいところは分かる方お願いします。。
<?xml version="1.0" encoding="utf-8" ?> <getplayerstatus status="ok" time="1251561291"> <stream> <id>放送ID(lv***)</id> <watch_count>来場者数</watch_count> <comment_count>コメント数</comment_count> <danjo_comment_mode>0</danjo_comment_mode> <relay_comment>0</relay_comment> <bourbon_url /> <full_video /> <after_video /> <before_video /> <kickout_video /> <ichiba_notice_enable>0</ichiba_notice_enable> <comment_lock>コメント禁止?(0,1)</comment_lock> <background_comment>0</background_comment> <provider_type>配信元種別(community,)</provider_type> <default_community>コミュニティID</default_community> <telop> <enable>0</enable> </telop> <base_time>1251559568</base_time> <open_time>1251559568</open_time> <start_time>1251559568</start_time> <contents_list> <contents id="main" disableAudio="0" disableVideo="0" start_time="1251559569">rtmp:liverepeater:rtmp://nlpoca18.live.nicovideo.jp:1935/publicorigin/lv3488915</contents> </contents_list> </stream> <user> <room_label>コミュニティID</room_label> <room_seetno>座席番号?</room_seetno> <userAge>自分の年齢</userAge> <userSex>性別(0女,1男)</userSex> <userPrefecture>都道府県ID</userPrefecture> <nickname>ユーザ名</nickname> <is_premium>プレミアムか(0,1)</is_premium> <user_id>ユーザID</user_id> <is_join>1</is_join> </user> <rtmp> <url>rtmp://nleza04.live.nicovideo.jp:1935/liveedge</url> <ticket>ユーザID:放送ID:0:1251561291:f5d5640e8e6e30e1</ticket> </rtmp> <ms> <addr>コメントサーバURL</addr> <port>ポート</port> <thread>スレッドID</thread> </ms> </getplayerstatus>
<?xml version="1.0" encoding="utf-8" ?> <getplayerstatus status="fail" time="1264322387"> <error> <code>closed</code> </error> </getplayerstatus>
概要を書く
概要を書く
<heartbeat status="ok"> <watchCount>来場者数</watchCount> <commentCount>総コメント数</commentCount> <ticket>チケット(697078:lv10026020:0:1264074677:f356f69482195ffa)</ticket> </heartbeat>
<heartbeat status="fail"> − <error> <code>NOTFOUND_USERLIVESLOT</code> <description>lost userliveslot</description> <reject>true</reject> </error> </heartbeat>
waybackkey=1264384286.3jbrG2Y6MKlBNwBa6h_6R9ZGNY8
詳しくは大百科の項目を参照。 なお、ここのAPIはCookieを必要としない。
番組情報の取得。 ただし放送開始からしばらくするとnot_permittedで失敗になる模様。
概要を書く
概要を書く
open_time (枠に入れる時間) start_time (開始時間) open_timeは、予約枠での3分前の時間
応答を書く
概要を書く
応答を書く