unable to use HTTP protocol in video club

1,752 views
Skip to first unread message

malakudi

unread,
Apr 16, 2014, 8:00:30 AM4/16/14
to stalker-m...@googlegroups.com
I tried using the HTTP protocol in video club but I am unable to make it work. Client always reports "File missing".
I have setup correctly the storage server, when adding the movie a folder is created in /media/stalker/storage. I then copy the movie file inside that folder, perform the check in admin interface and movie becomes available. But it is not playing back. I have created /var/www/media/myarchive to point to /media/stalker/mac (also tried to point to /media/stalker/storage). 
What am I missing? I haven't find any documentation about this. Also, in order to enable series, the filenames can only be %d.ext ? Or they can be %d.Episode_name.ext?

Aleksey Zhurbitsky

unread,
Apr 16, 2014, 9:49:28 AM4/16/14
to stalker-m...@googlegroups.com
Check storage log (in admin interface Storages > Logs) and check apache error logs on the storage and on the potral server.

malakudi

unread,
Apr 16, 2014, 10:04:38 AM4/16/14
to stalker-m...@googlegroups.com
No error in log files. Follows the response of the stalker server when client asks to play a video club movie defined with HTTP protocol.
GET /stalker_portal/server/load.php?type=vod&action=create_link&cmd=/media/405.mpg&series=1&forced_storage=&disable_ad=0&JsHttpRequest=1-xml
Replies:
{"js":{"id":0,"cmd":"","storage_id":"","load":"","error":"nothing_to_play"},"text":"array(5) {\n  [\"id\"]=>\n  int(0)\n  [\"cmd\"]=>\n  string(0) \"\"\n  [\"storage_id\"]=>\n  string(0) \"\"\n  [\"load\"]=>\n  string(0) \"\"\n  [\"error\"]=>\n  string(15) \"nothing_to_play\"\n}\ngenerated in: 0.055s; query counter: 46; cache hits: 0; cache miss: 0; php errors: 0; sql errors: 0;"}

Can I debug this? What are the sql queries involved?

Aleksey Zhurbitsky

unread,
Apr 17, 2014, 8:09:37 AM4/17/14
to stalker-m...@googlegroups.com
Try to run the portal in debug mode and show output when you click on the movie.

malakudi

