Agen Terpercaya  
 
 
 
 
Pasang iklan, hanya lewat Contact Us.
Waspada penipuan iklan. Klik di sini untuk melihat daftar penipu.

SHARE LIVE TV [BELAJAR MEMBUAT APLIKASI LIVE TV ANDROID] [SOURCE CODE FREE COMPLETE]

RayMantic

Moderator
Staff member
Moderator
Daftar
4 Oct 1988
Post
×
Like diterima
9.123
Bimabet

Di codecanyon harganya 22 $ -> di forum saya gratisin ...

untuk tampilan source code di forum ini hanyalah untuk review dari cara kerja dan maksud code ini tersambung .

Menonton TV secara online atau yang biasa disebut live streaming TV bisa dilakukan di berbagai jenis Android, dari Android yang sudah di-root ataupun yang belum .
banyak dev yang berusaha membuat TV online / live ini untuk menghasilkan sebuah pendapatan karena aplikasi semacam ini termasuk yang paling banyak di cari oleh pengguna android pada sekarang ini .

saya hanya membantu meramaikan sub ini juga berguna meramaikan bagi para android developer untuk meramaikan pasar andoid market atau android store , juga mungkin ada teman forum yang sedang mencari bahan untuk skrip.

langsung saja .
untuk link download nya di bawah sendiri ya gan .

oh iya sebelumnya saya rincikan untuk coneksifitas DB sama anjurannya terlebih dulu :

Configrasi DB :

1.Pertama-tama cari folder Livetv_web_services dari paket yang diunduh.
2. Salin folder ini dan tempel di folder htdocs (jika Anda telah menginstal Wampp, masukkan ke www)
3.Kemudian buat database dan impor database dari folder db.
4.Aftre membuat database mengkonfigurasi file koneksi, yang ada di folder include paket Anda.
Code:
$serverIp="localhost"; 
    $userName="root";
    $password="";
    $dbname="live_tv ";
Itu saja, sekarang jalankan layanan web: http://localhost/Livetv_web_services/index.php

buat folde TV live - > Aset .
index

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Android LiveTv M.R.X</title>
<style>
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 14px;
}
p{
line-height: 20px;
}
</style>
</head>
<body>
    <div align="center" style="color: #000;">
        <p>
            <img src="http://www.viaviweb.com/images/single-logo.jpg"
                title="Viaviweb" />
        </p>
        <p
            style="border-top: solid 1px #000; margin-top: 10px; padding-top: 10px;">Android LiveTv</p>        
        <p>
            <a href="http://www.viaviweb.com"
                style="color: #000; text-decoration: none">http://www.viaviweb.com</a>
        </p>
        <p>Email :- [email protected]</p>
        <p align="justify">Note :-THIS APPLICATION ONLY PROVIDES THE LINKS FOR THE LIVE STREAMING CHANNELS. ALL THE LINKS ARE GATHERED FROM VARIOUS FREELY AVAILABLE WEB SITES.</p>
    </div>
</body>
</html>

buat folde TV live - > bin .
androidmanifest

Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.jakkash.androidlivetv"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="18" />
   
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
    <uses-permission android:name="android.permission.GET_TASKS" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/appicon"
        android:label="@string/app_name"
        android:theme="@style/Theme.Androidlivetv" >
        <activity
            android:name="com.jakkash.androidlivetv.SplashActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
       
        <activity android:name="com.jakkash.androidlivetv.MainActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
       
        <activity android:name="com.jakkash.androidlivetv.CategoryItem"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
       
        <activity android:name="com.jakkash.androidlivetv.TvDetails"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
       
         <activity android:name="com.jakkash.androidlivetv.AboutActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
       
         <activity
            android:theme="@style/Theme.Sherlock.Light.NoActionBar"
            android:name="com.jakkash.androidlivetv.TvPlay"
            android:screenOrientation="sensorLandscape"           
            android:label="@string/app_name" >
        </activity>
       
        <!-- Jangan lupa InitActivity -->
        <activity
            android:name="io.vov.vitamio.activity.InitActivity"
            android:configChanges="orientation|keyboardHidden|navigation"
            android:launchMode="singleTop"
            android:screenOrientation="sensorLandscape"
            android:theme="@android:style/Theme.NoTitleBar"
            android:windowSoftInputMode="stateAlwaysHidden" />
       
       
        <!-- Kode Awal app code -->
       
           <activity android:name="com.startapp.android.publish.list3d.List3DActivity"
            android:taskAffinity="com.jakkash.androidlivetv.AppWall"
            android:theme="@android:style/Theme" />
        
        <activity android:name="com.startapp.android.publish.AppWallActivity"
                android:theme="@android:style/Theme.Translucent"
                android:taskAffinity="com.jakkash.androidlivetv.AppWall"
                android:configChanges="orientation|keyboardHidden" />
       
        <!-- Kode Akhir -->
       
     
        <!-- Kolom Untuk Admob/iklan -->
        <activity
            android:name="com.google.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />     
    </application>
</manifest>

buat folde TV live - > src .
androidmanifest

Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.jakkash.androidlivetv"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="18" />
   
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
    <uses-permission android:name="android.permission.GET_TASKS" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/appicon"
        android:label="@string/app_name"
        android:theme="@style/Theme.Androidlivetv" >
        <activity
            android:name="com.jakkash.androidlivetv.SplashActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
       
        <activity android:name="com.jakkash.androidlivetv.MainActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
       
        <activity android:name="com.jakkash.androidlivetv.CategoryItem"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
       
        <activity android:name="com.jakkash.androidlivetv.TvDetails"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
       
         <activity android:name="com.jakkash.androidlivetv.AboutActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
       
         <activity
            android:theme="@style/Theme.Sherlock.Light.NoActionBar"
            android:name="com.jakkash.androidlivetv.TvPlay"
            android:screenOrientation="sensorLandscape"           
            android:label="@string/app_name" >
        </activity>
       
        <!-- InitActivity -->
        <activity
            android:name="io.vov.vitamio.activity.InitActivity"
            android:configChanges="orientation|keyboardHidden|navigation"
            android:launchMode="singleTop"
            android:screenOrientation="sensorLandscape"
            android:theme="@android:style/Theme.NoTitleBar"
            android:windowSoftInputMode="stateAlwaysHidden" />
       
       
        <!--Awal app code -->
       
           <activity android:name="com.startapp.android.publish.list3d.List3DActivity"
            android:taskAffinity="com.jakkash.androidlivetv.AppWall"
            android:theme="@android:style/Theme" />
        
        <activity android:name="com.startapp.android.publish.AppWallActivity"
                android:theme="@android:style/Theme.Translucent"
                android:taskAffinity="com.jakkash.androidlivetv.AppWall"
                android:configChanges="orientation|keyboardHidden" />
       
        <!-- Akhir App code -->
       
       
         <!-- Kolom Untuk Admob/iklan -->
        <activity
            android:name="com.google.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
       
    </application>

</manifest>

NOTE :
actionbarsherlock dan ZI dan InitActivity Library disajikan folder Utama Android Live Tv


class patch
Code:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
    <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
    <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="src" path="gen"/>
    <classpathentry kind="lib" path="libs/StartAppInAppPlus-2.3.jar"/>
    <classpathentry kind="output" path="bin/classes"/>
</classpath>


Project
Code:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>AndroidLiveTv StartApp M.R.X</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.jdt.core.javabuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>com.android.ide.eclipse.adt.ApkBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
        <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>
</projectDescription>


folder documentasi - > index.html
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head lang="en">
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>Android Live TV M.R.X</title>
    <!-- Framework CSS -->
    <link rel="stylesheet" href="assets/blueprint-css/screen.css" type="text/css" media="screen, projection">
    <link rel="stylesheet" href="assets/blueprint-css/print.css" type="text/css" media="print">
    <!--[if lt IE 8]><link rel="stylesheet" href="assets/blueprint-css/ie.css" type="text/css" media="screen, projection"><![endif]-->
    <link rel="stylesheet" href="assets/blueprint-css/plugins/fancy-type/screen.css" type="text/css" media="screen, projection">
    <style type="text/css" media="screen">
        p, table, hr, .box { margin-bottom:25px; }
        .box p { margin-bottom:10px; }
    </style>
</head>


<body>
    <div class="container">
    
        <h3 class="center alt">&ldquo;Android Live TV&rdquo; Documentation by &ldquo;Viavi WebTech-M.R.X&rdquo; v1.0</h3>
        
        <hr>
        
        <h1 class="center">&ldquo;Android Live TV&rdquo;</h1>
        
        <div class="borderTop">
            <div class="span-6 colborder info prepend-1">
                <p class="prepend-top">
                    <strong>
                    Created: 16-April-2019<br>
                    Company: Viavi WebTech-M.R.X<br>

                    </strong>
                </p>
            </div>
            <!-- end div .span-6 -->
            <div class="span-12 last">
                <p class="prepend-top append-0">Terima kasih telah membeli aplikasi. Jika Anda memiliki pertanyaan yang berada di luar cakupan file bantuan ini, jangan ragu untuk mengirim saya pesan melalui formulir kontak halaman pengguna saya <a href="http://M.R.X.team">here</a>. Terima kasih banyak!</p>
            </div>
        </div>

        <!-- end div .borderTop -->
        
        <hr>
        
        <h2 id="toc" class="alt">Table of Contents</h2>
        <ul>
            <li><a href='#eclipseversion'>Which Eclipse version is needed?</a></li>
            <li><a href='#importproject'>How to open the project in Eclipse?</a></li>            
            <li><a href='#packagename'>How to change the package name?</a></li>
            <li><a href='#appname'>How to change app name?</a></li>
            <li><a href='#serverconfig'>How to Configure Webservice In Your Server</a></li>    
            <li><a href='#serverurl'>Where to put Server Url in Application?</a></li>    
            <li><a href='#howtoadd'>How to add category and its items into webservice?</a></li>            
            <li><a href='#admob_id'>How to change AdMob publisher id?</a></li>
            <li><a href='#startapp_id'>How to change StartApp Ad Id/Developer Id?</a></li>            
            <li><a href='#about'>How to change 'About' section?</a></li>        
            <li><a href='#splash'>How to change 'Splash Screen and Application Icon' ?</a></li>        
            <li><a href='#checkchannel'>How to Check Channel Url is Working Properly?</a></li>
             <li><a href="#graphics">Graphics</a></li>            
            <li><a href="#showcase">App Showcase</a></li>
            <li><a href="#rating">Rating</a></li>
<!--
            <li><a href="#changelog">Changelog</a></li>
-->
            <li><a href="#credits">Credits</a></li>
        </ul>
        
        <hr>
        
        
        <h3 id="eclipseversion"><strong>Which Eclipse version is needed?</strong> - <a href="#toc">top</a></h3>
        <p>
            Latest Eclipse version is recommended, which can be downloaded from here:<br />
            <a href='http://developer.android.com/sdk/index.html'>http://developer.android.com/sdk/index.html</a>
        </p> 
        
        <hr>
        
        
        <h3 id="importproject"><strong>How to open the project in Eclipse?</strong> - <a href="#toc">top</a></h3>    
            
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/import_2.png'><img src='assets/images/import_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/import_1.png'><img src='assets/images/import_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        
        
            
        <p>
            <ol>
                <li>Open Eclipse > Import > Android > "Existing Android Code into Worksplace" > Next </li>
                <li>Root Directory > Click Browse button & browse the project folder  > Select all 4 projects 'actionbarsherlock', 'AndroidLiveTV', 'VitamioBundle' & 'ZI'</li>
                <li>After sucessfully importing the app, Right Click 'AndroidLiveTV' project from Package Explorer > Properties > Java Build Path > Order and Export > Check on 'Android Private Libraries' > OK</li>
                <li>Then go to 'Project' Menu > Clean.. > Clean All Projects > OK</li>
                <li>Wait for few minutes until all errors are gone. Ignore any warning appears in 'Problems' tab.</li>
            </ol>
        </p> 
        
        <hr>
        
        
        <h3 id="packagename"><strong>How to change the package name?</strong> - <a href="#toc">top</a></h3>

        <div style='float:right; padding:0 0 20px 20px; width:400px;'>
        
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_1.png'><img src='assets/images/packagename_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_2.png'><img src='assets/images/packagename_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_3.png'><img src='assets/images/packagename_3.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_4.png'><img src='assets/images/packagename_4.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
            
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_5.png'><img src='assets/images/packagename_5.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        </div>
        
        <p>
            You can change it easily from Eclipse. Here are the steps: 
            <ul>
                <li>Right Cilck 'AndroidLiveTV' project from Package Explorer > Android Tools > Rename Application Package > Finish.</li>
                <li>Refactroing dailog present and click Finish</li>
                <li>Package Name Changed in AndroidMainfest.xml but not in Application Package hierarchy so select Package name Right Click >
                Go to Refactor > Rename >Enter Package Name > Finish</li>
            </ul>            
        </p> 
        
        <hr>
        
        
        <h3 id="appname"><strong>How to change app name?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/appname_3.png'><img src='assets/images/appname_3.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/appname_2.png'><img src='assets/images/appname_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/appname_1.png'><img src='assets/images/appname_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <p>
            <ol>
                <li>Open Eclipse >Android Live TV> res > values > strings.xml</li>
                <li>Select 'strings.xml' tab next to 'Resources' tab</li>
                <li>Enter your app name inside <b>"app_name"</b> string tag:<br /><code>&lt;string name="app_name"&gt;<b>Android Live TV</b>&lt;/string&gt;</code></li>
                <li>if you want change Project name also then >Right Cilck 'AndroidLiveTV' project from Package Explorer >Refactor > Rename >Enter Application Name > Finish</li>
            </ol>
            This will change both title inside the app & app icon name.
        </p> 
        
        <hr>
        
        
        
        <h3 id="serverconfig"><strong>How to Configure Webservice In Your Server?</strong> - <a href="#toc">top</a></h3>
        <div style='float:right; padding:0 0 20px 20px'><iframe width="420" height="345" src="http://www.youtube.com/embed/L0IvojaAllI" style='border:1px solid #aaa'></iframe></div>    
        
        <p>
            <ol>
                <li>First of all find the  Livetv_web_services  folder from the downloaded package.</li>
                <li>Copy these folder and paste it in the htdocs  folder(if you have Wampp installed then put it into www)</li>
                <li>Then create a database and import the database from the db folder.</li>
                <li>4.Aftre creating database configure the connection file,which is in the includes folder of your package.<br>

                    <b>$serverIp="localhost"; <br> 
                    $userName="root";<br>
                    $password="";<br>
                    $dbname="live_tv ";<br></b>
    
                That’s all,now run the webservice : <b>http://localhost/Livetv_web_services/index.php</b>
                for <b>Live set up </b>Follow the video tutorial ahead.
</li>
            </ol>
            
        </p> 
        
        
        <hr>

    <h3 id="serverurl"><strong>Where to put Server Url in Application?</strong> - <a href="#toc">top</a></h3>
    
    <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/serverurl_1.png'><img src='assets/images/serverurl_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
    
    <p>
            <ol>
                <li>Select Project > go to com.example.util package > Constant.java Class</li>
                <li> Open Constant.java</li>
                <li> now if your Sever is http://abc.com so your service url like that <b>http://abc.com/api.php</b> and </br><b>http://abc.com/api.php?cat_id=</b> and image path <b>http://abc.com/images</b></li>
                
            </ol>
            </p>
    
    <hr>
    
        <h3 id="howtoadd"><strong>How to add category and its items into webservice?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px; width:400px;'>
        
            <div style="float:left; margin:2px 5px;"><a href='assets/images/howtoadd_1.png'><img src='assets/images/howtoadd_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
            <div style="float:left; margin:2px 5px;"><a href='assets/images/howtoadd_2.png'><img src='assets/images/howtoadd_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
            <div style="float:left; margin:2px 5px;"><a href='assets/images/howtoadd_3.png'><img src='assets/images/howtoadd_3.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
            <div style="float:left; margin:2px 5px;"><a href='assets/images/howtoadd_4.png'><img src='assets/images/howtoadd_4.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
            
             
        </div>
            
        <p>
        open your admin panel</br>
        <b>Now we first uploaded category.</b>]
        <ol>
            <li>Go to Manage category.</li>
            <li>Right Side Press Add category.</li>
            <li>Enter Category Name. </li>
            <li>Choose image of category.</li>
        </ol>
        
        <b>Now we enter the item of that category.</b>
        <ol>
            <li>Go to Channel List</li>
            <li>right side press Add Channel</li>
            <li>then select category</li>
            <li>enter Name and Channel url,Description and Submit</li>
             
        </ol>
        </p>
        <hr>
    
        
        <h3 id="admob_id"><strong>How to change AdMob publisher id?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/admobid.png'><img src='assets/images/admobid.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
        <p>
            <ol>
                <li>Open Eclipse > AndroidLiveTV > res > values > strings.xml</li>
                <li>Select 'strings.xml' tab next to 'Resources' tab</li>
                <li>Enter your AdMob publisher id inside <b>"admob_publisher_id"</b> string tag:<br /><code>&lt;string name="admob_publisher_id"&gt;<b>Your AdMob ID Here</b>&lt;/string&gt;</code></li>
                
            </ol>
        </p> 
        <hr>
        
        
        
        <h3 id="startapp_id"><strong>How to change StartApp Ad Id/Developer Id?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/startapp_2.png'><img src='assets/images/startapp_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/startapp_1.png'><img src='assets/images/startapp_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <p>
            <ol>
                <li>Open Eclipse > AndroidLiveTV > res > values > strings.xml</li>
                <li>Select 'strings.xml' tab next to 'Resources' tab</li>
                <li>Enter your StartApp Application id inside <b>"startapp_app_id"</b> string tag:<br /><code>&lt;string name="startapp_app_id"&gt;<b>Your StartApp Application ID</b>&lt;/string&gt;</code></li>
                <li>Enter your StartApp Developer id inside <b>"startapp_dev_id"</b> string tag:<br /><code>&lt;string name="startapp_dev_id"&gt;<b>Your StartApp Developer ID</b>&lt;/string&gt;</code></li>
                <li>Open AndroidMainfiest.xml > Change in Startapp Code</li>
            </ol>
        </p> 
        
        <hr>
        
        
        
        <h3 id="about"><strong>How to change 'About' section?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/about.png'><img src='assets/images/about.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
        <p>
            <ol>
                <li>Go to: Eclipse > AndroidLiveTV > assets >index.html</li>
                <li>Right click index.html > Open With > Text Editor</li>
                <li>It will open into a text editor inside Eclipse, make your necessary changes & save</li>
            </ol>
             
        </p> 
    <hr>
    
    <h3 id="splash"><strong>How to change 'Splash Screen and Application Icon' ?</strong> - <a href="#toc">top</a></h3>
    
    <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/appicon.png'><img src='assets/images/appicon.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
    <p>
        <b>How To Change Application Icon</b>
        <ol>
            <li>Open Eclipse > AndroidLiveTV > res > drawable-mdpi > appicon.png</li>
            <li>Rename your icon with appicon.png and paste in drawable-mdpi folder</li>
        </ol>
        
        <b>How To Change Splash Screen</b>
        <ol>
            <li>Open Eclipse > AndroidLiveTV > res > drawable > splash.png</li>
            <li>Rename your splash screen image  with splash.png and paste in drawable folder</li>
        </ol>
        
    </p>
    
    <hr>
        
        <h3 id="checkchannel"><strong>How to Check Channel Url is Working Properly?</strong> - <a href="#toc">top</a></h3>
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/vlc_check_3.png'><img src='assets/images/vlc_check_3.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/vlc_check_2.png'><img src='assets/images/vlc_check_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/vlc_check_1.png'><img src='assets/images/vlc_check_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        
        <p>
        There are lots of channel list available in internet but some them not work properly,So here is method how to check that channel is working or not?
            <ol>
                <li>Open VLC Media Player > Media > Open Network Stream..(Ctrl+N) > 3rd Tab Network >Enter Channel url</li>
                <li>If Channel Working Properly Then its Play otherwise its give error dialog</li>
                <li>if channel not play in VLC that channel aslo not play in device</li>
                 
            </ol>
        </p> 
        
        <hr>
        
        <h3 id="graphics"><strong>Graphics</strong> - <a href="#toc">top</a></h3>
        
        <p>You will find all image into /res/drawable-mdpi/,/res/drawable-hdpi/,/res/drawable-xhdpi/ folder. Just create your own graphics and replace those files. Create seperate graphics of different device screen sizes & place them into other drawble folders (drawable-hdpi & drawable-xhdpi) with same file name found at drawable-mdpi folder.  Check here for more information: <a href='http://developer.android.com/design/style/devices-displays.html'>Devices and Displays</a> & <a href='http://developer.android.com/guide/practices/screens_support.html'>Supporting Multiple Screens</a>.</p>
        
        <hr>
        
        
        
        <h3 id="showcase"><strong>App Showcase</strong> - <a href="#toc">top</a></h3>
        
        <p>Once you will publish your app to Google Play or any other Android store, send us your app link. We will happy to showcase your app into our website & CodeCanyon page.</p> 
        
        <hr>
        
        
        
        <h3 id="rating"><strong>Rating</strong> - <a href="#toc">top</a></h3>
        
        <p>If you like our app, we will highly appreciate if you can provide us a rating of 5. You can rate us from your CodeCanyon Menu > Download page.</p> 
        
        <hr>
        
        
        <h3 id="credits"><strong>Credits</strong> - <a href="#toc">top</a></h3>
        
        <p>I've used folowing sources into this app:
        
        <ul>
            <li><a href='http://www.vitamio.org/en/'>Vitamio SDK</a> for video playback. The SDK is free for individual developers. Otherwise you might need to purchase the license before using it. <a href='http://www.vitamio.org/en/License/'>Check here</a> for license information.</li>            
            <li><a href='http://actionbarsherlock.com/'>ActionBarSherlock</a></li>
                        
        </ul>
        
        <hr>
        
        
        
        <p>Once again, thank you so much for purchasing this app. As I said at the beginning, I'd be glad to help you if you have any questions relating to this app. No guarantees, but I'll do my best to assist. If you have a more general question relating to the apps on CodeCanyon, you might consider visiting the "FAQ / Support" section and asking your question in the "Comments" section at CodeCanyon app detail page.</p> 
        
        <p class="append-bottom alt large"><strong>M.R.X_isc</strong><br /><strong><a href='http://www.viavi.in'>Viavi WebTech-M.R.X</a></strong></p>

        <p><a href="#toc">Go To Table of Contents</a></p>
        
        <hr class="space">
    </div><!-- end div .container -->
