<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Android_Studio%3A_Video_Player_URL_Sederhana_4</id>
	<title>Android Studio: Video Player URL Sederhana 4 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Android_Studio%3A_Video_Player_URL_Sederhana_4"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Video_Player_URL_Sederhana_4&amp;action=history"/>
	<updated>2026-04-20T13:23:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Video_Player_URL_Sederhana_4&amp;diff=64759&amp;oldid=prev</id>
		<title>Unknown user: /* MainActivity.java */</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Video_Player_URL_Sederhana_4&amp;diff=64759&amp;oldid=prev"/>
		<updated>2022-03-20T06:14:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;MainActivity.java&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:14, 20 March 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot;&gt;Line 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      // Your Video URL&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      // Your Video URL&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      String videoUrl = &quot;https://&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;media&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;geeksforgeeks&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;org&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;wp-content&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;uploads&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;20201217192146/Screenrecorder-2020-12-17-19-17-36-828&lt;/del&gt;.mp4&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;?_=1&lt;/del&gt;&quot;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      String videoUrl = &quot;https://&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;onnocenter&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;or&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;id&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pustaka&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;VIDEO&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;internetofflineinstallmoodle&lt;/ins&gt;.mp4&quot;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      @Override&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      @Override&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Unknown user</name></author>
	</entry>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Video_Player_URL_Sederhana_4&amp;diff=64721&amp;oldid=prev</id>
		<title>Unknown user: Created page with &quot;==AndroidManifest.xml ==   &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot;/&gt;   ==activity_main.xml==   &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;  &lt;RelativeLayout...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Video_Player_URL_Sederhana_4&amp;diff=64721&amp;oldid=prev"/>
		<updated>2022-03-17T07:29:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==AndroidManifest.xml ==   &amp;lt;uses-permission android:name=&amp;quot;android.permission.INTERNET&amp;quot;/&amp;gt;   ==activity_main.xml==   &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;  &amp;lt;RelativeLayout...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==AndroidManifest.xml ==&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;uses-permission android:name=&amp;quot;android.permission.INTERNET&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==activity_main.xml==&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;RelativeLayout &lt;br /&gt;
     xmlns:android=&amp;quot;http://schemas.android.com/apk/res/android&amp;quot;&lt;br /&gt;
     xmlns:tools=&amp;quot;http://schemas.android.com/tools&amp;quot;&lt;br /&gt;
     android:layout_width=&amp;quot;match_parent&amp;quot;&lt;br /&gt;
     android:layout_height=&amp;quot;match_parent&amp;quot;&lt;br /&gt;
     tools:context=&amp;quot;.MainActivity&amp;quot;&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
     &amp;lt;!-- adding VideoView to the layout --&amp;gt;&lt;br /&gt;
     &amp;lt;VideoView&lt;br /&gt;
         android:id=&amp;quot;@+id/videoView&amp;quot;&lt;br /&gt;
         android:layout_width=&amp;quot;match_parent&amp;quot;&lt;br /&gt;
         android:layout_height=&amp;quot;match_parent&amp;quot;&lt;br /&gt;
         android:layout_centerInParent=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
 &amp;lt;/RelativeLayout&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MainActivity.java==&lt;br /&gt;
&lt;br /&gt;
 import android.net.Uri;&lt;br /&gt;
 import android.os.Bundle;&lt;br /&gt;
 import android.widget.MediaController;&lt;br /&gt;
 import android.widget.VideoView;&lt;br /&gt;
 &lt;br /&gt;
 import androidx.appcompat.app.AppCompatActivity;&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
 public class MainActivity extends AppCompatActivity {&lt;br /&gt;
   &lt;br /&gt;
     // Your Video URL&lt;br /&gt;
     String videoUrl = &amp;quot;https://media.geeksforgeeks.org/wp-content/uploads/20201217192146/Screenrecorder-2020-12-17-19-17-36-828.mp4?_=1&amp;quot;;&lt;br /&gt;
   &lt;br /&gt;
     @Override&lt;br /&gt;
     protected void onCreate(Bundle savedInstanceState) {&lt;br /&gt;
         super.onCreate(savedInstanceState);&lt;br /&gt;
         setContentView(R.layout.activity_main);&lt;br /&gt;
   &lt;br /&gt;
         // finding videoview by its id&lt;br /&gt;
         VideoView videoView = findViewById(R.id.videoView);&lt;br /&gt;
   &lt;br /&gt;
         // Uri object to refer the &lt;br /&gt;
         // resource from the videoUrl&lt;br /&gt;
         Uri uri = Uri.parse(videoUrl);&lt;br /&gt;
           &lt;br /&gt;
         // sets the resource from the&lt;br /&gt;
         // videoUrl to the videoView&lt;br /&gt;
         videoView.setVideoURI(uri);&lt;br /&gt;
           &lt;br /&gt;
         // creating object of &lt;br /&gt;
         // media controller class&lt;br /&gt;
         MediaController mediaController = new MediaController(this);&lt;br /&gt;
           &lt;br /&gt;
         // sets the anchor view &lt;br /&gt;
         // anchor view for the videoView&lt;br /&gt;
         mediaController.setAnchorView(videoView);&lt;br /&gt;
           &lt;br /&gt;
         // sets the media player to the videoView&lt;br /&gt;
         mediaController.setMediaPlayer(videoView);&lt;br /&gt;
           &lt;br /&gt;
         // sets the media controller to the videoView&lt;br /&gt;
         videoView.setMediaController(mediaController);&lt;br /&gt;
           &lt;br /&gt;
         // starts the video&lt;br /&gt;
         videoView.start();&lt;br /&gt;
     }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* https://www.geeksforgeeks.org/how-to-play-video-from-url-in-android/&lt;/div&gt;</summary>
		<author><name>Unknown user</name></author>
	</entry>
</feed>