unread,
Apr 19, 2014, 8:45:32 AM4/19/14
to stalker-m...@googlegroups.com
DEBUG:: 1401s 377ms  code: 0
DEBUG:: 1401s 379ms  code: 13
DEBUG:: 1401s 383ms  vclub.check_for_play true undefined
DEBUG:: 1401s 385ms  lock 0
DEBUG:: 1401s 387ms  vclub.check_for_series true undefined
DEBUG:: 1401s 390ms  vclub.play true
DEBUG:: 1401s 392ms  cmd /media/335.mpg
DEBUG:: 1401s 394ms  indexOf -1
DEBUG:: 1401s 404ms  player.play ({id:335, owner:, name:47 Ronin (2013), old_name:, o_name:47 Ronin (2013), fname:, description:A band of samurai set out to avenge the death and dishonor of their master at the hands of a ruthless shogun., pic:, cost:0, time:118, file:, path:47_Ronin_2013, protocol:http, rtsp_url:, censored:0, hd:1, series:[], volume_correction:0, category_id:3, genre_id:0, genre_id_1:0, genre_id_2:0, genre_id_3:0, genre_id_4:0, cat_genre_id_1:20, cat_genre_id_2:0, cat_genre_id_3:0, cat_genre_id_4:0, director:Carl Rinsch, actors:Keanu Reeves, Hiroyuki Sanada, Ko Shibasaki , year:2013, accessed:1, status:1, disable_for_hd_devices:0, added:2014-03-22 15:41:04, count:260, count_first_0_5:45, count_second_0_5:1, vote_sound_good:0, vote_sound_bad:0, vote_video_good:0, vote_video_bad:0, rate: null, last_rate_update: null, last_played:2014-04-16, for_sd_stb:0, kinopoisk_id:461314, rating_kinopoisk:6.959, rating_count_kinopoisk:25▒655, rating_imdb:6.50, rating_count_imdb:32 070, rating_last_update:2014-03-23 03:10:38, age:, rating_mpaa:PG-13, high_quality:0, comments:, low_quality:0, screenshots:348, sd:0, lock:0, fav:0, for_rent:0, screenshot_uri:/stalker_portal/screenshots/4/348.jpg, genres_str:action, cmd:/media/335.mpg, week_and_more:march 2014})
DEBUG:: 1401s 407ms  stb.setFrontPanel 1542 true
DEBUG:: 1401s 461ms  ad_indication.hide
DEBUG:: 1401s 463ms  ad_skip_indication.hide
DEBUG:: 1401s 465ms  cmd /media/335.mpg
DEBUG:: 1401s 467ms  playback_limit.start_counting
DEBUG:: 1401s 469ms  stb.user[playback_limit] 4
DEBUG:: 1401s 472ms  item.position undefined
DEBUG:: 1401s 474ms  this.emulate_media_len false
DEBUG:: 1401s 476ms  cmd:  /media/335.mpg
DEBUG:: 1401s 478ms  player.define_media_type /media/335.mpg
DEBUG:: 1401s 480ms  file_type video
DEBUG:: 1401s 482ms  player.proto file
DEBUG:: 1401s 484ms  player.media_type:  file
DEBUG:: 1401s 486ms  player.file_type:  video
DEBUG:: 1401s 488ms  player.is_tv:  false
DEBUG:: 1401s 490ms  player.on_play 335
DEBUG:: 1401s 493ms  stb.profile[plasma_saving] 0
DEBUG:: 1401s 495ms  module.tv.on false
DEBUG:: 1401s 498ms  player.create_link vod /media/335.mpg   undefined
DEBUG:: 1401s 500ms  stb.load()
DEBUG:: 1401s 502ms  params: ({type:vod, action:create_link, cmd:/media/335.mpg, series:, forced_storage:, disable_ad:false})
DEBUG:: 1401s 510ms  keydown handler exit
DEBUG:: 1401s 654ms  array(5) {
  ["id"]=>
  int(0)
  ["cmd"]=>
  string(0) ""
  ["storage_id"]=>
  string(0) ""
  ["load"]=>
  string(0) ""
  ["error"]=>
  string(15) "nothing_to_play"
}
generated in: 0.055s; query counter: 46; cache hits: 0; cache miss: 0; php errors: 0; sql errors: 0;
DEBUG:: 1401s 656ms  connection_problem.hide
DEBUG:: 1401s 658ms  authentication_problem.hide
DEBUG:: 1401s 660ms  player.create_link callback type vod
DEBUG:: 1401s 662ms  create_link callback:  ({id:0, cmd:, storage_id:, load:, error:nothing_to_play})
DEBUG:: 1401s 664ms  this.last_storage_id
DEBUG:: 1401s 667ms  vclub.on_create_link ({id:0, cmd:, storage_id:, load:, error:nothing_to_play})
DEBUG:: 1401s 669ms  _alert.show File missing
DEBUG:: 1401s 672ms  _alert.t_hide
DEBUG:: 1402s 203ms  stb.setFrontPanel 1543 true
DEBUG:: 1403s 674ms  _alert.hide
DEBUG:: 1403s 676ms  _alert.t_queue_handler
DEBUG:: 1405s 678ms  _alert.queue_handler

Aleksey Zhurbitsky

unread,
Apr 22, 2014, 6:06:59 AM4/22/14
to stalker-m...@googlegroups.com
Show your storage setting (screenshot of the "Storages" page from admin interface after you click "edit" on storage). May be you did not set "Max online" or did not check option "Storing content".

malakudi

unread,
Apr 22, 2014, 3:23:52 PM4/22/14
to stalker-m...@googlegroups.com
I found what the problem was. I was using the field "User-Agent Filter" which I had it filled with the user agent of mag250 - Lavf53.32.100 . When I removed this, it worked. Any clue why the filter does not work? Maybe the value needs to be entered differently? However same option works fine for tv archive.
I have also some questions about the storages table. What are fields "external" and "archive_stream_server" are for? 

Aleksey Zhurbitsky

unread,
Apr 23, 2014, 8:43:06 AM4/23/14
to stalker-m...@googlegroups.com
I was using the field "User-Agent Filter" which I had it filled with the user agent of mag250 - Lavf53.32.100
This is player user-agent, you chould use browser user agent ("Mozilla/5.0 (QtEmbedded; U; Linux; C) AppleWebKit...") 
But this option makes sense if you using API v2. 

 What are fields "external" and "archive_stream_server" are for? 
This options are deprecated

malakudi

unread,
Apr 23, 2014, 5:18:22 PM4/23/14
to stalker-m...@googlegroups.com
Sorry, I didn't understand the first part of the reply. What exactly "User-Agent Filter" is used for? If you can, please give an example of it's usage.

Aleksey Zhurbitsky

unread,
Apr 24, 2014, 10:09:40 AM4/24/14
to stalker-m...@googlegroups.com
This option makes sense if you using API v2. For example if one storage should be used only for API clients then you can set in "User-Agent Filter" your API client (external application) user agent.

cola

unread,
Aug 23, 2016, 9:40:03 AM8/23/16
to Stalker Middleware
on my installation 5.0.2 I don't have any option to set http if I add a new movie. Did I must activate something?
Reply all
Reply to author
Forward
0 new messages