</body>
</html>


DB = live_TV.sql
Code:
- phpMyAdmin SQL Dump
- versi 4.1.8
- http://www.phpmyadmin.net
-
- Host: localhost
- Waktu Pembuatan: 16 April 2019 pukul 16:43
- Versi server: 5.1.73-cll
- Versi PHP: 5.4.23

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `viaviw56_live_tv`
--

-- --------------------------------------------------------

--
-- Struktur tabel untuk tabel `tbl_admin`
--
CREATE TABLE IF NOT EXISTS `tbl_admin` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(100) NOT NULL,
  `password` varchar(100) NOT NULL,
  `email` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- dumping data untuk tabel `tbl_admin`
--

INSERT INTO `tbl_admin` (`id`, `username`, `password`, `email`) VALUES
(1, 'admin', 'adminq1w2', '[email protected]');

-- --------------------------------------------------------

--
-- Struktur tabel untuk tabel `tbl_category`
--

CREATE TABLE IF NOT EXISTS `tbl_category` (
  `cid` int(11) NOT NULL AUTO_INCREMENT,
  `category_name` varchar(255) NOT NULL,
  `category_image` varchar(255) NOT NULL,
  PRIMARY KEY (`cid`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;

--
-- Dumping data untuk table `tbl_category`
--
INSERT INTO `tbl_category` (`cid`, `category_name`, `category_image`) VALUES
(3, 'News Channel', '18290_news.png'),
(5, 'Movie Channels', '34114_movie.png'),
(6, 'Science Channel', '93817_science.png'),
(7, 'Music Channel', '78220_Music.png');

-- --------------------------------------------------------

--
-- Table structure untuk tabel `tbl_channels`
--

CREATE TABLE IF NOT EXISTS `tbl_channels` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `cat_id` int(11) NOT NULL,
  `channel_title` varchar(100) NOT NULL,
  `channel_url` varchar(255) NOT NULL,
  `channel_thumbnail` varchar(255) NOT NULL,
  `channel_desc` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=45 ;

--
-- Dumping data untuk tabel `tbl_channels`
--

INSERT INTO `tbl_channels` (`id`, `cat_id`, `channel_title`, `channel_url`, `channel_thumbnail`, `channel_desc`) VALUES
(16, 3, 'Aaj Tak', 'rtsp://46.249.213.87:554/playlists/aajtak_hvga.hpl.3gp ', '55293_aajtak.jpg', 'Aaj Tak is a 24-hour Hindi news television channel owned by TV Today Network Ltd.. Aaj Tak loosely translates as "Till Today" or "Up to the Minute". In India, Aaj Tak is a free-to-air channel\r\n\r\nAaj Tak has won the Indian Television Academy Award for Best'),
(17, 3, 'India TV ', 'rtsp://46.249.213.93:554/playlists/india-tv_hvga.hpl.3gp ', '51855_india_tv.jpg', 'India TV is a Hindi news channel based in Noida, Uttar Pradesh, India. The channel was launched on May 20, 2004 just 2 days before BJP''s tenure in government was ending (On 22nd May 2004) by Rajat Sharma and wife Ritu Dhawan.The channel is the flagship se'),
(18, 3, 'NDTV Profit ', 'http://bglive-a.bitgravity.com/ndtv/prolo/live/native', '8803_ndtvprofit.jpg', 'NDTV Profit is a business news channel started by New Delhi Television in January 2005\r\nIt has a large number of journalists covering the action from the Bombay Stock Exchange (BSE) and the National Stock Exchange of India (NSE). Furthermore, it also cove'),
(19, 3, 'NDTV', 'http://bglive-a.bitgravity.com/ndtv/247hi/live/native', '39936_ndtv_india.jpg', 'New Delhi Television Limited (NDTV) is an Indian commercial broadcasting television network founded in 1988 by Radhika Roy and Prannoy Roy. NDTV is an acronym for the original name of the company, New Delhi Television. Vikramaditya Chandra is the Chief Ex'),
(20, 3, 'Sahara Samay', 'rtsp://cdn.m.yupptv.tv/liveorigin/saharasamaynew1', '66427_Sahara_Samay_National.jpg', 'This is news channel owner of sahara group'),
(21, 3, 'CNBC TV', 'rtsp://202.159.213.30:554/cnbctv18_mobC.sdp?token=923152409036', '73548_cnbc_tv18.jpg', 'This is news Channel Related to Stock Market.'),
(22, 3, 'CNBC Awaaz', 'rtsp://202.159.213.30:554/cnbcawaaz_mobC.sdp?token=923152409036', '78629_cnbc_awaaz.jpg', 'CNBC Awaaz is a Hindi business news TV channel in India. The channel is a joint venture between CNBC and Television Eighteen India Limited (TV18) based in New Delhi.'),
(23, 3, 'Channel 9', 'http://72.46.226.53/live01/_definst_/canal91/playlist.m3u8', '38561_channel9_bd.jpg', 'Channel 9 broadcasts in color, but -as well as many other TV channels outside Buenos Aires- it has monophonic sound only.'),
(24, 3, 'Lemon News', 'http://tata.live.cdn.bitgravity.com/lemon/live/feed01', '2492_lemonnews.jpg', 'This is Indain News Channel'),
(25, 3, 'HMTV ', 'rtsp://cdn.m.yuppcdn.net/liveorigin/hmtv2', '68619_hmtv.jpg', 'HMTV is a 24-hour Telugu news channel. It is owned by Hyderabad Media House Ltd. The Chief editor of the channel is K. Ramachandra Murthy, a Senior Telugu Editor and Journalist who worked with Andhra Jyothi, Vartha, Udayam news papers for many years.'),
(26, 3, 'ETV ', 'http://cdn.m.yuppcdn.net/liveorigin/smil:etv2.smil/hasbahca.m3u8', '57389_etv.jpg', 'ETV Regional Channels, bouquet of 12 regional channels are source of rich infotainment to audiences in the language of their choice'),
(27, 3, 'Zee News', 'rtsp://202.159.213.30:554/zeenews_mobC.sdp?token=923152409036', '8082_zeenews.jpg', 'Zee News is an Indian news and current affairs channel founded in 1999. It is owned by Zee News Ltd. Initially, most of the programs were broadcast in English.Zee News was converted into a complete Hindi news channel.'),
(28, 3, 'DD National', 'rtsp://202.159.213.30:554/ddnational_mobC.sdp?token=923152409036', '43557_ddnational.jpg', 'DD National (DD1) is a state-owned general interest terrestrial television channel in India. It is the flagship channel of Doordarshan, the Indian public service broadcasting corporation, and the most widely available terrestrial television channel in Ind'),
(29, 5, 'Cartoon Network', 'rtmp://103.7.56.16:1935/live/dfrcar.stream', '5348_cn.jpeg', 'Cartoon Network (CN) is an American basic cable and satellite television channel that is owned by the Turner Broadcasting System division of Time Warner. The channel airs mainly animated programming, ranging from action to animated comedy, along with some'),
(30, 5, 'Sab Tv', 'rtsp://46.249.213.93:554/playlists/sonysabtv_hvga.hpl.3gp', '19253_sab.jpg', 'The channel was launched on April 23, 2000 by Sri Adhikari Brothers as a general entertainment channel. In 2003, it was repositioned as a comedy-centric channel. In March 2005, SAB TV was acquired by Sony Entertainment Television and was transformed into '),
(31, 5, 'Zing Tv', 'rtsp://217.146.95.166:554/live/ch28zqcif.3gp', '82595_zing.jpg', 'Zing, formerly known as Zee Muzic and Music Asia, is an India-based satellite music television channel owned by Zee Entertainment Enterprises, which carries broadcasts in Hindi and other regional languages of India. As well as broadcasting in South Asia, '),
(32, 5, 'Fashion Tv', 'http://edgeb.streaming.sk/fashiontv/fashiontv.stream/playlist_b125000_w304569164.m3u8?', '25996_fashion.jpg', 'FashionTV is an international fashion and lifestyle broadcasting television channel. Founded in France in 1997 by its Polish-born president Michel Adam Lisowski, FashionTV has become one of the most widely distributed satellite channels in the world: 31 s'),
(33, 5, 'Zee Cafe', 'rtsp://202.159.213.30:554/zeecafe_mobC.sdp?token=923152409036', '74174_Zee_Cafe_2005.jpg', 'Zee Café is an Indian English-hindi language cable and satellite television channel owned by Zee Entertainment Enterprises, a subsidiary of the Essel Group'),
(34, 5, 'Colors Tv', 'rtsp://202.159.213.30:554/colors_mobC.sdp?token=923152409036', '44649_Colors_TV.jpg', 'Colors, known as Aapka Colors in the United States and Canada, is a Hindi language Indian general entertainment channel based in Mumbai, part of the Viacom 18 family, which was launched on July 21, 2008.\r\n'),
(35, 5, 'Sony Tv', 'rtsp://202.159.213.30:554/sony_mobC.sdp?tokan=923152409036', '21027_sony.jpg', 'Sony Entertainment Television or SET, is a Hindi-language based general entertainment television channel in India. It was launched in October 1995 and is owned by Multi Screen Media Pvt. Ltd. (MSM, formerly SET India Private Limited), a subsidiary of Sony'),
(36, 5, 'Zee TV', 'rtsp://202.159.213.30:554/zeetv_mobC.sdp?tokan=923152409036', '94982_zee_network.jpg', 'Zee TV is an Indian cable and satellite television channel owned and operated by Zee Entertainment Enterprises, a media and entertainment company based in Mumbai.  It primarily airs programmes in Hindi and other regional languages of India. The channel is'),
(40, 7, 'Indie Music', 'rtsp://46.249.213.87:554/playlists/imtv_hvga.hpl.3gp ', '11557_indie.jpg', 'This Music channel based on Hindi Movie'),
(41, 7, 'Hungama Tv', 'rtsp://46.249.213.87:554/playlists/bollywood-hits_hvga.hpl.3gp ', '66056_Hungama_TV.jpg', 'This Music channel based on Hindi Movie'),
(42, 6, 'National Geographic', 'rtmp://103.7.56.16/live/fdgngo.stream', '70628_national_geo.jpg', 'National Geographic Channel (also commercially abbreviated and trademarked as Nat Geo) is an American digital cable and satellite television channel that is owned by the National Geographic Society and the Fox Cable Networks division of 21st Century Fox\r\n'),
(43, 6, ' Discovery Channel', 'rtmp://103.7.56.16:1935/live/rdddis.stream', '46708_discovrey.jpg', 'The Discovery Channel began broadcasting on June 17, 1985. It was initially available to 156,000 households and broadcast for 12 hours each day between 3 p.m. and 3 a.m. About 75 percent of its program content had never been broadcast on U.S. television b'),
(44, 6, 'History Tv', 'rtmp://103.7.56.16/live/dvghis.stream', '95050_histroy.jpg', 'History (originally The History Channel from 1995 to 2008) is an American basic cable and satellite television channel that is owned by A+E Networks, a joint venture between the Hearst Corporation and the Disney–ABC Television Group division of The Walt');

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

folder inc - > connection.php
Code:
<?php
    session_start();

    //local db
   
    if($_SERVER['HTTP_HOST']=="localhost")
    {
    $serverIp="localhost";
    $userName="root";
    $password="";
    $dbname="live_tv";
   
    }else
    {
    //Live
    
    $serverIp="localhost";
    $userName="USERNAME";
    $password="PASSWORD";
    $dbname="DATABASENAME";
    }
    $cn=mysql_connect($serverIp,$userName,$password) OR Die("Couldn't Connect - ".mysql_error());
    $link=mysql_select_db($dbname,$cn)or Die("Couldn't SELCECT - ".mysql_error());
   
?>

folder inc - > footer.php
Code:
<p id="footer">All Right Reserved. <a href="http://www.viaviweb.com" target="_blank">VIAVIWEB_M.R.X</a></p>
    </div>
    <!-- // #wrapper -->
</body>
</html>

folder inc - > function.php
Code:
<?php error_reporting(0);
require_once("thumbnail_images.class.php");
class k_wallpaper
{

//Category Query   
    function addCategory()
    {
       
        $albumimgnm=rand(0,99999)."_".$_FILES['image']['name'];
             $pic1=$_FILES['image']['tmp_name'];
              if(!is_dir('images'))
               {
           
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$albumimgnm;
               
                 copy($pic1,$tpath1);
                
                
                        $thumbpath='images/thumbs/'.$albumimgnm;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 100;
                        $obj_img->NewHeight = 100;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
                          else
                          {
                                  
                                $cat_result=mysql_query('INSERT INTO `tbl_category` (`category_name` ,`category_image`) VALUES (  \''.addslashes($_POST['category_name']).'\',\''.$albumimgnm.'\')');
       
                               
                          }

       
    }
   
    function editCategory()
    {
            
            
    if($_FILES['image']['name']=="")
         {
       
        $cat_result=mysql_query('UPDATE `tbl_category` SET `category_name`=\''.addslashes($_POST['category_name']).'\' WHERE cid=\''.$_GET['cat_id'].'\'');

        }
        else
        {
       
            //Image Unlink
           
            $img_res=mysql_query('SELECT * FROM tbl_category WHERE cid=\''.$_GET['cat_id'].'\'');
            $img_row=mysql_fetch_assoc($img_res);
           
            if($img_row['category_image']!="")
            {
                unlink('images/'.$img_row['category_image']);
                unlink('images/thumbs/'.$img_row['category_image']);
            }   
       
            //Image Upload
            $albumimgnm=rand(0,99999)."_".$_FILES['image']['name'];
             $pic1=$_FILES['image']['tmp_name'];
              
       
               if(!is_dir('images'))
               {
           
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$albumimgnm;
               
                 copy($pic1,$tpath1);
                
                
                        $thumbpath='images/thumbs/'.$albumimgnm;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 100;
                        $obj_img->NewHeight = 100;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
                          else
                          {
                                  
                                 $cat_result=mysql_query('UPDATE `tbl_category` SET `category_name`=\''.addslashes($_POST['category_name']).'\',`category_image`=\''.$albumimgnm.'\' WHERE cid=\''.$_GET['cat_id'].'\'');
                           }
        }

    }
   
    function deleteCategory()
    {
       
       
        $channel_res=mysql_query('SELECT * FROM `tbl_channels` WHERE cat_id=\''.$_GET['cat_id'].'\'');
        while($channel_row=mysql_fetch_assoc($channel_res)){
       
            if($channel_row['channel_url']!="")
            {
                $string=$channel_row['channel_url'];
                list($a,$b)=split('channel/',$string);
                unlink('channel/'.$b);
            }
            if($channel_row['channel_thumbnail']!="")
            {
                unlink('images/thumbs/'.$channel_row['channel_thumbnail']);
                unlink('images/'.$channel_row['channel_thumbnail']);
            }
        }
        $channel_result=mysql_query('DELETE FROM `tbl_channels` WHERE cat_id=\''.$_GET['cat_id'].'\'');
       
        $img_res=mysql_query('SELECT * FROM tbl_category WHERE cid=\''.$_GET['cat_id'].'\'');
        $img_row=mysql_fetch_assoc($img_res);
           
            if($img_row['category_image']!="")
            {
                unlink('images/thumbs/'.$img_row['category_image']);
                unlink('images/'.$img_row['category_image']);
                
            }   
       
        $cat_result=mysql_query('DELETE FROM `tbl_category` WHERE cid=\''.$_GET['cat_id'].'\'');
    }


//Image Gallery
    function addchannel()
    {
    if($_POST['channel_url']!="")
    {
   
   
    if($_FILES['thumbnail']['name']!="")   
    {
    $thumbname=rand(0,99999)."_".$_FILES['thumbnail']['name'];
             $thumb1=$_FILES['thumbnail']['tmp_name'];
             if(!is_dir('images'))
               {
           
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$thumbname;
               
                 copy($thumb1,$tpath1);
                
                
                        $thumbpath='images/thumbs/'.$thumbname;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 100;
                        $obj_img->NewHeight = 100;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
    }
     $res=mysql_query('INSERT INTO `tbl_channels` (`cat_id`,`channel_title`,`channel_url`,`channel_thumbnail`,`channel_desc`) VALUES (\''.$_POST['category_id'].'\',\''.$_POST['channel_title'].'\',\''.$_POST['channel_url'].'\',\''.$thumbname.'\',
     \''.addslashes($_POST['channel_description']).'\')');
    }
    }
       
    function editchannel()
    {
    /*    if($_POST['channel_url']="")
    {
        if($_FILES['thumbnail']['name']!="")
    {
        $thumbname=rand(0,99999)."_".$_FILES['thumbnail']['name'];
             $thumb1=$_FILES['thumbnail']['tmp_name'];
             if(!is_dir('images'))
               {
           
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$thumbname;
               
                 copy($thumb1,$tpath1);
                
                
                        $thumbpath='images/thumbs/'.$thumbname;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 72;
                        $obj_img->NewHeight = 72;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
                          $channel_res=mysql_query('SELECT * FROM `tbl_gallery` WHERE id=\''.$_GET['channel_id'].'\'');
                              $channel_row=mysql_fetch_assoc($channel_res);
                              if($channel_row['channel_thumbnail']!="")
                            {
                            unlink('images/thumbs/'.$channel_row['channel_thumbnail']);
                                unlink('images/'.$channel_row['channel_thumbnail']);
                            }
    }
    else
    {
        $channel_res=mysql_query('SELECT * FROM `tbl_gallery` WHERE id=\''.$_GET['channel_id'].'\'');
        $channel_row=mysql_fetch_assoc($channel_res);
        $thumbname=$channel_row['channel_thumbnail'];
       
    }
    $res=mysql_query('UPDATE `tbl_gallery` SET `cat_id`=\''.$_POST['category_id'].'\',`channel_title`=\''.addslashes($_POST['channel_title']).'\',`channel_thumbnail`=\''.$thumbname.'\',`channel_desc`=\''.addslashes($_POST['channel_description']).'\' WHERE id=\''.$_GET['channel_id'].'\'');
    }
    */
    if($_POST['channel_url']!="")
    {
   
    $channel=$_POST["channel_url"];
           
    if($_FILES['thumbnail']['name']!="")
    {
        $thumbname=rand(0,99999)."_".$_FILES['thumbnail']['name'];
             $thumb1=$_FILES['thumbnail']['tmp_name'];
             if(!is_dir('images'))
               {
           
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$thumbname;
               
                 copy($thumb1,$tpath1);
                
                
                        $thumbpath='images/thumbs/'.$thumbname;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 100;
                        $obj_img->NewHeight = 100;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
                          $channel_res=mysql_query('SELECT * FROM `tbl_channels` WHERE id=\''.$_GET['channel_id'].'\'');
                              $channel_row=mysql_fetch_assoc($channel_res);
                              if($channel_row['channel_thumbnail']!="")
                            {
                            unlink('images/thumbs/'.$channel_row['channel_thumbnail']);
                                unlink('images/'.$channel_row['channel_thumbnail']);
                            }
    }
    else
    {
        $channel_res=mysql_query('SELECT * FROM `tbl_channels` WHERE id=\''.$_GET['channel_id'].'\'');
        $channel_row=mysql_fetch_assoc($channel_res);
        $thumbname=$channel_row['channel_thumbnail'];
    }
    $res=mysql_query('UPDATE `tbl_channels` SET `cat_id`=\''.$_POST['category_id'].'\',`channel_title`=\''.addslashes($_POST['channel_title']).'\',`channel_url`=\''.$_POST['channel_url'].'\',`channel_thumbnail`=\''.$thumbname.'\',`channel_desc`=\''.addslashes($_POST['channel_description']).'\' WHERE id=\''.$_GET['channel_id'].'\'');
   
    }
    }
   
    function deletechannel()
    {
            $channel_res=mysql_query('SELECT * FROM `tbl_channels` WHERE id=\''.$_GET['channel_id'].'\'');
            $channel_row=mysql_fetch_assoc($channel_res);
           
            if($channel_row['channel_thumbnail']!="")
            {
                unlink('images/thumbs/'.$channel_row['channel_thumbnail']);
                unlink('images/'.$channel_row['channel_thumbnail']);
            }
            $img_result=mysql_query('DELETE FROM `tbl_channels` WHERE id=\''.$_GET['channel_id'].'\'');
    }   
   
    function editProfile()
{
   
   $res=mysql_query('UPDATE `tbl_admin` SET `username`=\''.$_POST['username'].'\',`password`=\''.$_POST['password'].'\',`email`=\''.$_POST['email'].'\' WHERE id=\''.$_SESSION['id'].'\'');
}   
}
?>

folder inc - > header.php
Code:
<?php include("includes/connection.php");
      include("includes/session_check.php");
     
      //Get file name
      $currentFile = $_SERVER["SCRIPT_NAME"];
      $parts = Explode('/', $currentFile);
      $currentFile = $parts[count($parts) - 1];      
           
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Live Tv Admin</title>

<!-- CSS -->
<link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie6.css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie7.css" /><![endif]-->

<link rel="shortcut icon" href="images/favicon.png" />

<!-- JavaScripts-->
<script type="text/javascript" src="style/js/jquery.js"></script>
<script type="text/javascript" src="style/js/jNice.js"></script>
</head>

<body>
    <div id="wrapper">
        <!-- h1 tag stays for the logo, you can use the a tag for linking the index page -->
        <h1><a href="home.php"><span>Transdmin Light</span></a></h1>
       
        <!-- You can name the links with lowercase, they will be transformed to uppercase by CSS, we prefered to name them with uppercase to have the same effect with disabled stylesheet -->
        <ul id="mainNav">
            <li><a href="home.php" <?php if($currentFile=="home.php"){?>class="active"<?php }?>>DASHBOARD</a></li> <!-- Use the "active" class for the active menu item  -->
            
            <li class="logout"><a href="logout.php">LOGOUT</a></li>
        </ul>
        <!-- // #end mainNav -->
       
        <div id="containerHolder">
            <div id="container">
                <div id="sidebar">
                    <ul class="sideNav">
                        <li><a href="manage_category.php" <?php if($currentFile=="manage_category.php")

folder inc - > session_check.php
Code:
<?php
   
    if(!isset($_SESSION['admin_name']))
    {
        session_destroy();
       
        echo "<script language=javascript type=text/javascript>document.location='index.php';</script>";
    }   
?>


code di atas hanyalah sedikit review dari beberapa cara kerjanya :

source code bisa di DOWNLOAD DIBAWAH INI :
Klik - >
TVLive.


sekian
 

Di codecanyon harganya 22 $ -> di forum saya gratisin ...

untuk tampilan source code di forum ini hanyalah untuk review dari cara kerja dan maksud code ini tersambung .

Menonton TV secara online atau yang biasa disebut live streaming TV bisa dilakukan di berbagai jenis Android, dari Android yang sudah di-root ataupun yang belum .
banyak dev yang berusaha membuat TV online / live ini untuk menghasilkan sebuah pendapatan karena aplikasi semacam ini termasuk yang paling banyak di cari oleh pengguna android pada sekarang ini .

saya hanya membantu meramaikan sub ini juga berguna meramaikan bagi para android developer untuk meramaikan pasar andoid market atau android store , juga mungkin ada teman forum yang sedang mencari bahan untuk skrip.

langsung saja .
untuk link download nya di bawah sendiri ya gan .

oh iya sebelumnya saya rincikan untuk coneksifitas DB sama anjurannya terlebih dulu :

Configrasi DB :

1.Pertama-tama cari folder Livetv_web_services dari paket yang diunduh.
2. Salin folder ini dan tempel di folder htdocs (jika Anda telah menginstal Wampp, masukkan ke www)
3.Kemudian buat database dan impor database dari folder db.
4.Aftre membuat database mengkonfigurasi file koneksi, yang ada di folder include paket Anda.
Code:
$serverIp="localhost";
    $userName="root";
    $password="";
    $dbname="live_tv ";
Itu saja, sekarang jalankan layanan web: http://localhost/Livetv_web_services/index.php

buat folde TV live - > Aset .
index

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Android LiveTv M.R.X</title>
<style>
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 14px;
}
p{
line-height: 20px;
}
</style>
</head>
<body>
    <div align="center" style="color: #000;">
        <p>
            <img src="http://www.viaviweb.com/images/single-logo.jpg"
                title="Viaviweb" />
        </p>
        <p
            style="border-top: solid 1px #000; margin-top: 10px; padding-top: 10px;">Android LiveTv</p>       
        <p>
            <a href="http://www.viaviweb.com"
                style="color: #000; text-decoration: none">http://www.viaviweb.com</a>
        </p>
        <p>Email :- [email protected]</p>
        <p align="justify">Note :-THIS APPLICATION ONLY PROVIDES THE LINKS FOR THE LIVE STREAMING CHANNELS. ALL THE LINKS ARE GATHERED FROM VARIOUS FREELY AVAILABLE WEB SITES.</p>
    </div>
</body>
</html>

buat folde TV live - > bin .
androidmanifest

Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.jakkash.androidlivetv"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="18" />
  
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
    <uses-permission android:name="android.permission.GET_TASKS" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/appicon"
        android:label="@string/app_name"
        android:theme="@style/Theme.Androidlivetv" >
        <activity
            android:name="com.jakkash.androidlivetv.SplashActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
      
        <activity android:name="com.jakkash.androidlivetv.MainActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
        <activity android:name="com.jakkash.androidlivetv.CategoryItem"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
        <activity android:name="com.jakkash.androidlivetv.TvDetails"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
         <activity android:name="com.jakkash.androidlivetv.AboutActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
         <activity
            android:theme="@style/Theme.Sherlock.Light.NoActionBar"
            android:name="com.jakkash.androidlivetv.TvPlay"
            android:screenOrientation="sensorLandscape"          
            android:label="@string/app_name" >
        </activity>
      
        <!-- Jangan lupa InitActivity -->
        <activity
            android:name="io.vov.vitamio.activity.InitActivity"
            android:configChanges="orientation|keyboardHidden|navigation"
            android:launchMode="singleTop"
            android:screenOrientation="sensorLandscape"
            android:theme="@android:style/Theme.NoTitleBar"
            android:windowSoftInputMode="stateAlwaysHidden" />
      
      
        <!-- Kode Awal app code -->
      
           <activity android:name="com.startapp.android.publish.list3d.List3DActivity"
            android:taskAffinity="com.jakkash.androidlivetv.AppWall"
            android:theme="@android:style/Theme" />
       
        <activity android:name="com.startapp.android.publish.AppWallActivity"
                android:theme="@android:style/Theme.Translucent"
                android:taskAffinity="com.jakkash.androidlivetv.AppWall"
                android:configChanges="orientation|keyboardHidden" />
      
        <!-- Kode Akhir -->
      
    
        <!-- Kolom Untuk Admob/iklan -->
        <activity
            android:name="com.google.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />    
    </application>
</manifest>

buat folde TV live - > src .
androidmanifest

Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.jakkash.androidlivetv"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="18" />
  
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
    <uses-permission android:name="android.permission.GET_TASKS" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/appicon"
        android:label="@string/app_name"
        android:theme="@style/Theme.Androidlivetv" >
        <activity
            android:name="com.jakkash.androidlivetv.SplashActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
      
        <activity android:name="com.jakkash.androidlivetv.MainActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
        <activity android:name="com.jakkash.androidlivetv.CategoryItem"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
        <activity android:name="com.jakkash.androidlivetv.TvDetails"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
         <activity android:name="com.jakkash.androidlivetv.AboutActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
         <activity
            android:theme="@style/Theme.Sherlock.Light.NoActionBar"
            android:name="com.jakkash.androidlivetv.TvPlay"
            android:screenOrientation="sensorLandscape"          
            android:label="@string/app_name" >
        </activity>
      
        <!-- InitActivity -->
        <activity
            android:name="io.vov.vitamio.activity.InitActivity"
            android:configChanges="orientation|keyboardHidden|navigation"
            android:launchMode="singleTop"
            android:screenOrientation="sensorLandscape"
            android:theme="@android:style/Theme.NoTitleBar"
            android:windowSoftInputMode="stateAlwaysHidden" />
      
      
        <!--Awal app code -->
      
           <activity android:name="com.startapp.android.publish.list3d.List3DActivity"
            android:taskAffinity="com.jakkash.androidlivetv.AppWall"
            android:theme="@android:style/Theme" />
       
        <activity android:name="com.startapp.android.publish.AppWallActivity"
                android:theme="@android:style/Theme.Translucent"
                android:taskAffinity="com.jakkash.androidlivetv.AppWall"
                android:configChanges="orientation|keyboardHidden" />
      
        <!-- Akhir App code -->
      
      
         <!-- Kolom Untuk Admob/iklan -->
        <activity
            android:name="com.google.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
      
    </application>

</manifest>

NOTE :
actionbarsherlock dan ZI dan InitActivity Library disajikan folder Utama Android Live Tv


class patch
Code:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
    <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
    <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="src" path="gen"/>
    <classpathentry kind="lib" path="libs/StartAppInAppPlus-2.3.jar"/>
    <classpathentry kind="output" path="bin/classes"/>
</classpath>


Project
Code:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>AndroidLiveTv StartApp M.R.X</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.jdt.core.javabuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>com.android.ide.eclipse.adt.ApkBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
        <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>
</projectDescription>


folder documentasi - > index.html
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head lang="en">
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>Android Live TV M.R.X</title>
    <!-- Framework CSS -->
    <link rel="stylesheet" href="assets/blueprint-css/screen.css" type="text/css" media="screen, projection">
    <link rel="stylesheet" href="assets/blueprint-css/print.css" type="text/css" media="print">
    <!--[if lt IE 8]><link rel="stylesheet" href="assets/blueprint-css/ie.css" type="text/css" media="screen, projection"><![endif]-->
    <link rel="stylesheet" href="assets/blueprint-css/plugins/fancy-type/screen.css" type="text/css" media="screen, projection">
    <style type="text/css" media="screen">
        p, table, hr, .box { margin-bottom:25px; }
        .box p { margin-bottom:10px; }
    </style>
</head>


<body>
    <div class="container">
    
        <h3 class="center alt">&ldquo;Android Live TV&rdquo; Documentation by &ldquo;Viavi WebTech-M.R.X&rdquo; v1.0</h3>
        
        <hr>
        
        <h1 class="center">&ldquo;Android Live TV&rdquo;</h1>
        
        <div class="borderTop">
            <div class="span-6 colborder info prepend-1">
                <p class="prepend-top">
                    <strong>
                    Created: 16-April-2019<br>
                    Company: Viavi WebTech-M.R.X<br>

                    </strong>
                </p>
            </div>
            <!-- end div .span-6 -->
            <div class="span-12 last">
                <p class="prepend-top append-0">Terima kasih telah membeli aplikasi. Jika Anda memiliki pertanyaan yang berada di luar cakupan file bantuan ini, jangan ragu untuk mengirim saya pesan melalui formulir kontak halaman pengguna saya <a href="http://M.R.X.team">here</a>. Terima kasih banyak!</p>
            </div>
        </div>

        <!-- end div .borderTop -->
        
        <hr>
        
        <h2 id="toc" class="alt">Table of Contents</h2>
        <ul>
            <li><a href='#eclipseversion'>Which Eclipse version is needed?</a></li>
            <li><a href='#importproject'>How to open the project in Eclipse?</a></li>            
            <li><a href='#packagename'>How to change the package name?</a></li>
            <li><a href='#appname'>How to change app name?</a></li>
            <li><a href='#serverconfig'>How to Configure Webservice In Your Server</a></li>    
            <li><a href='#serverurl'>Where to put Server Url in Application?</a></li>    
            <li><a href='#howtoadd'>How to add category and its items into webservice?</a></li>            
            <li><a href='#admob_id'>How to change AdMob publisher id?</a></li>
            <li><a href='#startapp_id'>How to change StartApp Ad Id/Developer Id?</a></li>            
            <li><a href='#about'>How to change 'About' section?</a></li>        
            <li><a href='#splash'>How to change 'Splash Screen and Application Icon' ?</a></li>        
            <li><a href='#checkchannel'>How to Check Channel Url is Working Properly?</a></li>
             <li><a href="#graphics">Graphics</a></li>            
            <li><a href="#showcase">App Showcase</a></li>
            <li><a href="#rating">Rating</a></li>
<!--
            <li><a href="#changelog">Changelog</a></li>
-->
            <li><a href="#credits">Credits</a></li>
        </ul>
        
        <hr>
        
        
        <h3 id="eclipseversion"><strong>Which Eclipse version is needed?</strong> - <a href="#toc">top</a></h3>
        <p>
            Latest Eclipse version is recommended, which can be downloaded from here:<br />
            <a href='http://developer.android.com/sdk/index.html'>http://developer.android.com/sdk/index.html</a>
        </p> 
        
        <hr>
        
        
        <h3 id="importproject"><strong>How to open the project in Eclipse?</strong> - <a href="#toc">top</a></h3>    
            
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/import_2.png'><img src='assets/images/import_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/import_1.png'><img src='assets/images/import_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        
        
            
        <p>
            <ol>
                <li>Open Eclipse > Import > Android > "Existing Android Code into Worksplace" > Next </li>
                <li>Root Directory > Click Browse button & browse the project folder  > Select all 4 projects 'actionbarsherlock', 'AndroidLiveTV', 'VitamioBundle' & 'ZI'</li>
                <li>After sucessfully importing the app, Right Click 'AndroidLiveTV' project from Package Explorer > Properties > Java Build Path > Order and Export > Check on 'Android Private Libraries' > OK</li>
                <li>Then go to 'Project' Menu > Clean.. > Clean All Projects > OK</li>
                <li>Wait for few minutes until all errors are gone. Ignore any warning appears in 'Problems' tab.</li>
            </ol>
        </p> 
        
        <hr>
        
        
        <h3 id="packagename"><strong>How to change the package name?</strong> - <a href="#toc">top</a></h3>

        <div style='float:right; padding:0 0 20px 20px; width:400px;'>
        
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_1.png'><img src='assets/images/packagename_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_2.png'><img src='assets/images/packagename_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_3.png'><img src='assets/images/packagename_3.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_4.png'><img src='assets/images/packagename_4.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
            
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_5.png'><img src='assets/images/packagename_5.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        </div>
        
        <p>
            You can change it easily from Eclipse. Here are the steps: 
            <ul>
                <li>Right Cilck 'AndroidLiveTV' project from Package Explorer > Android Tools > Rename Application Package > Finish.</li>
                <li>Refactroing dailog present and click Finish</li>
                <li>Package Name Changed in AndroidMainfest.xml but not in Application Package hierarchy so select Package name Right Click >
                Go to Refactor > Rename >Enter Package Name > Finish</li>
            </ul>            
        </p> 
        
        <hr>
        
        
        <h3 id="appname"><strong>How to change app name?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/appname_3.png'><img src='assets/images/appname_3.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/appname_2.png'><img src='assets/images/appname_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/appname_1.png'><img src='assets/images/appname_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <p>
            <ol>
                <li>Open Eclipse >Android Live TV> res > values > strings.xml</li>
                <li>Select 'strings.xml' tab next to 'Resources' tab</li>
                <li>Enter your app name inside <b>"app_name"</b> string tag:<br /><code>&lt;string name="app_name"&gt;<b>Android Live TV</b>&lt;/string&gt;</code></li>
                <li>if you want change Project name also then >Right Cilck 'AndroidLiveTV' project from Package Explorer >Refactor > Rename >Enter Application Name > Finish</li>
            </ol>
            This will change both title inside the app & app icon name.
        </p> 
        
        <hr>
        
        
        
        <h3 id="serverconfig"><strong>How to Configure Webservice In Your Server?</strong> - <a href="#toc">top</a></h3>
        <div style='float:right; padding:0 0 20px 20px'><iframe width="420" height="345" src="http://www.youtube.com/embed/L0IvojaAllI" style='border:1px solid #aaa'></iframe></div>    
        
        <p>
            <ol>
                <li>First of all find the  Livetv_web_services  folder from the downloaded package.</li>
                <li>Copy these folder and paste it in the htdocs  folder(if you have Wampp installed then put it into www)</li>
                <li>Then create a database and import the database from the db folder.</li>
                <li>4.Aftre creating database configure the connection file,which is in the includes folder of your package.<br>

                    <b>$serverIp="localhost"; <br> 
                    $userName="root";<br>
                    $password="";<br>
                    $dbname="live_tv ";<br></b>
    
                That’s all,now run the webservice : <b>http://localhost/Livetv_web_services/index.php</b>
                for <b>Live set up </b>Follow the video tutorial ahead.
</li>
            </ol>
            
        </p> 
        
        
        <hr>

    <h3 id="serverurl"><strong>Where to put Server Url in Application?</strong> - <a href="#toc">top</a></h3>
    
    <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/serverurl_1.png'><img src='assets/images/serverurl_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
    
    <p>
            <ol>
                <li>Select Project > go to com.example.util package > Constant.java Class</li>
                <li> Open Constant.java</li>
                <li> now if your Sever is http://abc.com so your service url like that <b>http://abc.com/api.php</b> and </br><b>http://abc.com/api.php?cat_id=</b> and image path <b>http://abc.com/images</b></li>
                
            </ol>
            </p>
    
    <hr>
    
        <h3 id="howtoadd"><strong>How to add category and its items into webservice?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px; width:400px;'>
        
            <div style="float:left; margin:2px 5px;"><a href='assets/images/howtoadd_1.png'><img src='assets/images/howtoadd_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
            <div style="float:left; margin:2px 5px;"><a href='assets/images/howtoadd_2.png'><img src='assets/images/howtoadd_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
            <div style="float:left; margin:2px 5px;"><a href='assets/images/howtoadd_3.png'><img src='assets/images/howtoadd_3.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
            <div style="float:left; margin:2px 5px;"><a href='assets/images/howtoadd_4.png'><img src='assets/images/howtoadd_4.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
            
             
        </div>
            
        <p>
        open your admin panel</br>
        <b>Now we first uploaded category.</b>]
        <ol>
            <li>Go to Manage category.</li>
            <li>Right Side Press Add category.</li>
            <li>Enter Category Name. </li>
            <li>Choose image of category.</li>
        </ol>
        
        <b>Now we enter the item of that category.</b>
        <ol>
            <li>Go to Channel List</li>
            <li>right side press Add Channel</li>
            <li>then select category</li>
            <li>enter Name and Channel url,Description and Submit</li>
             
        </ol>
        </p>
        <hr>
    
        
        <h3 id="admob_id"><strong>How to change AdMob publisher id?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/admobid.png'><img src='assets/images/admobid.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
        <p>
            <ol>
                <li>Open Eclipse > AndroidLiveTV > res > values > strings.xml</li>
                <li>Select 'strings.xml' tab next to 'Resources' tab</li>
                <li>Enter your AdMob publisher id inside <b>"admob_publisher_id"</b> string tag:<br /><code>&lt;string name="admob_publisher_id"&gt;<b>Your AdMob ID Here</b>&lt;/string&gt;</code></li>
                
            </ol>
        </p> 
        <hr>
        
        
        
        <h3 id="startapp_id"><strong>How to change StartApp Ad Id/Developer Id?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/startapp_2.png'><img src='assets/images/startapp_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/startapp_1.png'><img src='assets/images/startapp_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <p>
            <ol>
                <li>Open Eclipse > AndroidLiveTV > res > values > strings.xml</li>
                <li>Select 'strings.xml' tab next to 'Resources' tab</li>
                <li>Enter your StartApp Application id inside <b>"startapp_app_id"</b> string tag:<br /><code>&lt;string name="startapp_app_id"&gt;<b>Your StartApp Application ID</b>&lt;/string&gt;</code></li>
                <li>Enter your StartApp Developer id inside <b>"startapp_dev_id"</b> string tag:<br /><code>&lt;string name="startapp_dev_id"&gt;<b>Your StartApp Developer ID</b>&lt;/string&gt;</code></li>
                <li>Open AndroidMainfiest.xml > Change in Startapp Code</li>
            </ol>
        </p> 
        
        <hr>
        
        
        
        <h3 id="about"><strong>How to change 'About' section?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/about.png'><img src='assets/images/about.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
        <p>
            <ol>
                <li>Go to: Eclipse > AndroidLiveTV > assets >index.html</li>
                <li>Right click index.html > Open With > Text Editor</li>
                <li>It will open into a text editor inside Eclipse, make your necessary changes & save</li>
            </ol>
             
        </p> 
    <hr>
    
    <h3 id="splash"><strong>How to change 'Splash Screen and Application Icon' ?</strong> - <a href="#toc">top</a></h3>
    
    <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/appicon.png'><img src='assets/images/appicon.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
    <p>
        <b>How To Change Application Icon</b>
        <ol>
            <li>Open Eclipse > AndroidLiveTV > res > drawable-mdpi > appicon.png</li>
            <li>Rename your icon with appicon.png and paste in drawable-mdpi folder</li>
        </ol>
        
        <b>How To Change Splash Screen</b>
        <ol>
            <li>Open Eclipse > AndroidLiveTV > res > drawable > splash.png</li>
            <li>Rename your splash screen image  with splash.png and paste in drawable folder</li>
        </ol>
        
    </p>
    
    <hr>
        
        <h3 id="checkchannel"><strong>How to Check Channel Url is Working Properly?</strong> - <a href="#toc">top</a></h3>
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/vlc_check_3.png'><img src='assets/images/vlc_check_3.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/vlc_check_2.png'><img src='assets/images/vlc_check_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/vlc_check_1.png'><img src='assets/images/vlc_check_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        
        <p>
        There are lots of channel list available in internet but some them not work properly,So here is method how to check that channel is working or not?
            <ol>
                <li>Open VLC Media Player > Media > Open Network Stream..(Ctrl+N) > 3rd Tab Network >Enter Channel url</li>
                <li>If Channel Working Properly Then its Play otherwise its give error dialog</li>
                <li>if channel not play in VLC that channel aslo not play in device</li>
                 
            </ol>
        </p> 
        
        <hr>
        
        <h3 id="graphics"><strong>Graphics</strong> - <a href="#toc">top</a></h3>
        
        <p>You will find all image into /res/drawable-mdpi/,/res/drawable-hdpi/,/res/drawable-xhdpi/ folder. Just create your own graphics and replace those files. Create seperate graphics of different device screen sizes & place them into other drawble folders (drawable-hdpi & drawable-xhdpi) with same file name found at drawable-mdpi folder.  Check here for more information: <a href='http://developer.android.com/design/style/devices-displays.html'>Devices and Displays</a> & <a href='http://developer.android.com/guide/practices/screens_support.html'>Supporting Multiple Screens</a>.</p>
        
        <hr>
        
        
        
        <h3 id="showcase"><strong>App Showcase</strong> - <a href="#toc">top</a></h3>
        
        <p>Once you will publish your app to Google Play or any other Android store, send us your app link. We will happy to showcase your app into our website & CodeCanyon page.</p> 
        
        <hr>
        
        
        
        <h3 id="rating"><strong>Rating</strong> - <a href="#toc">top</a></h3>
        
        <p>If you like our app, we will highly appreciate if you can provide us a rating of 5. You can rate us from your CodeCanyon Menu > Download page.</p> 
        
        <hr>
        
        
        <h3 id="credits"><strong>Credits</strong> - <a href="#toc">top</a></h3>
        
        <p>I've used folowing sources into this app:
        
        <ul>
            <li><a href='http://www.vitamio.org/en/'>Vitamio SDK</a> for video playback. The SDK is free for individual developers. Otherwise you might need to purchase the license before using it. <a href='http://www.vitamio.org/en/License/'>Check here</a> for license information.</li>            
            <li><a href='http://actionbarsherlock.com/'>ActionBarSherlock</a></li>
                        
        </ul>
        
        <hr>
        
        
        
        <p>Once again, thank you so much for purchasing this app. As I said at the beginning, I'd be glad to help you if you have any questions relating to this app. No guarantees, but I'll do my best to assist. If you have a more general question relating to the apps on CodeCanyon, you might consider visiting the "FAQ / Support" section and asking your question in the "Comments" section at CodeCanyon app detail page.</p> 
        
        <p class="append-bottom alt large"><strong>M.R.X_isc</strong><br /><strong><a href='http://www.viavi.in'>Viavi WebTech-M.R.X</a></strong></p>

        <p><a href="#toc">Go To Table of Contents</a></p>
        
        <hr class="space">
    </div><!-- end div .container -->
</body>
</html>


DB = live_TV.sql
Code:
- phpMyAdmin SQL Dump
- versi 4.1.8
- http://www.phpmyadmin.net
-
- Host: localhost
- Waktu Pembuatan: 16 April 2019 pukul 16:43
- Versi server: 5.1.73-cll
- Versi PHP: 5.4.23

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `viaviw56_live_tv`
--

-- --------------------------------------------------------

--
-- Struktur tabel untuk tabel `tbl_admin`
--
CREATE TABLE IF NOT EXISTS `tbl_admin` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(100) NOT NULL,
  `password` varchar(100) NOT NULL,
  `email` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- dumping data untuk tabel `tbl_admin`
--

INSERT INTO `tbl_admin` (`id`, `username`, `password`, `email`) VALUES
(1, 'admin', 'adminq1w2', '[email protected]');

-- --------------------------------------------------------

--
-- Struktur tabel untuk tabel `tbl_category`
--

CREATE TABLE IF NOT EXISTS `tbl_category` (
  `cid` int(11) NOT NULL AUTO_INCREMENT,
  `category_name` varchar(255) NOT NULL,
  `category_image` varchar(255) NOT NULL,
  PRIMARY KEY (`cid`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;

--
-- Dumping data untuk table `tbl_category`
--
INSERT INTO `tbl_category` (`cid`, `category_name`, `category_image`) VALUES
(3, 'News Channel', '18290_news.png'),
(5, 'Movie Channels', '34114_movie.png'),
(6, 'Science Channel', '93817_science.png'),
(7, 'Music Channel', '78220_Music.png');

-- --------------------------------------------------------

--
-- Table structure untuk tabel `tbl_channels`
--

CREATE TABLE IF NOT EXISTS `tbl_channels` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `cat_id` int(11) NOT NULL,
  `channel_title` varchar(100) NOT NULL,
  `channel_url` varchar(255) NOT NULL,
  `channel_thumbnail` varchar(255) NOT NULL,
  `channel_desc` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=45 ;

--
-- Dumping data untuk tabel `tbl_channels`
--

INSERT INTO `tbl_channels` (`id`, `cat_id`, `channel_title`, `channel_url`, `channel_thumbnail`, `channel_desc`) VALUES
(16, 3, 'Aaj Tak', 'rtsp://46.249.213.87:554/playlists/aajtak_hvga.hpl.3gp ', '55293_aajtak.jpg', 'Aaj Tak is a 24-hour Hindi news television channel owned by TV Today Network Ltd.. Aaj Tak loosely translates as "Till Today" or "Up to the Minute". In India, Aaj Tak is a free-to-air channel\r\n\r\nAaj Tak has won the Indian Television Academy Award for Best'),
(17, 3, 'India TV ', 'rtsp://46.249.213.93:554/playlists/india-tv_hvga.hpl.3gp ', '51855_india_tv.jpg', 'India TV is a Hindi news channel based in Noida, Uttar Pradesh, India. The channel was launched on May 20, 2004 just 2 days before BJP''s tenure in government was ending (On 22nd May 2004) by Rajat Sharma and wife Ritu Dhawan.The channel is the flagship se'),
(18, 3, 'NDTV Profit ', 'http://bglive-a.bitgravity.com/ndtv/prolo/live/native', '8803_ndtvprofit.jpg', 'NDTV Profit is a business news channel started by New Delhi Television in January 2005\r\nIt has a large number of journalists covering the action from the Bombay Stock Exchange (BSE) and the National Stock Exchange of India (NSE). Furthermore, it also cove'),
(19, 3, 'NDTV', 'http://bglive-a.bitgravity.com/ndtv/247hi/live/native', '39936_ndtv_india.jpg', 'New Delhi Television Limited (NDTV) is an Indian commercial broadcasting television network founded in 1988 by Radhika Roy and Prannoy Roy. NDTV is an acronym for the original name of the company, New Delhi Television. Vikramaditya Chandra is the Chief Ex'),
(20, 3, 'Sahara Samay', 'rtsp://cdn.m.yupptv.tv/liveorigin/saharasamaynew1', '66427_Sahara_Samay_National.jpg', 'This is news channel owner of sahara group'),
(21, 3, 'CNBC TV', 'rtsp://202.159.213.30:554/cnbctv18_mobC.sdp?token=923152409036', '73548_cnbc_tv18.jpg', 'This is news Channel Related to Stock Market.'),
(22, 3, 'CNBC Awaaz', 'rtsp://202.159.213.30:554/cnbcawaaz_mobC.sdp?token=923152409036', '78629_cnbc_awaaz.jpg', 'CNBC Awaaz is a Hindi business news TV channel in India. The channel is a joint venture between CNBC and Television Eighteen India Limited (TV18) based in New Delhi.'),
(23, 3, 'Channel 9', 'http://72.46.226.53/live01/_definst_/canal91/playlist.m3u8', '38561_channel9_bd.jpg', 'Channel 9 broadcasts in color, but -as well as many other TV channels outside Buenos Aires- it has monophonic sound only.'),
(24, 3, 'Lemon News', 'http://tata.live.cdn.bitgravity.com/lemon/live/feed01', '2492_lemonnews.jpg', 'This is Indain News Channel'),
(25, 3, 'HMTV ', 'rtsp://cdn.m.yuppcdn.net/liveorigin/hmtv2', '68619_hmtv.jpg', 'HMTV is a 24-hour Telugu news channel. It is owned by Hyderabad Media House Ltd. The Chief editor of the channel is K. Ramachandra Murthy, a Senior Telugu Editor and Journalist who worked with Andhra Jyothi, Vartha, Udayam news papers for many years.'),
(26, 3, 'ETV ', 'http://cdn.m.yuppcdn.net/liveorigin/smil:etv2.smil/hasbahca.m3u8', '57389_etv.jpg', 'ETV Regional Channels, bouquet of 12 regional channels are source of rich infotainment to audiences in the language of their choice'),
(27, 3, 'Zee News', 'rtsp://202.159.213.30:554/zeenews_mobC.sdp?token=923152409036', '8082_zeenews.jpg', 'Zee News is an Indian news and current affairs channel founded in 1999. It is owned by Zee News Ltd. Initially, most of the programs were broadcast in English.Zee News was converted into a complete Hindi news channel.'),
(28, 3, 'DD National', 'rtsp://202.159.213.30:554/ddnational_mobC.sdp?token=923152409036', '43557_ddnational.jpg', 'DD National (DD1) is a state-owned general interest terrestrial television channel in India. It is the flagship channel of Doordarshan, the Indian public service broadcasting corporation, and the most widely available terrestrial television channel in Ind'),
(29, 5, 'Cartoon Network', 'rtmp://103.7.56.16:1935/live/dfrcar.stream', '5348_cn.jpeg', 'Cartoon Network (CN) is an American basic cable and satellite television channel that is owned by the Turner Broadcasting System division of Time Warner. The channel airs mainly animated programming, ranging from action to animated comedy, along with some'),
(30, 5, 'Sab Tv', 'rtsp://46.249.213.93:554/playlists/sonysabtv_hvga.hpl.3gp', '19253_sab.jpg', 'The channel was launched on April 23, 2000 by Sri Adhikari Brothers as a general entertainment channel. In 2003, it was repositioned as a comedy-centric channel. In March 2005, SAB TV was acquired by Sony Entertainment Television and was transformed into '),
(31, 5, 'Zing Tv', 'rtsp://217.146.95.166:554/live/ch28zqcif.3gp', '82595_zing.jpg', 'Zing, formerly known as Zee Muzic and Music Asia, is an India-based satellite music television channel owned by Zee Entertainment Enterprises, which carries broadcasts in Hindi and other regional languages of India. As well as broadcasting in South Asia, '),
(32, 5, 'Fashion Tv', 'http://edgeb.streaming.sk/fashiontv/fashiontv.stream/playlist_b125000_w304569164.m3u8?', '25996_fashion.jpg', 'FashionTV is an international fashion and lifestyle broadcasting television channel. Founded in France in 1997 by its Polish-born president Michel Adam Lisowski, FashionTV has become one of the most widely distributed satellite channels in the world: 31 s'),
(33, 5, 'Zee Cafe', 'rtsp://202.159.213.30:554/zeecafe_mobC.sdp?token=923152409036', '74174_Zee_Cafe_2005.jpg', 'Zee Café is an Indian English-hindi language cable and satellite television channel owned by Zee Entertainment Enterprises, a subsidiary of the Essel Group'),
(34, 5, 'Colors Tv', 'rtsp://202.159.213.30:554/colors_mobC.sdp?token=923152409036', '44649_Colors_TV.jpg', 'Colors, known as Aapka Colors in the United States and Canada, is a Hindi language Indian general entertainment channel based in Mumbai, part of the Viacom 18 family, which was launched on July 21, 2008.\r\n'),
(35, 5, 'Sony Tv', 'rtsp://202.159.213.30:554/sony_mobC.sdp?tokan=923152409036', '21027_sony.jpg', 'Sony Entertainment Television or SET, is a Hindi-language based general entertainment television channel in India. It was launched in October 1995 and is owned by Multi Screen Media Pvt. Ltd. (MSM, formerly SET India Private Limited), a subsidiary of Sony'),
(36, 5, 'Zee TV', 'rtsp://202.159.213.30:554/zeetv_mobC.sdp?tokan=923152409036', '94982_zee_network.jpg', 'Zee TV is an Indian cable and satellite television channel owned and operated by Zee Entertainment Enterprises, a media and entertainment company based in Mumbai.  It primarily airs programmes in Hindi and other regional languages of India. The channel is'),
(40, 7, 'Indie Music', 'rtsp://46.249.213.87:554/playlists/imtv_hvga.hpl.3gp ', '11557_indie.jpg', 'This Music channel based on Hindi Movie'),
(41, 7, 'Hungama Tv', 'rtsp://46.249.213.87:554/playlists/bollywood-hits_hvga.hpl.3gp ', '66056_Hungama_TV.jpg', 'This Music channel based on Hindi Movie'),
(42, 6, 'National Geographic', 'rtmp://103.7.56.16/live/fdgngo.stream', '70628_national_geo.jpg', 'National Geographic Channel (also commercially abbreviated and trademarked as Nat Geo) is an American digital cable and satellite television channel that is owned by the National Geographic Society and the Fox Cable Networks division of 21st Century Fox\r\n'),
(43, 6, ' Discovery Channel', 'rtmp://103.7.56.16:1935/live/rdddis.stream', '46708_discovrey.jpg', 'The Discovery Channel began broadcasting on June 17, 1985. It was initially available to 156,000 households and broadcast for 12 hours each day between 3 p.m. and 3 a.m. About 75 percent of its program content had never been broadcast on U.S. television b'),
(44, 6, 'History Tv', 'rtmp://103.7.56.16/live/dvghis.stream', '95050_histroy.jpg', 'History (originally The History Channel from 1995 to 2008) is an American basic cable and satellite television channel that is owned by A+E Networks, a joint venture between the Hearst Corporation and the Disney–ABC Television Group division of The Walt');

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

folder inc - > connection.php
Code:
<?php
    session_start();

    //local db
  
    if($_SERVER['HTTP_HOST']=="localhost")
    {
    $serverIp="localhost";
    $userName="root";
    $password="";
    $dbname="live_tv";
  
    }else
    {
    //Live
   
    $serverIp="localhost";
    $userName="USERNAME";
    $password="PASSWORD";
    $dbname="DATABASENAME";
    }
    $cn=mysql_connect($serverIp,$userName,$password) OR Die("Couldn't Connect - ".mysql_error());
    $link=mysql_select_db($dbname,$cn)or Die("Couldn't SELCECT - ".mysql_error());
  
?>

folder inc - > footer.php
Code:
<p id="footer">All Right Reserved. <a href="http://www.viaviweb.com" target="_blank">VIAVIWEB_M.R.X</a></p>
    </div>
    <!-- // #wrapper -->
</body>
</html>

folder inc - > function.php
Code:
<?php error_reporting(0);
require_once("thumbnail_images.class.php");
class k_wallpaper
{

//Category Query  
    function addCategory()
    {
      
        $albumimgnm=rand(0,99999)."_".$_FILES['image']['name'];
             $pic1=$_FILES['image']['tmp_name'];
              if(!is_dir('images'))
               {
          
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$albumimgnm;
              
                 copy($pic1,$tpath1);
               
               
                        $thumbpath='images/thumbs/'.$albumimgnm;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 100;
                        $obj_img->NewHeight = 100;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
                          else
                          {
                                 
                                $cat_result=mysql_query('INSERT INTO `tbl_category` (`category_name` ,`category_image`) VALUES (  \''.addslashes($_POST['category_name']).'\',\''.$albumimgnm.'\')');
      
                              
                          }

      
    }
  
    function editCategory()
    {
           
           
    if($_FILES['image']['name']=="")
         {
      
        $cat_result=mysql_query('UPDATE `tbl_category` SET `category_name`=\''.addslashes($_POST['category_name']).'\' WHERE cid=\''.$_GET['cat_id'].'\'');

        }
        else
        {
      
            //Image Unlink
          
            $img_res=mysql_query('SELECT * FROM tbl_category WHERE cid=\''.$_GET['cat_id'].'\'');
            $img_row=mysql_fetch_assoc($img_res);
          
            if($img_row['category_image']!="")
            {
                unlink('images/'.$img_row['category_image']);
                unlink('images/thumbs/'.$img_row['category_image']);
            }  
      
            //Image Upload
            $albumimgnm=rand(0,99999)."_".$_FILES['image']['name'];
             $pic1=$_FILES['image']['tmp_name'];
             
      
               if(!is_dir('images'))
               {
          
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$albumimgnm;
              
                 copy($pic1,$tpath1);
               
               
                        $thumbpath='images/thumbs/'.$albumimgnm;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 100;
                        $obj_img->NewHeight = 100;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
                          else
                          {
                                 
                                 $cat_result=mysql_query('UPDATE `tbl_category` SET `category_name`=\''.addslashes($_POST['category_name']).'\',`category_image`=\''.$albumimgnm.'\' WHERE cid=\''.$_GET['cat_id'].'\'');
                           }
        }

    }
  
    function deleteCategory()
    {
      
      
        $channel_res=mysql_query('SELECT * FROM `tbl_channels` WHERE cat_id=\''.$_GET['cat_id'].'\'');
        while($channel_row=mysql_fetch_assoc($channel_res)){
      
            if($channel_row['channel_url']!="")
            {
                $string=$channel_row['channel_url'];
                list($a,$b)=split('channel/',$string);
                unlink('channel/'.$b);
            }
            if($channel_row['channel_thumbnail']!="")
            {
                unlink('images/thumbs/'.$channel_row['channel_thumbnail']);
                unlink('images/'.$channel_row['channel_thumbnail']);
            }
        }
        $channel_result=mysql_query('DELETE FROM `tbl_channels` WHERE cat_id=\''.$_GET['cat_id'].'\'');
      
        $img_res=mysql_query('SELECT * FROM tbl_category WHERE cid=\''.$_GET['cat_id'].'\'');
        $img_row=mysql_fetch_assoc($img_res);
          
            if($img_row['category_image']!="")
            {
                unlink('images/thumbs/'.$img_row['category_image']);
                unlink('images/'.$img_row['category_image']);
               
            }  
      
        $cat_result=mysql_query('DELETE FROM `tbl_category` WHERE cid=\''.$_GET['cat_id'].'\'');
    }


//Image Gallery
    function addchannel()
    {
    if($_POST['channel_url']!="")
    {
  
  
    if($_FILES['thumbnail']['name']!="")  
    {
    $thumbname=rand(0,99999)."_".$_FILES['thumbnail']['name'];
             $thumb1=$_FILES['thumbnail']['tmp_name'];
             if(!is_dir('images'))
               {
          
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$thumbname;
              
                 copy($thumb1,$tpath1);
               
               
                        $thumbpath='images/thumbs/'.$thumbname;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 100;
                        $obj_img->NewHeight = 100;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
    }
     $res=mysql_query('INSERT INTO `tbl_channels` (`cat_id`,`channel_title`,`channel_url`,`channel_thumbnail`,`channel_desc`) VALUES (\''.$_POST['category_id'].'\',\''.$_POST['channel_title'].'\',\''.$_POST['channel_url'].'\',\''.$thumbname.'\',
     \''.addslashes($_POST['channel_description']).'\')');
    }
    }
      
    function editchannel()
    {
    /*    if($_POST['channel_url']="")
    {
        if($_FILES['thumbnail']['name']!="")
    {
        $thumbname=rand(0,99999)."_".$_FILES['thumbnail']['name'];
             $thumb1=$_FILES['thumbnail']['tmp_name'];
             if(!is_dir('images'))
               {
          
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$thumbname;
              
                 copy($thumb1,$tpath1);
               
               
                        $thumbpath='images/thumbs/'.$thumbname;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 72;
                        $obj_img->NewHeight = 72;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
                          $channel_res=mysql_query('SELECT * FROM `tbl_gallery` WHERE id=\''.$_GET['channel_id'].'\'');
                              $channel_row=mysql_fetch_assoc($channel_res);
                              if($channel_row['channel_thumbnail']!="")
                            {
                            unlink('images/thumbs/'.$channel_row['channel_thumbnail']);
                                unlink('images/'.$channel_row['channel_thumbnail']);
                            }
    }
    else
    {
        $channel_res=mysql_query('SELECT * FROM `tbl_gallery` WHERE id=\''.$_GET['channel_id'].'\'');
        $channel_row=mysql_fetch_assoc($channel_res);
        $thumbname=$channel_row['channel_thumbnail'];
      
    }
    $res=mysql_query('UPDATE `tbl_gallery` SET `cat_id`=\''.$_POST['category_id'].'\',`channel_title`=\''.addslashes($_POST['channel_title']).'\',`channel_thumbnail`=\''.$thumbname.'\',`channel_desc`=\''.addslashes($_POST['channel_description']).'\' WHERE id=\''.$_GET['channel_id'].'\'');
    }
    */
    if($_POST['channel_url']!="")
    {
  
    $channel=$_POST["channel_url"];
          
    if($_FILES['thumbnail']['name']!="")
    {
        $thumbname=rand(0,99999)."_".$_FILES['thumbnail']['name'];
             $thumb1=$_FILES['thumbnail']['tmp_name'];
             if(!is_dir('images'))
               {
          
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$thumbname;
              
                 copy($thumb1,$tpath1);
               
               
                        $thumbpath='images/thumbs/'.$thumbname;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 100;
                        $obj_img->NewHeight = 100;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
                          $channel_res=mysql_query('SELECT * FROM `tbl_channels` WHERE id=\''.$_GET['channel_id'].'\'');
                              $channel_row=mysql_fetch_assoc($channel_res);
                              if($channel_row['channel_thumbnail']!="")
                            {
                            unlink('images/thumbs/'.$channel_row['channel_thumbnail']);
                                unlink('images/'.$channel_row['channel_thumbnail']);
                            }
    }
    else
    {
        $channel_res=mysql_query('SELECT * FROM `tbl_channels` WHERE id=\''.$_GET['channel_id'].'\'');
        $channel_row=mysql_fetch_assoc($channel_res);
        $thumbname=$channel_row['channel_thumbnail'];
    }
    $res=mysql_query('UPDATE `tbl_channels` SET `cat_id`=\''.$_POST['category_id'].'\',`channel_title`=\''.addslashes($_POST['channel_title']).'\',`channel_url`=\''.$_POST['channel_url'].'\',`channel_thumbnail`=\''.$thumbname.'\',`channel_desc`=\''.addslashes($_POST['channel_description']).'\' WHERE id=\''.$_GET['channel_id'].'\'');
  
    }
    }
  
    function deletechannel()
    {
            $channel_res=mysql_query('SELECT * FROM `tbl_channels` WHERE id=\''.$_GET['channel_id'].'\'');
            $channel_row=mysql_fetch_assoc($channel_res);
          
            if($channel_row['channel_thumbnail']!="")
            {
                unlink('images/thumbs/'.$channel_row['channel_thumbnail']);
                unlink('images/'.$channel_row['channel_thumbnail']);
            }
            $img_result=mysql_query('DELETE FROM `tbl_channels` WHERE id=\''.$_GET['channel_id'].'\'');
    }  
  
    function editProfile()
{
  
   $res=mysql_query('UPDATE `tbl_admin` SET `username`=\''.$_POST['username'].'\',`password`=\''.$_POST['password'].'\',`email`=\''.$_POST['email'].'\' WHERE id=\''.$_SESSION['id'].'\'');
}  
}
?>

folder inc - > header.php
Code:
<?php include("includes/connection.php");
      include("includes/session_check.php");
    
      //Get file name
      $currentFile = $_SERVER["SCRIPT_NAME"];
      $parts = Explode('/', $currentFile);
      $currentFile = $parts[count($parts) - 1];     
          
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Live Tv Admin</title>

<!-- CSS -->
<link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie6.css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie7.css" /><![endif]-->

<link rel="shortcut icon" href="images/favicon.png" />

<!-- JavaScripts-->
<script type="text/javascript" src="style/js/jquery.js"></script>
<script type="text/javascript" src="style/js/jNice.js"></script>
</head>

<body>
    <div id="wrapper">
        <!-- h1 tag stays for the logo, you can use the a tag for linking the index page -->
        <h1><a href="home.php"><span>Transdmin Light</span></a></h1>
      
        <!-- You can name the links with lowercase, they will be transformed to uppercase by CSS, we prefered to name them with uppercase to have the same effect with disabled stylesheet -->
        <ul id="mainNav">
            <li><a href="home.php" <?php if($currentFile=="home.php"){?>class="active"<?php }?>>DASHBOARD</a></li> <!-- Use the "active" class for the active menu item  -->
           
            <li class="logout"><a href="logout.php">LOGOUT</a></li>
        </ul>
        <!-- // #end mainNav -->
      
        <div id="containerHolder">
            <div id="container">
                <div id="sidebar">
                    <ul class="sideNav">
                        <li><a href="manage_category.php" <?php if($currentFile=="manage_category.php")

folder inc - > session_check.php
Code:
<?php
  
    if(!isset($_SESSION['admin_name']))
    {
        session_destroy();
      
        echo "<script language=javascript type=text/javascript>document.location='index.php';</script>";
    }  
?>


code di atas hanyalah sedikit review dari beberapa cara kerjanya :

source code bisa di DOWNLOAD DIBAWAH INI :
Klik - >
TVLive.


sekian
Keren bos...mana free lagi
 

Di codecanyon harganya 22 $ -> di forum saya gratisin ...

untuk tampilan source code di forum ini hanyalah untuk review dari cara kerja dan maksud code ini tersambung .

Menonton TV secara online atau yang biasa disebut live streaming TV bisa dilakukan di berbagai jenis Android, dari Android yang sudah di-root ataupun yang belum .
banyak dev yang berusaha membuat TV online / live ini untuk menghasilkan sebuah pendapatan karena aplikasi semacam ini termasuk yang paling banyak di cari oleh pengguna android pada sekarang ini .

saya hanya membantu meramaikan sub ini juga berguna meramaikan bagi para android developer untuk meramaikan pasar andoid market atau android store , juga mungkin ada teman forum yang sedang mencari bahan untuk skrip.

langsung saja .
untuk link download nya di bawah sendiri ya gan .

oh iya sebelumnya saya rincikan untuk coneksifitas DB sama anjurannya terlebih dulu :

Configrasi DB :

1.Pertama-tama cari folder Livetv_web_services dari paket yang diunduh.
2. Salin folder ini dan tempel di folder htdocs (jika Anda telah menginstal Wampp, masukkan ke www)
3.Kemudian buat database dan impor database dari folder db.
4.Aftre membuat database mengkonfigurasi file koneksi, yang ada di folder include paket Anda.
Code:
$serverIp="localhost";
    $userName="root";
    $password="";
    $dbname="live_tv ";
Itu saja, sekarang jalankan layanan web: http://localhost/Livetv_web_services/index.php

buat folde TV live - > Aset .
index

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Android LiveTv M.R.X</title>
<style>
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 14px;
}
p{
line-height: 20px;
}
</style>
</head>
<body>
    <div align="center" style="color: #000;">
        <p>
            <img src="http://www.viaviweb.com/images/single-logo.jpg"
                title="Viaviweb" />
        </p>
        <p
            style="border-top: solid 1px #000; margin-top: 10px; padding-top: 10px;">Android LiveTv</p>       
        <p>
            <a href="http://www.viaviweb.com"
                style="color: #000; text-decoration: none">http://www.viaviweb.com</a>
        </p>
        <p>Email :- [email protected]</p>
        <p align="justify">Note :-THIS APPLICATION ONLY PROVIDES THE LINKS FOR THE LIVE STREAMING CHANNELS. ALL THE LINKS ARE GATHERED FROM VARIOUS FREELY AVAILABLE WEB SITES.</p>
    </div>
</body>
</html>

buat folde TV live - > bin .
androidmanifest

Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.jakkash.androidlivetv"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="18" />
  
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
    <uses-permission android:name="android.permission.GET_TASKS" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/appicon"
        android:label="@string/app_name"
        android:theme="@style/Theme.Androidlivetv" >
        <activity
            android:name="com.jakkash.androidlivetv.SplashActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
      
        <activity android:name="com.jakkash.androidlivetv.MainActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
        <activity android:name="com.jakkash.androidlivetv.CategoryItem"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
        <activity android:name="com.jakkash.androidlivetv.TvDetails"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
         <activity android:name="com.jakkash.androidlivetv.AboutActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
         <activity
            android:theme="@style/Theme.Sherlock.Light.NoActionBar"
            android:name="com.jakkash.androidlivetv.TvPlay"
            android:screenOrientation="sensorLandscape"          
            android:label="@string/app_name" >
        </activity>
      
        <!-- Jangan lupa InitActivity -->
        <activity
            android:name="io.vov.vitamio.activity.InitActivity"
            android:configChanges="orientation|keyboardHidden|navigation"
            android:launchMode="singleTop"
            android:screenOrientation="sensorLandscape"
            android:theme="@android:style/Theme.NoTitleBar"
            android:windowSoftInputMode="stateAlwaysHidden" />
      
      
        <!-- Kode Awal app code -->
      
           <activity android:name="com.startapp.android.publish.list3d.List3DActivity"
            android:taskAffinity="com.jakkash.androidlivetv.AppWall"
            android:theme="@android:style/Theme" />
       
        <activity android:name="com.startapp.android.publish.AppWallActivity"
                android:theme="@android:style/Theme.Translucent"
                android:taskAffinity="com.jakkash.androidlivetv.AppWall"
                android:configChanges="orientation|keyboardHidden" />
      
        <!-- Kode Akhir -->
      
    
        <!-- Kolom Untuk Admob/iklan -->
        <activity
            android:name="com.google.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />    
    </application>
</manifest>

buat folde TV live - > src .
androidmanifest

Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.jakkash.androidlivetv"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="18" />
  
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
    <uses-permission android:name="android.permission.GET_TASKS" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/appicon"
        android:label="@string/app_name"
        android:theme="@style/Theme.Androidlivetv" >
        <activity
            android:name="com.jakkash.androidlivetv.SplashActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
      
        <activity android:name="com.jakkash.androidlivetv.MainActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
        <activity android:name="com.jakkash.androidlivetv.CategoryItem"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
        <activity android:name="com.jakkash.androidlivetv.TvDetails"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
         <activity android:name="com.jakkash.androidlivetv.AboutActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
         <activity
            android:theme="@style/Theme.Sherlock.Light.NoActionBar"
            android:name="com.jakkash.androidlivetv.TvPlay"
            android:screenOrientation="sensorLandscape"          
            android:label="@string/app_name" >
        </activity>
      
        <!-- InitActivity -->
        <activity
            android:name="io.vov.vitamio.activity.InitActivity"
            android:configChanges="orientation|keyboardHidden|navigation"
            android:launchMode="singleTop"
            android:screenOrientation="sensorLandscape"
            android:theme="@android:style/Theme.NoTitleBar"
            android:windowSoftInputMode="stateAlwaysHidden" />
      
      
        <!--Awal app code -->
      
           <activity android:name="com.startapp.android.publish.list3d.List3DActivity"
            android:taskAffinity="com.jakkash.androidlivetv.AppWall"
            android:theme="@android:style/Theme" />
       
        <activity android:name="com.startapp.android.publish.AppWallActivity"
                android:theme="@android:style/Theme.Translucent"
                android:taskAffinity="com.jakkash.androidlivetv.AppWall"
                android:configChanges="orientation|keyboardHidden" />
      
        <!-- Akhir App code -->
      
      
         <!-- Kolom Untuk Admob/iklan -->
        <activity
            android:name="com.google.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
      
    </application>

</manifest>

NOTE :
actionbarsherlock dan ZI dan InitActivity Library disajikan folder Utama Android Live Tv


class patch
Code:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
    <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
    <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="src" path="gen"/>
    <classpathentry kind="lib" path="libs/StartAppInAppPlus-2.3.jar"/>
    <classpathentry kind="output" path="bin/classes"/>
</classpath>


Project
Code:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>AndroidLiveTv StartApp M.R.X</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.jdt.core.javabuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>com.android.ide.eclipse.adt.ApkBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
        <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>
</projectDescription>


folder documentasi - > index.html
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head lang="en">
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>Android Live TV M.R.X</title>
    <!-- Framework CSS -->
    <link rel="stylesheet" href="assets/blueprint-css/screen.css" type="text/css" media="screen, projection">
    <link rel="stylesheet" href="assets/blueprint-css/print.css" type="text/css" media="print">
    <!--[if lt IE 8]><link rel="stylesheet" href="assets/blueprint-css/ie.css" type="text/css" media="screen, projection"><![endif]-->
    <link rel="stylesheet" href="assets/blueprint-css/plugins/fancy-type/screen.css" type="text/css" media="screen, projection">
    <style type="text/css" media="screen">
        p, table, hr, .box { margin-bottom:25px; }
        .box p { margin-bottom:10px; }
    </style>
</head>


<body>
    <div class="container">
    
        <h3 class="center alt">&ldquo;Android Live TV&rdquo; Documentation by &ldquo;Viavi WebTech-M.R.X&rdquo; v1.0</h3>
        
        <hr>
        
        <h1 class="center">&ldquo;Android Live TV&rdquo;</h1>
        
        <div class="borderTop">
            <div class="span-6 colborder info prepend-1">
                <p class="prepend-top">
                    <strong>
                    Created: 16-April-2019<br>
                    Company: Viavi WebTech-M.R.X<br>

                    </strong>
                </p>
            </div>
            <!-- end div .span-6 -->
            <div class="span-12 last">
                <p class="prepend-top append-0">Terima kasih telah membeli aplikasi. Jika Anda memiliki pertanyaan yang berada di luar cakupan file bantuan ini, jangan ragu untuk mengirim saya pesan melalui formulir kontak halaman pengguna saya <a href="http://M.R.X.team">here</a>. Terima kasih banyak!</p>
            </div>
        </div>

        <!-- end div .borderTop -->
        
        <hr>
        
        <h2 id="toc" class="alt">Table of Contents</h2>
        <ul>
            <li><a href='#eclipseversion'>Which Eclipse version is needed?</a></li>
            <li><a href='#importproject'>How to open the project in Eclipse?</a></li>            
            <li><a href='#packagename'>How to change the package name?</a></li>
            <li><a href='#appname'>How to change app name?</a></li>
            <li><a href='#serverconfig'>How to Configure Webservice In Your Server</a></li>    
            <li><a href='#serverurl'>Where to put Server Url in Application?</a></li>    
            <li><a href='#howtoadd'>How to add category and its items into webservice?</a></li>            
            <li><a href='#admob_id'>How to change AdMob publisher id?</a></li>
            <li><a href='#startapp_id'>How to change StartApp Ad Id/Developer Id?</a></li>            
            <li><a href='#about'>How to change 'About' section?</a></li>        
            <li><a href='#splash'>How to change 'Splash Screen and Application Icon' ?</a></li>        
            <li><a href='#checkchannel'>How to Check Channel Url is Working Properly?</a></li>
             <li><a href="#graphics">Graphics</a></li>            
            <li><a href="#showcase">App Showcase</a></li>
            <li><a href="#rating">Rating</a></li>
<!--
            <li><a href="#changelog">Changelog</a></li>
-->
            <li><a href="#credits">Credits</a></li>
        </ul>
        
        <hr>
        
        
        <h3 id="eclipseversion"><strong>Which Eclipse version is needed?</strong> - <a href="#toc">top</a></h3>
        <p>
            Latest Eclipse version is recommended, which can be downloaded from here:<br />
            <a href='http://developer.android.com/sdk/index.html'>http://developer.android.com/sdk/index.html</a>
        </p> 
        
        <hr>
        
        
        <h3 id="importproject"><strong>How to open the project in Eclipse?</strong> - <a href="#toc">top</a></h3>    
            
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/import_2.png'><img src='assets/images/import_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/import_1.png'><img src='assets/images/import_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        
        
            
        <p>
            <ol>
                <li>Open Eclipse > Import > Android > "Existing Android Code into Worksplace" > Next </li>
                <li>Root Directory > Click Browse button & browse the project folder  > Select all 4 projects 'actionbarsherlock', 'AndroidLiveTV', 'VitamioBundle' & 'ZI'</li>
                <li>After sucessfully importing the app, Right Click 'AndroidLiveTV' project from Package Explorer > Properties > Java Build Path > Order and Export > Check on 'Android Private Libraries' > OK</li>
                <li>Then go to 'Project' Menu > Clean.. > Clean All Projects > OK</li>
                <li>Wait for few minutes until all errors are gone. Ignore any warning appears in 'Problems' tab.</li>
            </ol>
        </p> 
        
        <hr>
        
        
        <h3 id="packagename"><strong>How to change the package name?</strong> - <a href="#toc">top</a></h3>

        <div style='float:right; padding:0 0 20px 20px; width:400px;'>
        
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_1.png'><img src='assets/images/packagename_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_2.png'><img src='assets/images/packagename_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_3.png'><img src='assets/images/packagename_3.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_4.png'><img src='assets/images/packagename_4.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
            
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_5.png'><img src='assets/images/packagename_5.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        </div>
        
        <p>
            You can change it easily from Eclipse. Here are the steps: 
            <ul>
                <li>Right Cilck 'AndroidLiveTV' project from Package Explorer > Android Tools > Rename Application Package > Finish.</li>
                <li>Refactroing dailog present and click Finish</li>
                <li>Package Name Changed in AndroidMainfest.xml but not in Application Package hierarchy so select Package name Right Click >
                Go to Refactor > Rename >Enter Package Name > Finish</li>
            </ul>            
        </p> 
        
        <hr>
        
        
        <h3 id="appname"><strong>How to change app name?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/appname_3.png'><img src='assets/images/appname_3.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/appname_2.png'><img src='assets/images/appname_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/appname_1.png'><img src='assets/images/appname_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <p>
            <ol>
                <li>Open Eclipse >Android Live TV> res > values > strings.xml</li>
                <li>Select 'strings.xml' tab next to 'Resources' tab</li>
                <li>Enter your app name inside <b>"app_name"</b> string tag:<br /><code>&lt;string name="app_name"&gt;<b>Android Live TV</b>&lt;/string&gt;</code></li>
                <li>if you want change Project name also then >Right Cilck 'AndroidLiveTV' project from Package Explorer >Refactor > Rename >Enter Application Name > Finish</li>
            </ol>
            This will change both title inside the app & app icon name.
        </p> 
        
        <hr>
        
        
        
        <h3 id="serverconfig"><strong>How to Configure Webservice In Your Server?</strong> - <a href="#toc">top</a></h3>
        <div style='float:right; padding:0 0 20px 20px'><iframe width="420" height="345" src="http://www.youtube.com/embed/L0IvojaAllI" style='border:1px solid #aaa'></iframe></div>    
        
        <p>
            <ol>
                <li>First of all find the  Livetv_web_services  folder from the downloaded package.</li>
                <li>Copy these folder and paste it in the htdocs  folder(if you have Wampp installed then put it into www)</li>
                <li>Then create a database and import the database from the db folder.</li>
                <li>4.Aftre creating database configure the connection file,which is in the includes folder of your package.<br>

                    <b>$serverIp="localhost"; <br> 
                    $userName="root";<br>
                    $password="";<br>
                    $dbname="live_tv ";<br></b>
    
                That’s all,now run the webservice : <b>http://localhost/Livetv_web_services/index.php</b>
                for <b>Live set up </b>Follow the video tutorial ahead.
</li>
            </ol>
            
        </p> 
        
        
        <hr>

    <h3 id="serverurl"><strong>Where to put Server Url in Application?</strong> - <a href="#toc">top</a></h3>
    
    <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/serverurl_1.png'><img src='assets/images/serverurl_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
    
    <p>
            <ol>
                <li>Select Project > go to com.example.util package > Constant.java Class</li>
                <li> Open Constant.java</li>
                <li> now if your Sever is http://abc.com so your service url like that <b>http://abc.com/api.php</b> and </br><b>http://abc.com/api.php?cat_id=</b> and image path <b>http://abc.com/images</b></li>
                
            </ol>
            </p>
    
    <hr>
    
        <h3 id="howtoadd"><strong>How to add category and its items into webservice?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px; width:400px;'>
        
            <div style="float:left; margin:2px 5px;"><a href='assets/images/howtoadd_1.png'><img src='assets/images/howtoadd_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
            <div style="float:left; margin:2px 5px;"><a href='assets/images/howtoadd_2.png'><img src='assets/images/howtoadd_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
            <div style="float:left; margin:2px 5px;"><a href='assets/images/howtoadd_3.png'><img src='assets/images/howtoadd_3.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
            <div style="float:left; margin:2px 5px;"><a href='assets/images/howtoadd_4.png'><img src='assets/images/howtoadd_4.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
            
             
        </div>
            
        <p>
        open your admin panel</br>
        <b>Now we first uploaded category.</b>]
        <ol>
            <li>Go to Manage category.</li>
            <li>Right Side Press Add category.</li>
            <li>Enter Category Name. </li>
            <li>Choose image of category.</li>
        </ol>
        
        <b>Now we enter the item of that category.</b>
        <ol>
            <li>Go to Channel List</li>
            <li>right side press Add Channel</li>
            <li>then select category</li>
            <li>enter Name and Channel url,Description and Submit</li>
             
        </ol>
        </p>
        <hr>
    
        
        <h3 id="admob_id"><strong>How to change AdMob publisher id?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/admobid.png'><img src='assets/images/admobid.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
        <p>
            <ol>
                <li>Open Eclipse > AndroidLiveTV > res > values > strings.xml</li>
                <li>Select 'strings.xml' tab next to 'Resources' tab</li>
                <li>Enter your AdMob publisher id inside <b>"admob_publisher_id"</b> string tag:<br /><code>&lt;string name="admob_publisher_id"&gt;<b>Your AdMob ID Here</b>&lt;/string&gt;</code></li>
                
            </ol>
        </p> 
        <hr>
        
        
        
        <h3 id="startapp_id"><strong>How to change StartApp Ad Id/Developer Id?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/startapp_2.png'><img src='assets/images/startapp_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/startapp_1.png'><img src='assets/images/startapp_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <p>
            <ol>
                <li>Open Eclipse > AndroidLiveTV > res > values > strings.xml</li>
                <li>Select 'strings.xml' tab next to 'Resources' tab</li>
                <li>Enter your StartApp Application id inside <b>"startapp_app_id"</b> string tag:<br /><code>&lt;string name="startapp_app_id"&gt;<b>Your StartApp Application ID</b>&lt;/string&gt;</code></li>
                <li>Enter your StartApp Developer id inside <b>"startapp_dev_id"</b> string tag:<br /><code>&lt;string name="startapp_dev_id"&gt;<b>Your StartApp Developer ID</b>&lt;/string&gt;</code></li>
                <li>Open AndroidMainfiest.xml > Change in Startapp Code</li>
            </ol>
        </p> 
        
        <hr>
        
        
        
        <h3 id="about"><strong>How to change 'About' section?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/about.png'><img src='assets/images/about.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
        <p>
            <ol>
                <li>Go to: Eclipse > AndroidLiveTV > assets >index.html</li>
                <li>Right click index.html > Open With > Text Editor</li>
                <li>It will open into a text editor inside Eclipse, make your necessary changes & save</li>
            </ol>
             
        </p> 
    <hr>
    
    <h3 id="splash"><strong>How to change 'Splash Screen and Application Icon' ?</strong> - <a href="#toc">top</a></h3>
    
    <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/appicon.png'><img src='assets/images/appicon.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
    <p>
        <b>How To Change Application Icon</b>
        <ol>
            <li>Open Eclipse > AndroidLiveTV > res > drawable-mdpi > appicon.png</li>
            <li>Rename your icon with appicon.png and paste in drawable-mdpi folder</li>
        </ol>
        
        <b>How To Change Splash Screen</b>
        <ol>
            <li>Open Eclipse > AndroidLiveTV > res > drawable > splash.png</li>
            <li>Rename your splash screen image  with splash.png and paste in drawable folder</li>
        </ol>
        
    </p>
    
    <hr>
        
        <h3 id="checkchannel"><strong>How to Check Channel Url is Working Properly?</strong> - <a href="#toc">top</a></h3>
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/vlc_check_3.png'><img src='assets/images/vlc_check_3.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/vlc_check_2.png'><img src='assets/images/vlc_check_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/vlc_check_1.png'><img src='assets/images/vlc_check_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        
        <p>
        There are lots of channel list available in internet but some them not work properly,So here is method how to check that channel is working or not?
            <ol>
                <li>Open VLC Media Player > Media > Open Network Stream..(Ctrl+N) > 3rd Tab Network >Enter Channel url</li>
                <li>If Channel Working Properly Then its Play otherwise its give error dialog</li>
                <li>if channel not play in VLC that channel aslo not play in device</li>
                 
            </ol>
        </p> 
        
        <hr>
        
        <h3 id="graphics"><strong>Graphics</strong> - <a href="#toc">top</a></h3>
        
        <p>You will find all image into /res/drawable-mdpi/,/res/drawable-hdpi/,/res/drawable-xhdpi/ folder. Just create your own graphics and replace those files. Create seperate graphics of different device screen sizes & place them into other drawble folders (drawable-hdpi & drawable-xhdpi) with same file name found at drawable-mdpi folder.  Check here for more information: <a href='http://developer.android.com/design/style/devices-displays.html'>Devices and Displays</a> & <a href='http://developer.android.com/guide/practices/screens_support.html'>Supporting Multiple Screens</a>.</p>
        
        <hr>
        
        
        
        <h3 id="showcase"><strong>App Showcase</strong> - <a href="#toc">top</a></h3>
        
        <p>Once you will publish your app to Google Play or any other Android store, send us your app link. We will happy to showcase your app into our website & CodeCanyon page.</p> 
        
        <hr>
        
        
        
        <h3 id="rating"><strong>Rating</strong> - <a href="#toc">top</a></h3>
        
        <p>If you like our app, we will highly appreciate if you can provide us a rating of 5. You can rate us from your CodeCanyon Menu > Download page.</p> 
        
        <hr>
        
        
        <h3 id="credits"><strong>Credits</strong> - <a href="#toc">top</a></h3>
        
        <p>I've used folowing sources into this app:
        
        <ul>
            <li><a href='http://www.vitamio.org/en/'>Vitamio SDK</a> for video playback. The SDK is free for individual developers. Otherwise you might need to purchase the license before using it. <a href='http://www.vitamio.org/en/License/'>Check here</a> for license information.</li>            
            <li><a href='http://actionbarsherlock.com/'>ActionBarSherlock</a></li>
                        
        </ul>
        
        <hr>
        
        
        
        <p>Once again, thank you so much for purchasing this app. As I said at the beginning, I'd be glad to help you if you have any questions relating to this app. No guarantees, but I'll do my best to assist. If you have a more general question relating to the apps on CodeCanyon, you might consider visiting the "FAQ / Support" section and asking your question in the "Comments" section at CodeCanyon app detail page.</p> 
        
        <p class="append-bottom alt large"><strong>M.R.X_isc</strong><br /><strong><a href='http://www.viavi.in'>Viavi WebTech-M.R.X</a></strong></p>

        <p><a href="#toc">Go To Table of Contents</a></p>
        
        <hr class="space">
    </div><!-- end div .container -->
</body>
</html>


DB = live_TV.sql
Code:
- phpMyAdmin SQL Dump
- versi 4.1.8
- http://www.phpmyadmin.net
-
- Host: localhost
- Waktu Pembuatan: 16 April 2019 pukul 16:43
- Versi server: 5.1.73-cll
- Versi PHP: 5.4.23

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `viaviw56_live_tv`
--

-- --------------------------------------------------------

--
-- Struktur tabel untuk tabel `tbl_admin`
--
CREATE TABLE IF NOT EXISTS `tbl_admin` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(100) NOT NULL,
  `password` varchar(100) NOT NULL,
  `email` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- dumping data untuk tabel `tbl_admin`
--

INSERT INTO `tbl_admin` (`id`, `username`, `password`, `email`) VALUES
(1, 'admin', 'adminq1w2', '[email protected]');

-- --------------------------------------------------------

--
-- Struktur tabel untuk tabel `tbl_category`
--

CREATE TABLE IF NOT EXISTS `tbl_category` (
  `cid` int(11) NOT NULL AUTO_INCREMENT,
  `category_name` varchar(255) NOT NULL,
  `category_image` varchar(255) NOT NULL,
  PRIMARY KEY (`cid`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;

--
-- Dumping data untuk table `tbl_category`
--
INSERT INTO `tbl_category` (`cid`, `category_name`, `category_image`) VALUES
(3, 'News Channel', '18290_news.png'),
(5, 'Movie Channels', '34114_movie.png'),
(6, 'Science Channel', '93817_science.png'),
(7, 'Music Channel', '78220_Music.png');

-- --------------------------------------------------------

--
-- Table structure untuk tabel `tbl_channels`
--

CREATE TABLE IF NOT EXISTS `tbl_channels` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `cat_id` int(11) NOT NULL,
  `channel_title` varchar(100) NOT NULL,
  `channel_url` varchar(255) NOT NULL,
  `channel_thumbnail` varchar(255) NOT NULL,
  `channel_desc` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=45 ;

--
-- Dumping data untuk tabel `tbl_channels`
--

INSERT INTO `tbl_channels` (`id`, `cat_id`, `channel_title`, `channel_url`, `channel_thumbnail`, `channel_desc`) VALUES
(16, 3, 'Aaj Tak', 'rtsp://46.249.213.87:554/playlists/aajtak_hvga.hpl.3gp ', '55293_aajtak.jpg', 'Aaj Tak is a 24-hour Hindi news television channel owned by TV Today Network Ltd.. Aaj Tak loosely translates as "Till Today" or "Up to the Minute". In India, Aaj Tak is a free-to-air channel\r\n\r\nAaj Tak has won the Indian Television Academy Award for Best'),
(17, 3, 'India TV ', 'rtsp://46.249.213.93:554/playlists/india-tv_hvga.hpl.3gp ', '51855_india_tv.jpg', 'India TV is a Hindi news channel based in Noida, Uttar Pradesh, India. The channel was launched on May 20, 2004 just 2 days before BJP''s tenure in government was ending (On 22nd May 2004) by Rajat Sharma and wife Ritu Dhawan.The channel is the flagship se'),
(18, 3, 'NDTV Profit ', 'http://bglive-a.bitgravity.com/ndtv/prolo/live/native', '8803_ndtvprofit.jpg', 'NDTV Profit is a business news channel started by New Delhi Television in January 2005\r\nIt has a large number of journalists covering the action from the Bombay Stock Exchange (BSE) and the National Stock Exchange of India (NSE). Furthermore, it also cove'),
(19, 3, 'NDTV', 'http://bglive-a.bitgravity.com/ndtv/247hi/live/native', '39936_ndtv_india.jpg', 'New Delhi Television Limited (NDTV) is an Indian commercial broadcasting television network founded in 1988 by Radhika Roy and Prannoy Roy. NDTV is an acronym for the original name of the company, New Delhi Television. Vikramaditya Chandra is the Chief Ex'),
(20, 3, 'Sahara Samay', 'rtsp://cdn.m.yupptv.tv/liveorigin/saharasamaynew1', '66427_Sahara_Samay_National.jpg', 'This is news channel owner of sahara group'),
(21, 3, 'CNBC TV', 'rtsp://202.159.213.30:554/cnbctv18_mobC.sdp?token=923152409036', '73548_cnbc_tv18.jpg', 'This is news Channel Related to Stock Market.'),
(22, 3, 'CNBC Awaaz', 'rtsp://202.159.213.30:554/cnbcawaaz_mobC.sdp?token=923152409036', '78629_cnbc_awaaz.jpg', 'CNBC Awaaz is a Hindi business news TV channel in India. The channel is a joint venture between CNBC and Television Eighteen India Limited (TV18) based in New Delhi.'),
(23, 3, 'Channel 9', 'http://72.46.226.53/live01/_definst_/canal91/playlist.m3u8', '38561_channel9_bd.jpg', 'Channel 9 broadcasts in color, but -as well as many other TV channels outside Buenos Aires- it has monophonic sound only.'),
(24, 3, 'Lemon News', 'http://tata.live.cdn.bitgravity.com/lemon/live/feed01', '2492_lemonnews.jpg', 'This is Indain News Channel'),
(25, 3, 'HMTV ', 'rtsp://cdn.m.yuppcdn.net/liveorigin/hmtv2', '68619_hmtv.jpg', 'HMTV is a 24-hour Telugu news channel. It is owned by Hyderabad Media House Ltd. The Chief editor of the channel is K. Ramachandra Murthy, a Senior Telugu Editor and Journalist who worked with Andhra Jyothi, Vartha, Udayam news papers for many years.'),
(26, 3, 'ETV ', 'http://cdn.m.yuppcdn.net/liveorigin/smil:etv2.smil/hasbahca.m3u8', '57389_etv.jpg', 'ETV Regional Channels, bouquet of 12 regional channels are source of rich infotainment to audiences in the language of their choice'),
(27, 3, 'Zee News', 'rtsp://202.159.213.30:554/zeenews_mobC.sdp?token=923152409036', '8082_zeenews.jpg', 'Zee News is an Indian news and current affairs channel founded in 1999. It is owned by Zee News Ltd. Initially, most of the programs were broadcast in English.Zee News was converted into a complete Hindi news channel.'),
(28, 3, 'DD National', 'rtsp://202.159.213.30:554/ddnational_mobC.sdp?token=923152409036', '43557_ddnational.jpg', 'DD National (DD1) is a state-owned general interest terrestrial television channel in India. It is the flagship channel of Doordarshan, the Indian public service broadcasting corporation, and the most widely available terrestrial television channel in Ind'),
(29, 5, 'Cartoon Network', 'rtmp://103.7.56.16:1935/live/dfrcar.stream', '5348_cn.jpeg', 'Cartoon Network (CN) is an American basic cable and satellite television channel that is owned by the Turner Broadcasting System division of Time Warner. The channel airs mainly animated programming, ranging from action to animated comedy, along with some'),
(30, 5, 'Sab Tv', 'rtsp://46.249.213.93:554/playlists/sonysabtv_hvga.hpl.3gp', '19253_sab.jpg', 'The channel was launched on April 23, 2000 by Sri Adhikari Brothers as a general entertainment channel. In 2003, it was repositioned as a comedy-centric channel. In March 2005, SAB TV was acquired by Sony Entertainment Television and was transformed into '),
(31, 5, 'Zing Tv', 'rtsp://217.146.95.166:554/live/ch28zqcif.3gp', '82595_zing.jpg', 'Zing, formerly known as Zee Muzic and Music Asia, is an India-based satellite music television channel owned by Zee Entertainment Enterprises, which carries broadcasts in Hindi and other regional languages of India. As well as broadcasting in South Asia, '),
(32, 5, 'Fashion Tv', 'http://edgeb.streaming.sk/fashiontv/fashiontv.stream/playlist_b125000_w304569164.m3u8?', '25996_fashion.jpg', 'FashionTV is an international fashion and lifestyle broadcasting television channel. Founded in France in 1997 by its Polish-born president Michel Adam Lisowski, FashionTV has become one of the most widely distributed satellite channels in the world: 31 s'),
(33, 5, 'Zee Cafe', 'rtsp://202.159.213.30:554/zeecafe_mobC.sdp?token=923152409036', '74174_Zee_Cafe_2005.jpg', 'Zee Café is an Indian English-hindi language cable and satellite television channel owned by Zee Entertainment Enterprises, a subsidiary of the Essel Group'),
(34, 5, 'Colors Tv', 'rtsp://202.159.213.30:554/colors_mobC.sdp?token=923152409036', '44649_Colors_TV.jpg', 'Colors, known as Aapka Colors in the United States and Canada, is a Hindi language Indian general entertainment channel based in Mumbai, part of the Viacom 18 family, which was launched on July 21, 2008.\r\n'),
(35, 5, 'Sony Tv', 'rtsp://202.159.213.30:554/sony_mobC.sdp?tokan=923152409036', '21027_sony.jpg', 'Sony Entertainment Television or SET, is a Hindi-language based general entertainment television channel in India. It was launched in October 1995 and is owned by Multi Screen Media Pvt. Ltd. (MSM, formerly SET India Private Limited), a subsidiary of Sony'),
(36, 5, 'Zee TV', 'rtsp://202.159.213.30:554/zeetv_mobC.sdp?tokan=923152409036', '94982_zee_network.jpg', 'Zee TV is an Indian cable and satellite television channel owned and operated by Zee Entertainment Enterprises, a media and entertainment company based in Mumbai.  It primarily airs programmes in Hindi and other regional languages of India. The channel is'),
(40, 7, 'Indie Music', 'rtsp://46.249.213.87:554/playlists/imtv_hvga.hpl.3gp ', '11557_indie.jpg', 'This Music channel based on Hindi Movie'),
(41, 7, 'Hungama Tv', 'rtsp://46.249.213.87:554/playlists/bollywood-hits_hvga.hpl.3gp ', '66056_Hungama_TV.jpg', 'This Music channel based on Hindi Movie'),
(42, 6, 'National Geographic', 'rtmp://103.7.56.16/live/fdgngo.stream', '70628_national_geo.jpg', 'National Geographic Channel (also commercially abbreviated and trademarked as Nat Geo) is an American digital cable and satellite television channel that is owned by the National Geographic Society and the Fox Cable Networks division of 21st Century Fox\r\n'),
(43, 6, ' Discovery Channel', 'rtmp://103.7.56.16:1935/live/rdddis.stream', '46708_discovrey.jpg', 'The Discovery Channel began broadcasting on June 17, 1985. It was initially available to 156,000 households and broadcast for 12 hours each day between 3 p.m. and 3 a.m. About 75 percent of its program content had never been broadcast on U.S. television b'),
(44, 6, 'History Tv', 'rtmp://103.7.56.16/live/dvghis.stream', '95050_histroy.jpg', 'History (originally The History Channel from 1995 to 2008) is an American basic cable and satellite television channel that is owned by A+E Networks, a joint venture between the Hearst Corporation and the Disney–ABC Television Group division of The Walt');

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

folder inc - > connection.php
Code:
<?php
    session_start();

    //local db
  
    if($_SERVER['HTTP_HOST']=="localhost")
    {
    $serverIp="localhost";
    $userName="root";
    $password="";
    $dbname="live_tv";
  
    }else
    {
    //Live
   
    $serverIp="localhost";
    $userName="USERNAME";
    $password="PASSWORD";
    $dbname="DATABASENAME";
    }
    $cn=mysql_connect($serverIp,$userName,$password) OR Die("Couldn't Connect - ".mysql_error());
    $link=mysql_select_db($dbname,$cn)or Die("Couldn't SELCECT - ".mysql_error());
  
?>

folder inc - > footer.php
Code:
<p id="footer">All Right Reserved. <a href="http://www.viaviweb.com" target="_blank">VIAVIWEB_M.R.X</a></p>
    </div>
    <!-- // #wrapper -->
</body>
</html>

folder inc - > function.php
Code:
<?php error_reporting(0);
require_once("thumbnail_images.class.php");
class k_wallpaper
{

//Category Query  
    function addCategory()
    {
      
        $albumimgnm=rand(0,99999)."_".$_FILES['image']['name'];
             $pic1=$_FILES['image']['tmp_name'];
              if(!is_dir('images'))
               {
          
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$albumimgnm;
              
                 copy($pic1,$tpath1);
               
               
                        $thumbpath='images/thumbs/'.$albumimgnm;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 100;
                        $obj_img->NewHeight = 100;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
                          else
                          {
                                 
                                $cat_result=mysql_query('INSERT INTO `tbl_category` (`category_name` ,`category_image`) VALUES (  \''.addslashes($_POST['category_name']).'\',\''.$albumimgnm.'\')');
      
                              
                          }

      
    }
  
    function editCategory()
    {
           
           
    if($_FILES['image']['name']=="")
         {
      
        $cat_result=mysql_query('UPDATE `tbl_category` SET `category_name`=\''.addslashes($_POST['category_name']).'\' WHERE cid=\''.$_GET['cat_id'].'\'');

        }
        else
        {
      
            //Image Unlink
          
            $img_res=mysql_query('SELECT * FROM tbl_category WHERE cid=\''.$_GET['cat_id'].'\'');
            $img_row=mysql_fetch_assoc($img_res);
          
            if($img_row['category_image']!="")
            {
                unlink('images/'.$img_row['category_image']);
                unlink('images/thumbs/'.$img_row['category_image']);
            }  
      
            //Image Upload
            $albumimgnm=rand(0,99999)."_".$_FILES['image']['name'];
             $pic1=$_FILES['image']['tmp_name'];
             
      
               if(!is_dir('images'))
               {
          
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$albumimgnm;
              
                 copy($pic1,$tpath1);
               
               
                        $thumbpath='images/thumbs/'.$albumimgnm;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 100;
                        $obj_img->NewHeight = 100;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
                          else
                          {
                                 
                                 $cat_result=mysql_query('UPDATE `tbl_category` SET `category_name`=\''.addslashes($_POST['category_name']).'\',`category_image`=\''.$albumimgnm.'\' WHERE cid=\''.$_GET['cat_id'].'\'');
                           }
        }

    }
  
    function deleteCategory()
    {
      
      
        $channel_res=mysql_query('SELECT * FROM `tbl_channels` WHERE cat_id=\''.$_GET['cat_id'].'\'');
        while($channel_row=mysql_fetch_assoc($channel_res)){
      
            if($channel_row['channel_url']!="")
            {
                $string=$channel_row['channel_url'];
                list($a,$b)=split('channel/',$string);
                unlink('channel/'.$b);
            }
            if($channel_row['channel_thumbnail']!="")
            {
                unlink('images/thumbs/'.$channel_row['channel_thumbnail']);
                unlink('images/'.$channel_row['channel_thumbnail']);
            }
        }
        $channel_result=mysql_query('DELETE FROM `tbl_channels` WHERE cat_id=\''.$_GET['cat_id'].'\'');
      
        $img_res=mysql_query('SELECT * FROM tbl_category WHERE cid=\''.$_GET['cat_id'].'\'');
        $img_row=mysql_fetch_assoc($img_res);
          
            if($img_row['category_image']!="")
            {
                unlink('images/thumbs/'.$img_row['category_image']);
                unlink('images/'.$img_row['category_image']);
               
            }  
      
        $cat_result=mysql_query('DELETE FROM `tbl_category` WHERE cid=\''.$_GET['cat_id'].'\'');
    }


//Image Gallery
    function addchannel()
    {
    if($_POST['channel_url']!="")
    {
  
  
    if($_FILES['thumbnail']['name']!="")  
    {
    $thumbname=rand(0,99999)."_".$_FILES['thumbnail']['name'];
             $thumb1=$_FILES['thumbnail']['tmp_name'];
             if(!is_dir('images'))
               {
          
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$thumbname;
              
                 copy($thumb1,$tpath1);
               
               
                        $thumbpath='images/thumbs/'.$thumbname;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 100;
                        $obj_img->NewHeight = 100;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
    }
     $res=mysql_query('INSERT INTO `tbl_channels` (`cat_id`,`channel_title`,`channel_url`,`channel_thumbnail`,`channel_desc`) VALUES (\''.$_POST['category_id'].'\',\''.$_POST['channel_title'].'\',\''.$_POST['channel_url'].'\',\''.$thumbname.'\',
     \''.addslashes($_POST['channel_description']).'\')');
    }
    }
      
    function editchannel()
    {
    /*    if($_POST['channel_url']="")
    {
        if($_FILES['thumbnail']['name']!="")
    {
        $thumbname=rand(0,99999)."_".$_FILES['thumbnail']['name'];
             $thumb1=$_FILES['thumbnail']['tmp_name'];
             if(!is_dir('images'))
               {
          
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$thumbname;
              
                 copy($thumb1,$tpath1);
               
               
                        $thumbpath='images/thumbs/'.$thumbname;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 72;
                        $obj_img->NewHeight = 72;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
                          $channel_res=mysql_query('SELECT * FROM `tbl_gallery` WHERE id=\''.$_GET['channel_id'].'\'');
                              $channel_row=mysql_fetch_assoc($channel_res);
                              if($channel_row['channel_thumbnail']!="")
                            {
                            unlink('images/thumbs/'.$channel_row['channel_thumbnail']);
                                unlink('images/'.$channel_row['channel_thumbnail']);
                            }
    }
    else
    {
        $channel_res=mysql_query('SELECT * FROM `tbl_gallery` WHERE id=\''.$_GET['channel_id'].'\'');
        $channel_row=mysql_fetch_assoc($channel_res);
        $thumbname=$channel_row['channel_thumbnail'];
      
    }
    $res=mysql_query('UPDATE `tbl_gallery` SET `cat_id`=\''.$_POST['category_id'].'\',`channel_title`=\''.addslashes($_POST['channel_title']).'\',`channel_thumbnail`=\''.$thumbname.'\',`channel_desc`=\''.addslashes($_POST['channel_description']).'\' WHERE id=\''.$_GET['channel_id'].'\'');
    }
    */
    if($_POST['channel_url']!="")
    {
  
    $channel=$_POST["channel_url"];
          
    if($_FILES['thumbnail']['name']!="")
    {
        $thumbname=rand(0,99999)."_".$_FILES['thumbnail']['name'];
             $thumb1=$_FILES['thumbnail']['tmp_name'];
             if(!is_dir('images'))
               {
          
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$thumbname;
              
                 copy($thumb1,$tpath1);
               
               
                        $thumbpath='images/thumbs/'.$thumbname;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 100;
                        $obj_img->NewHeight = 100;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
                          $channel_res=mysql_query('SELECT * FROM `tbl_channels` WHERE id=\''.$_GET['channel_id'].'\'');
                              $channel_row=mysql_fetch_assoc($channel_res);
                              if($channel_row['channel_thumbnail']!="")
                            {
                            unlink('images/thumbs/'.$channel_row['channel_thumbnail']);
                                unlink('images/'.$channel_row['channel_thumbnail']);
                            }
    }
    else
    {
        $channel_res=mysql_query('SELECT * FROM `tbl_channels` WHERE id=\''.$_GET['channel_id'].'\'');
        $channel_row=mysql_fetch_assoc($channel_res);
        $thumbname=$channel_row['channel_thumbnail'];
    }
    $res=mysql_query('UPDATE `tbl_channels` SET `cat_id`=\''.$_POST['category_id'].'\',`channel_title`=\''.addslashes($_POST['channel_title']).'\',`channel_url`=\''.$_POST['channel_url'].'\',`channel_thumbnail`=\''.$thumbname.'\',`channel_desc`=\''.addslashes($_POST['channel_description']).'\' WHERE id=\''.$_GET['channel_id'].'\'');
  
    }
    }
  
    function deletechannel()
    {
            $channel_res=mysql_query('SELECT * FROM `tbl_channels` WHERE id=\''.$_GET['channel_id'].'\'');
            $channel_row=mysql_fetch_assoc($channel_res);
          
            if($channel_row['channel_thumbnail']!="")
            {
                unlink('images/thumbs/'.$channel_row['channel_thumbnail']);
                unlink('images/'.$channel_row['channel_thumbnail']);
            }
            $img_result=mysql_query('DELETE FROM `tbl_channels` WHERE id=\''.$_GET['channel_id'].'\'');
    }  
  
    function editProfile()
{
  
   $res=mysql_query('UPDATE `tbl_admin` SET `username`=\''.$_POST['username'].'\',`password`=\''.$_POST['password'].'\',`email`=\''.$_POST['email'].'\' WHERE id=\''.$_SESSION['id'].'\'');
}  
}
?>

folder inc - > header.php
Code:
<?php include("includes/connection.php");
      include("includes/session_check.php");
    
      //Get file name
      $currentFile = $_SERVER["SCRIPT_NAME"];
      $parts = Explode('/', $currentFile);
      $currentFile = $parts[count($parts) - 1];     
          
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Live Tv Admin</title>

<!-- CSS -->
<link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie6.css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie7.css" /><![endif]-->

<link rel="shortcut icon" href="images/favicon.png" />

<!-- JavaScripts-->
<script type="text/javascript" src="style/js/jquery.js"></script>
<script type="text/javascript" src="style/js/jNice.js"></script>
</head>

<body>
    <div id="wrapper">
        <!-- h1 tag stays for the logo, you can use the a tag for linking the index page -->
        <h1><a href="home.php"><span>Transdmin Light</span></a></h1>
      
        <!-- You can name the links with lowercase, they will be transformed to uppercase by CSS, we prefered to name them with uppercase to have the same effect with disabled stylesheet -->
        <ul id="mainNav">
            <li><a href="home.php" <?php if($currentFile=="home.php"){?>class="active"<?php }?>>DASHBOARD</a></li> <!-- Use the "active" class for the active menu item  -->
           
            <li class="logout"><a href="logout.php">LOGOUT</a></li>
        </ul>
        <!-- // #end mainNav -->
      
        <div id="containerHolder">
            <div id="container">
                <div id="sidebar">
                    <ul class="sideNav">
                        <li><a href="manage_category.php" <?php if($currentFile=="manage_category.php")

folder inc - > session_check.php
Code:
<?php
  
    if(!isset($_SESSION['admin_name']))
    {
        session_destroy();
      
        echo "<script language=javascript type=text/javascript>document.location='index.php';</script>";
    }  
?>


code di atas hanyalah sedikit review dari beberapa cara kerjanya :

source code bisa di DOWNLOAD DIBAWAH INI :
Klik - >
TVLive.


sekian
Terima kasih ilmunya Master
 
Gak ada lagi sourcenya hu?
Dihapus automatis sama hosting files .
Tapi source masih ada di laptop.
Ntar untuk install di server kalo error' mungkin ada yang harus di perbarui versinya dulu bikinnya masih pake bootstrap 3 .ini bootstrap sudah versi 5 dan sedikit di rombak untuk JS .kalo mau pake .nanti saya coba hosting filenya lagi.
Ya itu di rombak sendiri saya blm ada waktu untuk itu .😗
 
source iptv nya sync dari iptv-org aja hu, ma sqlite di android nya ,, jd ga sah pake php lg
 

Di codecanyon harganya 22 $ -> di forum saya gratisin ...

untuk tampilan source code di forum ini hanyalah untuk review dari cara kerja dan maksud code ini tersambung .

Menonton TV secara online atau yang biasa disebut live streaming TV bisa dilakukan di berbagai jenis Android, dari Android yang sudah di-root ataupun yang belum .
banyak dev yang berusaha membuat TV online / live ini untuk menghasilkan sebuah pendapatan karena aplikasi semacam ini termasuk yang paling banyak di cari oleh pengguna android pada sekarang ini .

saya hanya membantu meramaikan sub ini juga berguna meramaikan bagi para android developer untuk meramaikan pasar andoid market atau android store , juga mungkin ada teman forum yang sedang mencari bahan untuk skrip.

langsung saja .
untuk link download nya di bawah sendiri ya gan .

oh iya sebelumnya saya rincikan untuk coneksifitas DB sama anjurannya terlebih dulu :

Configrasi DB :

1.Pertama-tama cari folder Livetv_web_services dari paket yang diunduh.
2. Salin folder ini dan tempel di folder htdocs (jika Anda telah menginstal Wampp, masukkan ke www)
3.Kemudian buat database dan impor database dari folder db.
4.Aftre membuat database mengkonfigurasi file koneksi, yang ada di folder include paket Anda.
Code:
$serverIp="localhost";
    $userName="root";
    $password="";
    $dbname="live_tv ";
Itu saja, sekarang jalankan layanan web: http://localhost/Livetv_web_services/index.php

buat folde TV live - > Aset .
index

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Android LiveTv M.R.X</title>
<style>
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 14px;
}
p{
line-height: 20px;
}
</style>
</head>
<body>
    <div align="center" style="color: #000;">
        <p>
            <img src="http://www.viaviweb.com/images/single-logo.jpg"
                title="Viaviweb" />
        </p>
        <p
            style="border-top: solid 1px #000; margin-top: 10px; padding-top: 10px;">Android LiveTv</p>       
        <p>
            <a href="http://www.viaviweb.com"
                style="color: #000; text-decoration: none">http://www.viaviweb.com</a>
        </p>
        <p>Email :- [email protected]</p>
        <p align="justify">Note :-THIS APPLICATION ONLY PROVIDES THE LINKS FOR THE LIVE STREAMING CHANNELS. ALL THE LINKS ARE GATHERED FROM VARIOUS FREELY AVAILABLE WEB SITES.</p>
    </div>
</body>
</html>

buat folde TV live - > bin .
androidmanifest

Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.jakkash.androidlivetv"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="18" />
  
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
    <uses-permission android:name="android.permission.GET_TASKS" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/appicon"
        android:label="@string/app_name"
        android:theme="@style/Theme.Androidlivetv" >
        <activity
            android:name="com.jakkash.androidlivetv.SplashActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
      
        <activity android:name="com.jakkash.androidlivetv.MainActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
        <activity android:name="com.jakkash.androidlivetv.CategoryItem"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
        <activity android:name="com.jakkash.androidlivetv.TvDetails"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
         <activity android:name="com.jakkash.androidlivetv.AboutActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
         <activity
            android:theme="@style/Theme.Sherlock.Light.NoActionBar"
            android:name="com.jakkash.androidlivetv.TvPlay"
            android:screenOrientation="sensorLandscape"          
            android:label="@string/app_name" >
        </activity>
      
        <!-- Jangan lupa InitActivity -->
        <activity
            android:name="io.vov.vitamio.activity.InitActivity"
            android:configChanges="orientation|keyboardHidden|navigation"
            android:launchMode="singleTop"
            android:screenOrientation="sensorLandscape"
            android:theme="@android:style/Theme.NoTitleBar"
            android:windowSoftInputMode="stateAlwaysHidden" />
      
      
        <!-- Kode Awal app code -->
      
           <activity android:name="com.startapp.android.publish.list3d.List3DActivity"
            android:taskAffinity="com.jakkash.androidlivetv.AppWall"
            android:theme="@android:style/Theme" />
       
        <activity android:name="com.startapp.android.publish.AppWallActivity"
                android:theme="@android:style/Theme.Translucent"
                android:taskAffinity="com.jakkash.androidlivetv.AppWall"
                android:configChanges="orientation|keyboardHidden" />
      
        <!-- Kode Akhir -->
      
    
        <!-- Kolom Untuk Admob/iklan -->
        <activity
            android:name="com.google.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />    
    </application>
</manifest>

buat folde TV live - > src .
androidmanifest

Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.jakkash.androidlivetv"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="18" />
  
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
    <uses-permission android:name="android.permission.GET_TASKS" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/appicon"
        android:label="@string/app_name"
        android:theme="@style/Theme.Androidlivetv" >
        <activity
            android:name="com.jakkash.androidlivetv.SplashActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
      
        <activity android:name="com.jakkash.androidlivetv.MainActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
        <activity android:name="com.jakkash.androidlivetv.CategoryItem"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
        <activity android:name="com.jakkash.androidlivetv.TvDetails"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
         <activity android:name="com.jakkash.androidlivetv.AboutActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"></activity>
      
         <activity
            android:theme="@style/Theme.Sherlock.Light.NoActionBar"
            android:name="com.jakkash.androidlivetv.TvPlay"
            android:screenOrientation="sensorLandscape"          
            android:label="@string/app_name" >
        </activity>
      
        <!-- InitActivity -->
        <activity
            android:name="io.vov.vitamio.activity.InitActivity"
            android:configChanges="orientation|keyboardHidden|navigation"
            android:launchMode="singleTop"
            android:screenOrientation="sensorLandscape"
            android:theme="@android:style/Theme.NoTitleBar"
            android:windowSoftInputMode="stateAlwaysHidden" />
      
      
        <!--Awal app code -->
      
           <activity android:name="com.startapp.android.publish.list3d.List3DActivity"
            android:taskAffinity="com.jakkash.androidlivetv.AppWall"
            android:theme="@android:style/Theme" />
       
        <activity android:name="com.startapp.android.publish.AppWallActivity"
                android:theme="@android:style/Theme.Translucent"
                android:taskAffinity="com.jakkash.androidlivetv.AppWall"
                android:configChanges="orientation|keyboardHidden" />
      
        <!-- Akhir App code -->
      
      
         <!-- Kolom Untuk Admob/iklan -->
        <activity
            android:name="com.google.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
      
    </application>

</manifest>

NOTE :
actionbarsherlock dan ZI dan InitActivity Library disajikan folder Utama Android Live Tv


class patch
Code:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
    <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
    <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="src" path="gen"/>
    <classpathentry kind="lib" path="libs/StartAppInAppPlus-2.3.jar"/>
    <classpathentry kind="output" path="bin/classes"/>
</classpath>


Project
Code:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>AndroidLiveTv StartApp M.R.X</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.jdt.core.javabuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>com.android.ide.eclipse.adt.ApkBuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
        <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>
</projectDescription>


folder documentasi - > index.html
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head lang="en">
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>Android Live TV M.R.X</title>
    <!-- Framework CSS -->
    <link rel="stylesheet" href="assets/blueprint-css/screen.css" type="text/css" media="screen, projection">
    <link rel="stylesheet" href="assets/blueprint-css/print.css" type="text/css" media="print">
    <!--[if lt IE 8]><link rel="stylesheet" href="assets/blueprint-css/ie.css" type="text/css" media="screen, projection"><![endif]-->
    <link rel="stylesheet" href="assets/blueprint-css/plugins/fancy-type/screen.css" type="text/css" media="screen, projection">
    <style type="text/css" media="screen">
        p, table, hr, .box { margin-bottom:25px; }
        .box p { margin-bottom:10px; }
    </style>
</head>


<body>
    <div class="container">
    
        <h3 class="center alt">&ldquo;Android Live TV&rdquo; Documentation by &ldquo;Viavi WebTech-M.R.X&rdquo; v1.0</h3>
        
        <hr>
        
        <h1 class="center">&ldquo;Android Live TV&rdquo;</h1>
        
        <div class="borderTop">
            <div class="span-6 colborder info prepend-1">
                <p class="prepend-top">
                    <strong>
                    Created: 16-April-2019<br>
                    Company: Viavi WebTech-M.R.X<br>

                    </strong>
                </p>
            </div>
            <!-- end div .span-6 -->
            <div class="span-12 last">
                <p class="prepend-top append-0">Terima kasih telah membeli aplikasi. Jika Anda memiliki pertanyaan yang berada di luar cakupan file bantuan ini, jangan ragu untuk mengirim saya pesan melalui formulir kontak halaman pengguna saya <a href="http://M.R.X.team">here</a>. Terima kasih banyak!</p>
            </div>
        </div>

        <!-- end div .borderTop -->
        
        <hr>
        
        <h2 id="toc" class="alt">Table of Contents</h2>
        <ul>
            <li><a href='#eclipseversion'>Which Eclipse version is needed?</a></li>
            <li><a href='#importproject'>How to open the project in Eclipse?</a></li>            
            <li><a href='#packagename'>How to change the package name?</a></li>
            <li><a href='#appname'>How to change app name?</a></li>
            <li><a href='#serverconfig'>How to Configure Webservice In Your Server</a></li>    
            <li><a href='#serverurl'>Where to put Server Url in Application?</a></li>    
            <li><a href='#howtoadd'>How to add category and its items into webservice?</a></li>            
            <li><a href='#admob_id'>How to change AdMob publisher id?</a></li>
            <li><a href='#startapp_id'>How to change StartApp Ad Id/Developer Id?</a></li>            
            <li><a href='#about'>How to change 'About' section?</a></li>        
            <li><a href='#splash'>How to change 'Splash Screen and Application Icon' ?</a></li>        
            <li><a href='#checkchannel'>How to Check Channel Url is Working Properly?</a></li>
             <li><a href="#graphics">Graphics</a></li>            
            <li><a href="#showcase">App Showcase</a></li>
            <li><a href="#rating">Rating</a></li>
<!--
            <li><a href="#changelog">Changelog</a></li>
-->
            <li><a href="#credits">Credits</a></li>
        </ul>
        
        <hr>
        
        
        <h3 id="eclipseversion"><strong>Which Eclipse version is needed?</strong> - <a href="#toc">top</a></h3>
        <p>
            Latest Eclipse version is recommended, which can be downloaded from here:<br />
            <a href='http://developer.android.com/sdk/index.html'>http://developer.android.com/sdk/index.html</a>
        </p> 
        
        <hr>
        
        
        <h3 id="importproject"><strong>How to open the project in Eclipse?</strong> - <a href="#toc">top</a></h3>    
            
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/import_2.png'><img src='assets/images/import_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/import_1.png'><img src='assets/images/import_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        
        
            
        <p>
            <ol>
                <li>Open Eclipse > Import > Android > "Existing Android Code into Worksplace" > Next </li>
                <li>Root Directory > Click Browse button & browse the project folder  > Select all 4 projects 'actionbarsherlock', 'AndroidLiveTV', 'VitamioBundle' & 'ZI'</li>
                <li>After sucessfully importing the app, Right Click 'AndroidLiveTV' project from Package Explorer > Properties > Java Build Path > Order and Export > Check on 'Android Private Libraries' > OK</li>
                <li>Then go to 'Project' Menu > Clean.. > Clean All Projects > OK</li>
                <li>Wait for few minutes until all errors are gone. Ignore any warning appears in 'Problems' tab.</li>
            </ol>
        </p> 
        
        <hr>
        
        
        <h3 id="packagename"><strong>How to change the package name?</strong> - <a href="#toc">top</a></h3>

        <div style='float:right; padding:0 0 20px 20px; width:400px;'>
        
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_1.png'><img src='assets/images/packagename_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_2.png'><img src='assets/images/packagename_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_3.png'><img src='assets/images/packagename_3.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_4.png'><img src='assets/images/packagename_4.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
            
            <div style="float:left; margin:2px 5px;"><a href='assets/images/packagename_5.png'><img src='assets/images/packagename_5.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        </div>
        
        <p>
            You can change it easily from Eclipse. Here are the steps: 
            <ul>
                <li>Right Cilck 'AndroidLiveTV' project from Package Explorer > Android Tools > Rename Application Package > Finish.</li>
                <li>Refactroing dailog present and click Finish</li>
                <li>Package Name Changed in AndroidMainfest.xml but not in Application Package hierarchy so select Package name Right Click >
                Go to Refactor > Rename >Enter Package Name > Finish</li>
            </ul>            
        </p> 
        
        <hr>
        
        
        <h3 id="appname"><strong>How to change app name?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/appname_3.png'><img src='assets/images/appname_3.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/appname_2.png'><img src='assets/images/appname_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/appname_1.png'><img src='assets/images/appname_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <p>
            <ol>
                <li>Open Eclipse >Android Live TV> res > values > strings.xml</li>
                <li>Select 'strings.xml' tab next to 'Resources' tab</li>
                <li>Enter your app name inside <b>"app_name"</b> string tag:<br /><code>&lt;string name="app_name"&gt;<b>Android Live TV</b>&lt;/string&gt;</code></li>
                <li>if you want change Project name also then >Right Cilck 'AndroidLiveTV' project from Package Explorer >Refactor > Rename >Enter Application Name > Finish</li>
            </ol>
            This will change both title inside the app & app icon name.
        </p> 
        
        <hr>
        
        
        
        <h3 id="serverconfig"><strong>How to Configure Webservice In Your Server?</strong> - <a href="#toc">top</a></h3>
        <div style='float:right; padding:0 0 20px 20px'><iframe width="420" height="345" src="http://www.youtube.com/embed/L0IvojaAllI" style='border:1px solid #aaa'></iframe></div>    
        
        <p>
            <ol>
                <li>First of all find the  Livetv_web_services  folder from the downloaded package.</li>
                <li>Copy these folder and paste it in the htdocs  folder(if you have Wampp installed then put it into www)</li>
                <li>Then create a database and import the database from the db folder.</li>
                <li>4.Aftre creating database configure the connection file,which is in the includes folder of your package.<br>

                    <b>$serverIp="localhost"; <br> 
                    $userName="root";<br>
                    $password="";<br>
                    $dbname="live_tv ";<br></b>
    
                That’s all,now run the webservice : <b>http://localhost/Livetv_web_services/index.php</b>
                for <b>Live set up </b>Follow the video tutorial ahead.
</li>
            </ol>
            
        </p> 
        
        
        <hr>

    <h3 id="serverurl"><strong>Where to put Server Url in Application?</strong> - <a href="#toc">top</a></h3>
    
    <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/serverurl_1.png'><img src='assets/images/serverurl_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
    
    <p>
            <ol>
                <li>Select Project > go to com.example.util package > Constant.java Class</li>
                <li> Open Constant.java</li>
                <li> now if your Sever is http://abc.com so your service url like that <b>http://abc.com/api.php</b> and </br><b>http://abc.com/api.php?cat_id=</b> and image path <b>http://abc.com/images</b></li>
                
            </ol>
            </p>
    
    <hr>
    
        <h3 id="howtoadd"><strong>How to add category and its items into webservice?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px; width:400px;'>
        
            <div style="float:left; margin:2px 5px;"><a href='assets/images/howtoadd_1.png'><img src='assets/images/howtoadd_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
            <div style="float:left; margin:2px 5px;"><a href='assets/images/howtoadd_2.png'><img src='assets/images/howtoadd_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
            <div style="float:left; margin:2px 5px;"><a href='assets/images/howtoadd_3.png'><img src='assets/images/howtoadd_3.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
            <div style="float:left; margin:2px 5px;"><a href='assets/images/howtoadd_4.png'><img src='assets/images/howtoadd_4.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
            
             
        </div>
            
        <p>
        open your admin panel</br>
        <b>Now we first uploaded category.</b>]
        <ol>
            <li>Go to Manage category.</li>
            <li>Right Side Press Add category.</li>
            <li>Enter Category Name. </li>
            <li>Choose image of category.</li>
        </ol>
        
        <b>Now we enter the item of that category.</b>
        <ol>
            <li>Go to Channel List</li>
            <li>right side press Add Channel</li>
            <li>then select category</li>
            <li>enter Name and Channel url,Description and Submit</li>
             
        </ol>
        </p>
        <hr>
    
        
        <h3 id="admob_id"><strong>How to change AdMob publisher id?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/admobid.png'><img src='assets/images/admobid.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
        <p>
            <ol>
                <li>Open Eclipse > AndroidLiveTV > res > values > strings.xml</li>
                <li>Select 'strings.xml' tab next to 'Resources' tab</li>
                <li>Enter your AdMob publisher id inside <b>"admob_publisher_id"</b> string tag:<br /><code>&lt;string name="admob_publisher_id"&gt;<b>Your AdMob ID Here</b>&lt;/string&gt;</code></li>
                
            </ol>
        </p> 
        <hr>
        
        
        
        <h3 id="startapp_id"><strong>How to change StartApp Ad Id/Developer Id?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/startapp_2.png'><img src='assets/images/startapp_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/startapp_1.png'><img src='assets/images/startapp_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <p>
            <ol>
                <li>Open Eclipse > AndroidLiveTV > res > values > strings.xml</li>
                <li>Select 'strings.xml' tab next to 'Resources' tab</li>
                <li>Enter your StartApp Application id inside <b>"startapp_app_id"</b> string tag:<br /><code>&lt;string name="startapp_app_id"&gt;<b>Your StartApp Application ID</b>&lt;/string&gt;</code></li>
                <li>Enter your StartApp Developer id inside <b>"startapp_dev_id"</b> string tag:<br /><code>&lt;string name="startapp_dev_id"&gt;<b>Your StartApp Developer ID</b>&lt;/string&gt;</code></li>
                <li>Open AndroidMainfiest.xml > Change in Startapp Code</li>
            </ol>
        </p> 
        
        <hr>
        
        
        
        <h3 id="about"><strong>How to change 'About' section?</strong> - <a href="#toc">top</a></h3>
        
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/about.png'><img src='assets/images/about.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>        
        <p>
            <ol>
                <li>Go to: Eclipse > AndroidLiveTV > assets >index.html</li>
                <li>Right click index.html > Open With > Text Editor</li>
                <li>It will open into a text editor inside Eclipse, make your necessary changes & save</li>
            </ol>
             
        </p> 
    <hr>
    
    <h3 id="splash"><strong>How to change 'Splash Screen and Application Icon' ?</strong> - <a href="#toc">top</a></h3>
    
    <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/appicon.png'><img src='assets/images/appicon.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
    <p>
        <b>How To Change Application Icon</b>
        <ol>
            <li>Open Eclipse > AndroidLiveTV > res > drawable-mdpi > appicon.png</li>
            <li>Rename your icon with appicon.png and paste in drawable-mdpi folder</li>
        </ol>
        
        <b>How To Change Splash Screen</b>
        <ol>
            <li>Open Eclipse > AndroidLiveTV > res > drawable > splash.png</li>
            <li>Rename your splash screen image  with splash.png and paste in drawable folder</li>
        </ol>
        
    </p>
    
    <hr>
        
        <h3 id="checkchannel"><strong>How to Check Channel Url is Working Properly?</strong> - <a href="#toc">top</a></h3>
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/vlc_check_3.png'><img src='assets/images/vlc_check_3.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/vlc_check_2.png'><img src='assets/images/vlc_check_2.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        <div style='float:right; padding:0 0 20px 20px'><a href='assets/images/vlc_check_1.png'><img src='assets/images/vlc_check_1.png' alt='' title='Click to view' height='100' style='border:1px solid #aaa'></a></div>    
        
        <p>
        There are lots of channel list available in internet but some them not work properly,So here is method how to check that channel is working or not?
            <ol>
                <li>Open VLC Media Player > Media > Open Network Stream..(Ctrl+N) > 3rd Tab Network >Enter Channel url</li>
                <li>If Channel Working Properly Then its Play otherwise its give error dialog</li>
                <li>if channel not play in VLC that channel aslo not play in device</li>
                 
            </ol>
        </p> 
        
        <hr>
        
        <h3 id="graphics"><strong>Graphics</strong> - <a href="#toc">top</a></h3>
        
        <p>You will find all image into /res/drawable-mdpi/,/res/drawable-hdpi/,/res/drawable-xhdpi/ folder. Just create your own graphics and replace those files. Create seperate graphics of different device screen sizes & place them into other drawble folders (drawable-hdpi & drawable-xhdpi) with same file name found at drawable-mdpi folder.  Check here for more information: <a href='http://developer.android.com/design/style/devices-displays.html'>Devices and Displays</a> & <a href='http://developer.android.com/guide/practices/screens_support.html'>Supporting Multiple Screens</a>.</p>
        
        <hr>
        
        
        
        <h3 id="showcase"><strong>App Showcase</strong> - <a href="#toc">top</a></h3>
        
        <p>Once you will publish your app to Google Play or any other Android store, send us your app link. We will happy to showcase your app into our website & CodeCanyon page.</p> 
        
        <hr>
        
        
        
        <h3 id="rating"><strong>Rating</strong> - <a href="#toc">top</a></h3>
        
        <p>If you like our app, we will highly appreciate if you can provide us a rating of 5. You can rate us from your CodeCanyon Menu > Download page.</p> 
        
        <hr>
        
        
        <h3 id="credits"><strong>Credits</strong> - <a href="#toc">top</a></h3>
        
        <p>I've used folowing sources into this app:
        
        <ul>
            <li><a href='http://www.vitamio.org/en/'>Vitamio SDK</a> for video playback. The SDK is free for individual developers. Otherwise you might need to purchase the license before using it. <a href='http://www.vitamio.org/en/License/'>Check here</a> for license information.</li>            
            <li><a href='http://actionbarsherlock.com/'>ActionBarSherlock</a></li>
                        
        </ul>
        
        <hr>
        
        
        
        <p>Once again, thank you so much for purchasing this app. As I said at the beginning, I'd be glad to help you if you have any questions relating to this app. No guarantees, but I'll do my best to assist. If you have a more general question relating to the apps on CodeCanyon, you might consider visiting the "FAQ / Support" section and asking your question in the "Comments" section at CodeCanyon app detail page.</p> 
        
        <p class="append-bottom alt large"><strong>M.R.X_isc</strong><br /><strong><a href='http://www.viavi.in'>Viavi WebTech-M.R.X</a></strong></p>

        <p><a href="#toc">Go To Table of Contents</a></p>
        
        <hr class="space">
    </div><!-- end div .container -->
</body>
</html>


DB = live_TV.sql
Code:
- phpMyAdmin SQL Dump
- versi 4.1.8
- http://www.phpmyadmin.net
-
- Host: localhost
- Waktu Pembuatan: 16 April 2019 pukul 16:43
- Versi server: 5.1.73-cll
- Versi PHP: 5.4.23

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `viaviw56_live_tv`
--

-- --------------------------------------------------------

--
-- Struktur tabel untuk tabel `tbl_admin`
--
CREATE TABLE IF NOT EXISTS `tbl_admin` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(100) NOT NULL,
  `password` varchar(100) NOT NULL,
  `email` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- dumping data untuk tabel `tbl_admin`
--

INSERT INTO `tbl_admin` (`id`, `username`, `password`, `email`) VALUES
(1, 'admin', 'adminq1w2', '[email protected]');

-- --------------------------------------------------------

--
-- Struktur tabel untuk tabel `tbl_category`
--

CREATE TABLE IF NOT EXISTS `tbl_category` (
  `cid` int(11) NOT NULL AUTO_INCREMENT,
  `category_name` varchar(255) NOT NULL,
  `category_image` varchar(255) NOT NULL,
  PRIMARY KEY (`cid`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;

--
-- Dumping data untuk table `tbl_category`
--
INSERT INTO `tbl_category` (`cid`, `category_name`, `category_image`) VALUES
(3, 'News Channel', '18290_news.png'),
(5, 'Movie Channels', '34114_movie.png'),
(6, 'Science Channel', '93817_science.png'),
(7, 'Music Channel', '78220_Music.png');

-- --------------------------------------------------------

--
-- Table structure untuk tabel `tbl_channels`
--

CREATE TABLE IF NOT EXISTS `tbl_channels` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `cat_id` int(11) NOT NULL,
  `channel_title` varchar(100) NOT NULL,
  `channel_url` varchar(255) NOT NULL,
  `channel_thumbnail` varchar(255) NOT NULL,
  `channel_desc` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=45 ;

--
-- Dumping data untuk tabel `tbl_channels`
--

INSERT INTO `tbl_channels` (`id`, `cat_id`, `channel_title`, `channel_url`, `channel_thumbnail`, `channel_desc`) VALUES
(16, 3, 'Aaj Tak', 'rtsp://46.249.213.87:554/playlists/aajtak_hvga.hpl.3gp ', '55293_aajtak.jpg', 'Aaj Tak is a 24-hour Hindi news television channel owned by TV Today Network Ltd.. Aaj Tak loosely translates as "Till Today" or "Up to the Minute". In India, Aaj Tak is a free-to-air channel\r\n\r\nAaj Tak has won the Indian Television Academy Award for Best'),
(17, 3, 'India TV ', 'rtsp://46.249.213.93:554/playlists/india-tv_hvga.hpl.3gp ', '51855_india_tv.jpg', 'India TV is a Hindi news channel based in Noida, Uttar Pradesh, India. The channel was launched on May 20, 2004 just 2 days before BJP''s tenure in government was ending (On 22nd May 2004) by Rajat Sharma and wife Ritu Dhawan.The channel is the flagship se'),
(18, 3, 'NDTV Profit ', 'http://bglive-a.bitgravity.com/ndtv/prolo/live/native', '8803_ndtvprofit.jpg', 'NDTV Profit is a business news channel started by New Delhi Television in January 2005\r\nIt has a large number of journalists covering the action from the Bombay Stock Exchange (BSE) and the National Stock Exchange of India (NSE). Furthermore, it also cove'),
(19, 3, 'NDTV', 'http://bglive-a.bitgravity.com/ndtv/247hi/live/native', '39936_ndtv_india.jpg', 'New Delhi Television Limited (NDTV) is an Indian commercial broadcasting television network founded in 1988 by Radhika Roy and Prannoy Roy. NDTV is an acronym for the original name of the company, New Delhi Television. Vikramaditya Chandra is the Chief Ex'),
(20, 3, 'Sahara Samay', 'rtsp://cdn.m.yupptv.tv/liveorigin/saharasamaynew1', '66427_Sahara_Samay_National.jpg', 'This is news channel owner of sahara group'),
(21, 3, 'CNBC TV', 'rtsp://202.159.213.30:554/cnbctv18_mobC.sdp?token=923152409036', '73548_cnbc_tv18.jpg', 'This is news Channel Related to Stock Market.'),
(22, 3, 'CNBC Awaaz', 'rtsp://202.159.213.30:554/cnbcawaaz_mobC.sdp?token=923152409036', '78629_cnbc_awaaz.jpg', 'CNBC Awaaz is a Hindi business news TV channel in India. The channel is a joint venture between CNBC and Television Eighteen India Limited (TV18) based in New Delhi.'),
(23, 3, 'Channel 9', 'http://72.46.226.53/live01/_definst_/canal91/playlist.m3u8', '38561_channel9_bd.jpg', 'Channel 9 broadcasts in color, but -as well as many other TV channels outside Buenos Aires- it has monophonic sound only.'),
(24, 3, 'Lemon News', 'http://tata.live.cdn.bitgravity.com/lemon/live/feed01', '2492_lemonnews.jpg', 'This is Indain News Channel'),
(25, 3, 'HMTV ', 'rtsp://cdn.m.yuppcdn.net/liveorigin/hmtv2', '68619_hmtv.jpg', 'HMTV is a 24-hour Telugu news channel. It is owned by Hyderabad Media House Ltd. The Chief editor of the channel is K. Ramachandra Murthy, a Senior Telugu Editor and Journalist who worked with Andhra Jyothi, Vartha, Udayam news papers for many years.'),
(26, 3, 'ETV ', 'http://cdn.m.yuppcdn.net/liveorigin/smil:etv2.smil/hasbahca.m3u8', '57389_etv.jpg', 'ETV Regional Channels, bouquet of 12 regional channels are source of rich infotainment to audiences in the language of their choice'),
(27, 3, 'Zee News', 'rtsp://202.159.213.30:554/zeenews_mobC.sdp?token=923152409036', '8082_zeenews.jpg', 'Zee News is an Indian news and current affairs channel founded in 1999. It is owned by Zee News Ltd. Initially, most of the programs were broadcast in English.Zee News was converted into a complete Hindi news channel.'),
(28, 3, 'DD National', 'rtsp://202.159.213.30:554/ddnational_mobC.sdp?token=923152409036', '43557_ddnational.jpg', 'DD National (DD1) is a state-owned general interest terrestrial television channel in India. It is the flagship channel of Doordarshan, the Indian public service broadcasting corporation, and the most widely available terrestrial television channel in Ind'),
(29, 5, 'Cartoon Network', 'rtmp://103.7.56.16:1935/live/dfrcar.stream', '5348_cn.jpeg', 'Cartoon Network (CN) is an American basic cable and satellite television channel that is owned by the Turner Broadcasting System division of Time Warner. The channel airs mainly animated programming, ranging from action to animated comedy, along with some'),
(30, 5, 'Sab Tv', 'rtsp://46.249.213.93:554/playlists/sonysabtv_hvga.hpl.3gp', '19253_sab.jpg', 'The channel was launched on April 23, 2000 by Sri Adhikari Brothers as a general entertainment channel. In 2003, it was repositioned as a comedy-centric channel. In March 2005, SAB TV was acquired by Sony Entertainment Television and was transformed into '),
(31, 5, 'Zing Tv', 'rtsp://217.146.95.166:554/live/ch28zqcif.3gp', '82595_zing.jpg', 'Zing, formerly known as Zee Muzic and Music Asia, is an India-based satellite music television channel owned by Zee Entertainment Enterprises, which carries broadcasts in Hindi and other regional languages of India. As well as broadcasting in South Asia, '),
(32, 5, 'Fashion Tv', 'http://edgeb.streaming.sk/fashiontv/fashiontv.stream/playlist_b125000_w304569164.m3u8?', '25996_fashion.jpg', 'FashionTV is an international fashion and lifestyle broadcasting television channel. Founded in France in 1997 by its Polish-born president Michel Adam Lisowski, FashionTV has become one of the most widely distributed satellite channels in the world: 31 s'),
(33, 5, 'Zee Cafe', 'rtsp://202.159.213.30:554/zeecafe_mobC.sdp?token=923152409036', '74174_Zee_Cafe_2005.jpg', 'Zee Café is an Indian English-hindi language cable and satellite television channel owned by Zee Entertainment Enterprises, a subsidiary of the Essel Group'),
(34, 5, 'Colors Tv', 'rtsp://202.159.213.30:554/colors_mobC.sdp?token=923152409036', '44649_Colors_TV.jpg', 'Colors, known as Aapka Colors in the United States and Canada, is a Hindi language Indian general entertainment channel based in Mumbai, part of the Viacom 18 family, which was launched on July 21, 2008.\r\n'),
(35, 5, 'Sony Tv', 'rtsp://202.159.213.30:554/sony_mobC.sdp?tokan=923152409036', '21027_sony.jpg', 'Sony Entertainment Television or SET, is a Hindi-language based general entertainment television channel in India. It was launched in October 1995 and is owned by Multi Screen Media Pvt. Ltd. (MSM, formerly SET India Private Limited), a subsidiary of Sony'),
(36, 5, 'Zee TV', 'rtsp://202.159.213.30:554/zeetv_mobC.sdp?tokan=923152409036', '94982_zee_network.jpg', 'Zee TV is an Indian cable and satellite television channel owned and operated by Zee Entertainment Enterprises, a media and entertainment company based in Mumbai.  It primarily airs programmes in Hindi and other regional languages of India. The channel is'),
(40, 7, 'Indie Music', 'rtsp://46.249.213.87:554/playlists/imtv_hvga.hpl.3gp ', '11557_indie.jpg', 'This Music channel based on Hindi Movie'),
(41, 7, 'Hungama Tv', 'rtsp://46.249.213.87:554/playlists/bollywood-hits_hvga.hpl.3gp ', '66056_Hungama_TV.jpg', 'This Music channel based on Hindi Movie'),
(42, 6, 'National Geographic', 'rtmp://103.7.56.16/live/fdgngo.stream', '70628_national_geo.jpg', 'National Geographic Channel (also commercially abbreviated and trademarked as Nat Geo) is an American digital cable and satellite television channel that is owned by the National Geographic Society and the Fox Cable Networks division of 21st Century Fox\r\n'),
(43, 6, ' Discovery Channel', 'rtmp://103.7.56.16:1935/live/rdddis.stream', '46708_discovrey.jpg', 'The Discovery Channel began broadcasting on June 17, 1985. It was initially available to 156,000 households and broadcast for 12 hours each day between 3 p.m. and 3 a.m. About 75 percent of its program content had never been broadcast on U.S. television b'),
(44, 6, 'History Tv', 'rtmp://103.7.56.16/live/dvghis.stream', '95050_histroy.jpg', 'History (originally The History Channel from 1995 to 2008) is an American basic cable and satellite television channel that is owned by A+E Networks, a joint venture between the Hearst Corporation and the Disney–ABC Television Group division of The Walt');

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

folder inc - > connection.php
Code:
<?php
    session_start();

    //local db
  
    if($_SERVER['HTTP_HOST']=="localhost")
    {
    $serverIp="localhost";
    $userName="root";
    $password="";
    $dbname="live_tv";
  
    }else
    {
    //Live
   
    $serverIp="localhost";
    $userName="USERNAME";
    $password="PASSWORD";
    $dbname="DATABASENAME";
    }
    $cn=mysql_connect($serverIp,$userName,$password) OR Die("Couldn't Connect - ".mysql_error());
    $link=mysql_select_db($dbname,$cn)or Die("Couldn't SELCECT - ".mysql_error());
  
?>

folder inc - > footer.php
Code:
<p id="footer">All Right Reserved. <a href="http://www.viaviweb.com" target="_blank">VIAVIWEB_M.R.X</a></p>
    </div>
    <!-- // #wrapper -->
</body>
</html>

folder inc - > function.php
Code:
<?php error_reporting(0);
require_once("thumbnail_images.class.php");
class k_wallpaper
{

//Category Query  
    function addCategory()
    {
      
        $albumimgnm=rand(0,99999)."_".$_FILES['image']['name'];
             $pic1=$_FILES['image']['tmp_name'];
              if(!is_dir('images'))
               {
          
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$albumimgnm;
              
                 copy($pic1,$tpath1);
               
               
                        $thumbpath='images/thumbs/'.$albumimgnm;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 100;
                        $obj_img->NewHeight = 100;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
                          else
                          {
                                 
                                $cat_result=mysql_query('INSERT INTO `tbl_category` (`category_name` ,`category_image`) VALUES (  \''.addslashes($_POST['category_name']).'\',\''.$albumimgnm.'\')');
      
                              
                          }

      
    }
  
    function editCategory()
    {
           
           
    if($_FILES['image']['name']=="")
         {
      
        $cat_result=mysql_query('UPDATE `tbl_category` SET `category_name`=\''.addslashes($_POST['category_name']).'\' WHERE cid=\''.$_GET['cat_id'].'\'');

        }
        else
        {
      
            //Image Unlink
          
            $img_res=mysql_query('SELECT * FROM tbl_category WHERE cid=\''.$_GET['cat_id'].'\'');
            $img_row=mysql_fetch_assoc($img_res);
          
            if($img_row['category_image']!="")
            {
                unlink('images/'.$img_row['category_image']);
                unlink('images/thumbs/'.$img_row['category_image']);
            }  
      
            //Image Upload
            $albumimgnm=rand(0,99999)."_".$_FILES['image']['name'];
             $pic1=$_FILES['image']['tmp_name'];
             
      
               if(!is_dir('images'))
               {
          
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$albumimgnm;
              
                 copy($pic1,$tpath1);
               
               
                        $thumbpath='images/thumbs/'.$albumimgnm;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 100;
                        $obj_img->NewHeight = 100;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
                          else
                          {
                                 
                                 $cat_result=mysql_query('UPDATE `tbl_category` SET `category_name`=\''.addslashes($_POST['category_name']).'\',`category_image`=\''.$albumimgnm.'\' WHERE cid=\''.$_GET['cat_id'].'\'');
                           }
        }

    }
  
    function deleteCategory()
    {
      
      
        $channel_res=mysql_query('SELECT * FROM `tbl_channels` WHERE cat_id=\''.$_GET['cat_id'].'\'');
        while($channel_row=mysql_fetch_assoc($channel_res)){
      
            if($channel_row['channel_url']!="")
            {
                $string=$channel_row['channel_url'];
                list($a,$b)=split('channel/',$string);
                unlink('channel/'.$b);
            }
            if($channel_row['channel_thumbnail']!="")
            {
                unlink('images/thumbs/'.$channel_row['channel_thumbnail']);
                unlink('images/'.$channel_row['channel_thumbnail']);
            }
        }
        $channel_result=mysql_query('DELETE FROM `tbl_channels` WHERE cat_id=\''.$_GET['cat_id'].'\'');
      
        $img_res=mysql_query('SELECT * FROM tbl_category WHERE cid=\''.$_GET['cat_id'].'\'');
        $img_row=mysql_fetch_assoc($img_res);
          
            if($img_row['category_image']!="")
            {
                unlink('images/thumbs/'.$img_row['category_image']);
                unlink('images/'.$img_row['category_image']);
               
            }  
      
        $cat_result=mysql_query('DELETE FROM `tbl_category` WHERE cid=\''.$_GET['cat_id'].'\'');
    }


//Image Gallery
    function addchannel()
    {
    if($_POST['channel_url']!="")
    {
  
  
    if($_FILES['thumbnail']['name']!="")  
    {
    $thumbname=rand(0,99999)."_".$_FILES['thumbnail']['name'];
             $thumb1=$_FILES['thumbnail']['tmp_name'];
             if(!is_dir('images'))
               {
          
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$thumbname;
              
                 copy($thumb1,$tpath1);
               
               
                        $thumbpath='images/thumbs/'.$thumbname;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 100;
                        $obj_img->NewHeight = 100;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
    }
     $res=mysql_query('INSERT INTO `tbl_channels` (`cat_id`,`channel_title`,`channel_url`,`channel_thumbnail`,`channel_desc`) VALUES (\''.$_POST['category_id'].'\',\''.$_POST['channel_title'].'\',\''.$_POST['channel_url'].'\',\''.$thumbname.'\',
     \''.addslashes($_POST['channel_description']).'\')');
    }
    }
      
    function editchannel()
    {
    /*    if($_POST['channel_url']="")
    {
        if($_FILES['thumbnail']['name']!="")
    {
        $thumbname=rand(0,99999)."_".$_FILES['thumbnail']['name'];
             $thumb1=$_FILES['thumbnail']['tmp_name'];
             if(!is_dir('images'))
               {
          
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$thumbname;
              
                 copy($thumb1,$tpath1);
               
               
                        $thumbpath='images/thumbs/'.$thumbname;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 72;
                        $obj_img->NewHeight = 72;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
                          $channel_res=mysql_query('SELECT * FROM `tbl_gallery` WHERE id=\''.$_GET['channel_id'].'\'');
                              $channel_row=mysql_fetch_assoc($channel_res);
                              if($channel_row['channel_thumbnail']!="")
                            {
                            unlink('images/thumbs/'.$channel_row['channel_thumbnail']);
                                unlink('images/'.$channel_row['channel_thumbnail']);
                            }
    }
    else
    {
        $channel_res=mysql_query('SELECT * FROM `tbl_gallery` WHERE id=\''.$_GET['channel_id'].'\'');
        $channel_row=mysql_fetch_assoc($channel_res);
        $thumbname=$channel_row['channel_thumbnail'];
      
    }
    $res=mysql_query('UPDATE `tbl_gallery` SET `cat_id`=\''.$_POST['category_id'].'\',`channel_title`=\''.addslashes($_POST['channel_title']).'\',`channel_thumbnail`=\''.$thumbname.'\',`channel_desc`=\''.addslashes($_POST['channel_description']).'\' WHERE id=\''.$_GET['channel_id'].'\'');
    }
    */
    if($_POST['channel_url']!="")
    {
  
    $channel=$_POST["channel_url"];
          
    if($_FILES['thumbnail']['name']!="")
    {
        $thumbname=rand(0,99999)."_".$_FILES['thumbnail']['name'];
             $thumb1=$_FILES['thumbnail']['tmp_name'];
             if(!is_dir('images'))
               {
          
                       mkdir('images', 0777);
               }
              $tpath1='images/'.$thumbname;
              
                 copy($thumb1,$tpath1);
               
               
                        $thumbpath='images/thumbs/'.$thumbname;
                        $obj_img = new thumbnail_images();
                        $obj_img->PathImgOld = $tpath1;
                        $obj_img->PathImgNew =$thumbpath;
                        $obj_img->NewWidth = 100;
                        $obj_img->NewHeight = 100;
                        if (!$obj_img->create_thumbnail_images())
                          {
                            echo $_SESSION['msg']="Thumbnail not created... please upload image again";
                            exit;
                          }
                          $channel_res=mysql_query('SELECT * FROM `tbl_channels` WHERE id=\''.$_GET['channel_id'].'\'');
                              $channel_row=mysql_fetch_assoc($channel_res);
                              if($channel_row['channel_thumbnail']!="")
                            {
                            unlink('images/thumbs/'.$channel_row['channel_thumbnail']);
                                unlink('images/'.$channel_row['channel_thumbnail']);
                            }
    }
    else
    {
        $channel_res=mysql_query('SELECT * FROM `tbl_channels` WHERE id=\''.$_GET['channel_id'].'\'');
        $channel_row=mysql_fetch_assoc($channel_res);
        $thumbname=$channel_row['channel_thumbnail'];
    }
    $res=mysql_query('UPDATE `tbl_channels` SET `cat_id`=\''.$_POST['category_id'].'\',`channel_title`=\''.addslashes($_POST['channel_title']).'\',`channel_url`=\''.$_POST['channel_url'].'\',`channel_thumbnail`=\''.$thumbname.'\',`channel_desc`=\''.addslashes($_POST['channel_description']).'\' WHERE id=\''.$_GET['channel_id'].'\'');
  
    }
    }
  
    function deletechannel()
    {
            $channel_res=mysql_query('SELECT * FROM `tbl_channels` WHERE id=\''.$_GET['channel_id'].'\'');
            $channel_row=mysql_fetch_assoc($channel_res);
          
            if($channel_row['channel_thumbnail']!="")
            {
                unlink('images/thumbs/'.$channel_row['channel_thumbnail']);
                unlink('images/'.$channel_row['channel_thumbnail']);
            }
            $img_result=mysql_query('DELETE FROM `tbl_channels` WHERE id=\''.$_GET['channel_id'].'\'');
    }  
  
    function editProfile()
{
  
   $res=mysql_query('UPDATE `tbl_admin` SET `username`=\''.$_POST['username'].'\',`password`=\''.$_POST['password'].'\',`email`=\''.$_POST['email'].'\' WHERE id=\''.$_SESSION['id'].'\'');
}  
}
?>

folder inc - > header.php
Code:
<?php include("includes/connection.php");
      include("includes/session_check.php");
    
      //Get file name
      $currentFile = $_SERVER["SCRIPT_NAME"];
      $parts = Explode('/', $currentFile);
      $currentFile = $parts[count($parts) - 1];     
          
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Live Tv Admin</title>

<!-- CSS -->
<link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie6.css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie7.css" /><![endif]-->

<link rel="shortcut icon" href="images/favicon.png" />

<!-- JavaScripts-->
<script type="text/javascript" src="style/js/jquery.js"></script>
<script type="text/javascript" src="style/js/jNice.js"></script>
</head>

<body>
    <div id="wrapper">
        <!-- h1 tag stays for the logo, you can use the a tag for linking the index page -->
        <h1><a href="home.php"><span>Transdmin Light</span></a></h1>
      
        <!-- You can name the links with lowercase, they will be transformed to uppercase by CSS, we prefered to name them with uppercase to have the same effect with disabled stylesheet -->
        <ul id="mainNav">
            <li><a href="home.php" <?php if($currentFile=="home.php"){?>class="active"<?php }?>>DASHBOARD</a></li> <!-- Use the "active" class for the active menu item  -->
           
            <li class="logout"><a href="logout.php">LOGOUT</a></li>
        </ul>
        <!-- // #end mainNav -->
      
        <div id="containerHolder">
            <div id="container">
                <div id="sidebar">
                    <ul class="sideNav">
                        <li><a href="manage_category.php" <?php if($currentFile=="manage_category.php")

folder inc - > session_check.php
Code:
<?php
  
    if(!isset($_SESSION['admin_name']))
    {
        session_destroy();
      
        echo "<script language=javascript type=text/javascript>document.location='index.php';</script>";
    }  
?>


code di atas hanyalah sedikit review dari beberapa cara kerjanya :

source code bisa di DOWNLOAD DIBAWAH INI :
Klik - >
TVLive.


sekian
Mantabbbb maszeh, maturtengkyu...:ampun:
 
Jav Toys
Gaple Online Indonesia
Pasang iklan hanya lewat CONTACT US
Back
Top
We are now part of LS Media Ltd