[ANNOUNCE] iStreamdev-1.0.1 - stream vdr & media files to your Iphone

  • Hi alib

    Wonderful work !

    Congratulation

    VDRBox : yaVDR-0.5 - eeBox Asus EB1501 - Intel ATOM N330 / 2 Go / 320 Go / GeForce 9400 ION - TT Connect 3600 / WinTV NOVA-T USB2 - VDRUser #1112

  • oO. Seems something going wrong with 1.0 ....

    I can see "Sessions" and "Checking running sessions", but nothing else ..


    /tmp/istreamdev.log:

    Code
    [2010/03/29 23:02:12]  Executing action [getGlobals]
    [2010/03/29 23:02:12]  Executing action [getRunningSessions]
    [2010/03/29 23:02:12]  Listing sessions

    apache2_error.log:

    Code
    [Mon Mar 29 23:00:33 2010] [error] [client 192.168.178.26] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/istreamdev.manifest
    [Mon Mar 29 23:00:33 2010] [error] [client 192.168.178.26] PHP Notice:  Undefined variable: min_symlinks in /srv/www/vhosts/fhem/www/istreamdev/min/index.php on line 32, referer: http://192.168.178.27/istreamdev/index.php
    [Mon Mar 29 23:00:33 2010] [error] [client 192.168.178.26] PHP Notice:  Undefined variable: min_symlinks in /srv/www/vhosts/fhem/www/istreamdev/min/index.php on line 32, referer: http://192.168.178.27/istreamdev/index.php
    [Mon Mar 29 23:00:33 2010] [error] [client 192.168.178.26] PHP Warning:  Call-time pass-by-reference has been deprecated in /srv/www/vhosts/fhem/www/istreamdev/bin/svdrp.php on line 32, referer: http://192.168.178.27/istreamdev/index.php
    [Mon Mar 29 23:00:33 2010] [error] [client 192.168.178.26] PHP Warning:  Call-time pass-by-reference has been deprecated in /srv/www/vhosts/fhem/www/istreamdev/bin/svdrp.php on line 32, referer: http://192.168.178.27/istreamdev/index.php
    [Mon Mar 29 23:00:33 2010] [error] [client 192.168.178.26] PHP Fatal error:  Call to undefined function json_encode() in /srv/www/vhosts/fhem/www/istreamdev/bin/jsonapi.php on line 24, referer: http://192.168.178.27/istreamdev/index.php
    [Mon Mar 29 23:00:33 2010] [error] [client 192.168.178.26] PHP Warning:  Call-time pass-by-reference has been deprecated in /srv/www/vhosts/fhem/www/istreamdev/bin/svdrp.php on line 32, referer: http://192.168.178.27/istreamdev/index.php
    [Mon Mar 29 23:00:33 2010] [error] [client 192.168.178.26] PHP Warning:  Call-time pass-by-reference has been deprecated in /srv/www/vhosts/fhem/www/istreamdev/bin/svdrp.php on line 32, referer: http://192.168.178.27/istreamdev/index.php
    [Mon Mar 29 23:00:33 2010] [error] [client 192.168.178.26] PHP Fatal error:  Call to undefined function json_encode() in /srv/www/vhosts/fhem/www/istreamdev/bin/jsonapi.php on line 169, referer: http://192.168.178.27/istreamdev/index.php
    [Mon Mar 29 23:00:33 2010] [error] [client 192.168.178.26] File does not exist: /srv/www/vhosts/fhem/www/favicon.ico, referer: http://192.168.178.27/istreamdev/index.php

    config:


    Where is my Fault?

    VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
    1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
    Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

  • same here ..

    what is wrong?

    mentox

    VDR Hardware

    [size=8]
    VDR Server: 1,8 core2 Duo, CineStar (4x), Gentoo, VDR 2.2
    VDR Client 1: Zotac ION (D2550ITXS-B-BE, Intel Atom D2550), MLD 4
    VDR Client 2: Zotac ION (IONITX-A-E, Intel Atom N330), MLD 4
    VDR Client 3: Raspberry Pi 2, MLD 5

  • Thank you for your answer,

    Code
    # php5  --version
    PHP 5.2.11 with Suhosin-Patch 0.9.7 (cli) (built: Sep 24 2009 12:40:58)
    Copyright (c) 1997-2009 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    Code
    # rpm -qa |grep php5
    php5-5.2.11-0.1.1
    apache2-mod_php5-5.2.11-0.1.1
    php5-gd-5.2.11-0.1.1

    ... going to try the git-update...

    VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
    1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
    Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

  • hmm,

    I try a new git installation ...

    Code
    # rm istreamdev -R
    # git clone git://projects.vdr-developer.org/istreamdev.git
    # chwon wwwrun:www istreamdev -R
    Code
    [Tue Mar 30 08:22:13 2010] [error] [client 88.79.85.86] PHP Notice:  Undefined variable: min_symlinks in /srv/www/vhosts/fhem/www/istreamdev/min/index.php on line 32, referer: http://mimmiomi.mine.nu/istreamdev/index.php
    [Tue Mar 30 08:22:15 2010] [error] [client 88.79.85.86] PHP Warning:  Call-time pass-by-reference has been deprecated in /srv/www/vhosts/fhem/www/istreamdev/bin/svdrp.php on line 32, referer: http://mimmiomi.mine.nu/istreamdev/index.php
    [Tue Mar 30 08:22:15 2010] [error] [client 88.79.85.86] PHP Warning:  Call-time pass-by-reference has been deprecated in /srv/www/vhosts/fhem/www/istreamdev/bin/svdrp.php on line 32, referer: http://mimmiomi.mine.nu/istreamdev/index.php
    [Tue Mar 30 08:22:16 2010] [error] [client 88.79.85.86] PHP Warning:  Call-time pass-by-reference has been deprecated in /srv/www/vhosts/fhem/www/istreamdev/bin/svdrp.php on line 32, referer: http://mimmiomi.mine.nu/istreamdev/index.php
    [Tue Mar 30 08:22:16 2010] [error] [client 88.79.85.86] PHP Warning:  Call-time pass-by-reference has been deprecated in /srv/www/vhosts/fhem/www/istreamdev/bin/svdrp.php on line 32, referer: http://mimmiomi.mine.nu/istreamdev/index.php

    The Error ( in Apache2-log ) is away, but nothing happened.

    See attachment


    ----

    Edit: Updating PHP5 to 5.2.12 -> the same storry.

    Code
    # php5 --version
    PHP 5.2.12 with Suhosin-Patch 0.9.7 (cli) (built: Feb 12 2010 15:10:01)
    Copyright (c) 1997-2009 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    # rpm -qa |grep php5
    php5-5.2.12-0.1.1
    apache2-mod_php5-5.2.12-0.1.1
    php5-gd-5.2.12-0.1.1


    ---


    It seems that the whole webside is in browser-cache, but would not be shown on Safari.

    eg. Show Source on Firefox:

    Images

    VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
    1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
    Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

    Edited 4 times, last by DrBoon (March 30, 2010 at 8:40 AM).

  • mhh , really strange.

    edit: I've fixed warnings in php. Can you update from git to test ?


    or try to deactivate warning in php if it don't fix it. Perhaps the php answer some warnings in the json output.

    ->set your php.ini with display_errors = Off


    Can one of you booth give me access to istreamdev in PM ? I will check what's happening

    ( in this case don't remove display_errors = off when i test ).


    Last thing that could be the cause, you perhaps have to declare "application/json" mime type in your apache config.

    Edited once, last by alib (March 30, 2010 at 10:43 AM).

  • :lol2

    Bad OpenSuSE ...

    now I found a Package named: "php5-json" ... installing it does not directly correct the error ...

    I'm going to try some settings.

    PS: Error=Off does not solve the Problem.

    VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
    1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
    Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

  • Yeah,

    I intall some php5-extensions, and IT WORKS!

    Code
    php5-zlib php5-zip php5-xmlwriter php5-xmlrpc php5-xmlreader php5-wddx php5-tokenizer php5-tidy php5-sysvshm php5-sysvmsg php5-suhosin php5-sqlite php5-soap php5-shmop php5-readline php5-pspell php5-posix php5-mcrypt php5-pear php5-json php5-iconv php5-gettext  php5-fastcgi php5-devel php5-exif php5-ctype php5-bz2

    ^^ Which one is needed?

    VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
    1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
    Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

  • interesting.

    I think php5-json & php5-zlib

    What's trange here, is i use a default php5 install from debian and it works.


    If you find the missing package, i'm interested to add it in the README.

    Fixed in Git , it should try to load extension dynamically if not loaded by default by your php installation.

    If extension is not installed of course it won't work.


    Thanks.

    Edited 2 times, last by alib (March 30, 2010 at 11:08 AM).

  • now i have the following packages installed, and it works:

    Code
    # rpm -qa |grep php5
    php5-zlib-5.2.12-0.1.1
    php5-5.2.12-0.1.1
    php5-json-5.2.12-0.1.1
    apache2-mod_php5-5.2.12-0.1.1

    php5-json and php5-zlib seems to be needed.

    SuSE:

    Code
    # yast -i php5-json php5-zlib ; rcapache2 restart

    or if you use smart

    Code
    # smart install php5-json php5-zlib ; rcapache2 restart


    mentox: Can you validate this?

    VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
    1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
    Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

    Edited 3 times, last by DrBoon (March 30, 2010 at 11:20 AM).

  • one litle minor flaw:

    The Quicktime-Preview is shiftet to the right.

    otherwise:

    Very, very nice ... Thank you

    Images

    VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
    1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
    Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

    Edited 2 times, last by DrBoon (March 30, 2010 at 11:42 AM).

  • this seems to be a cache problem because of previous bug.

    Can you delete all history, cache & cookies from your iphone, as your /tmp/minify* files on your server and try again ?

    Never saw this bug here.

    Edited once, last by alib (March 30, 2010 at 11:40 AM).

  • Quote

    Original von alib
    this seems to be a cache problem because of previous bug.

    Can you delete all history, cache & cookies from your iphone, as your /tmp/minify* files on your server and try again ?

    Never saw this bug here.

    ^^ I'll make this at evening ( to much browser-tabs open at present ).

    PS: Can you help me to adapt this patch from 0.3.7 to 1.0 ? I can't speak Java well.

    VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
    1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
    Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

    Edited once, last by DrBoon (March 30, 2010 at 11:45 AM).

  • Code
    PS: Can you help me to adapt  this patch from 0.3.7 to 1.0 ? I can't speak Java well.

    This will be a little bit more tricky to do right now.

    What i can plan for next feature, is to add something in the config.php file to allow you having some special links in homePage without touching the js code.

    something like:

    AddCategory1 = "Home Automation";
    AddButton= "Open Garage,http://127.0.0.1:7072?action=parameter";

    What kind of HTTP call do you need ? On what i see it's not Post data.

  • Sounds great.

    Is not a big thing, it should principally simply call a commandline-script when clicked. In second it should show a diffrent picture when a file exist. Not a great thing.

    "Open Garage,http://127.0.0.1:7072?action=parameter" does not work. it needs the Commandline call: "printf \"/usr/src/fhem-4.8/fhem.pl 127.0.0.1:7072 \\\"set swz011 off\\\"\" |at now" and the showing state!

    Best thing ( i think ) simply to call a "user defined" - php-include

    ... my problem is, that i don't understand the building of the "home" - page ... and that is needed for the different images.

    eg:
    Category = Home Automation
    Button 1 = Garage ( image when statusfile exist - or - otherimage when statusfile not exist ) + ( call userdefinedbutton1.sh when clicked )


    edit

    Code
    AddCat1 = Home Automation {
    CatType = Fhem
    AddButton1 = Garage; /path/to/statusfile ; img/off ; img/on ; togglescript
    AddButton2 = Light ; /path/to/statusfile2 ; img/off; img/on ; togglescript2 
    }

    ...

    ^^ seems that it must be a patch.

    The Status ( on/off - open/close ) is equally important to the Toggle-Function.

    The naming for calls, and how it calls is your thing.


    Hmm, Tricky.


    Thank you. ( and sorry for my ugly english ).

    VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
    1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
    Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

    Edited 3 times, last by DrBoon (March 30, 2010 at 12:43 PM).

  • is there a way to implement it like:

    Code
    AddCat1 = Home Automation {
    CatType = Fhem
    AddButton1 = Garage; /path/to/statusfile ; img/off.gif ; img/on.gif ; togglescript
    AddButton2 = Light ; /path/to/statusfile2 ; img/off.gif; img/on.gif ; togglescript2 
    }

    And build it in "home" with
    if /path/to/statusfile: img/on.gif else: img/off.gif ... on click togglescript

    ^^ CatType opened the way to serious Plugins
    * calling simple http-sides
    * Remote-controlls
    * different button types ( like scrollbars ).
    , and the script-actions not your problem. ?

    VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
    1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
    Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

    Edited 3 times, last by DrBoon (March 30, 2010 at 12:51 PM).

  • we will see for next rev.

    I see something like this so:


    We define a new plugin in config.php:

    Plugin[0] = "Fhem" {

    MenuTitle = "Home Automation",
    //case trigger:
    //button[x] = trigger;button name; command to call; command parameters; button pic
    //case toggle:
    //button[x] = toggle;button name; command to call; command parameters; {button pic on,button pic off};togglestatusfile

    Button[0] = "'toggle';'Garage';'/usr/src/fhem-4.8/fhem.pl';'127.0.0.1:7072 \"set swz011 off\"';{'img/on.gif','img/off.gif'};'/path/to/statusfile'"
    }

    And new json functions:

    Json:

    call: getPluginData
    post: name=[pluginname]

    Answer:

    { "plugin": "Fhem",
    "buttons":
    [
    {
    "name": "Garage",
    "type": "toggle",
    "img_on": "img/on.gif",
    "img_off": "img/off.gif",
    "status": "on";
    },
    {
    "name": "Shutdown VDR",
    "type": "trigger",
    "img": "img/vdr.gif",
    }
    ]
    }


    call: callPlugin ( when a button is clicked )
    post: name=[pluginname]&button=[buttonname]

    Answer:
    { "status": "done" }

  • nice, nice.

    VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
    1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
    Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!