On Samsung Knox devices, we can set or clear the Default media (video) player using Run Scripts.
Use Case
By setting a specific media player app as the default, we can:
- Ensure a consistent playback experience across devices.
- Prevent users from using unapproved or unsecured apps for video playback.
- Reset default app behavior when needed.
Purpose
This article explains how to select a specific App as a default media player for Samsung devices.
Prerequisites
Samsung KNOX should be enabled
Steps
Run Scripts
- To. Remove the Default Video Player
Use this script to clear the current default media player for video playback:
!#suremdm
SetDefaultApp(PLAY_VIDEO,clear)
- Set a Specific App as the Default Video Player
Use the following script to set a supported app as the default media player:
!#suremdm
SetDefaultApp(PLAY_VIDEO,package_name,activity_name)
Parameters:
- package_name: The full package name of the app (e.g., com.mxtech.videoplayer.ad)
- activity_name: The main activity class of the app (e.g., com.mxtech.videoplayer.ad.ActivityScreen)
Example:
!#suremdm
SetDefaultApp(PLAY_VIDEO,com.mxtech.videoplayer.ad,com.mxtech.videoplayer.ad.ActivityScreen)
1. On the SureMDM Console, click on Job > New Job > choose Android > click on Run Script Job.
2. Enter the Job Name, and in the text box, enter the Script

3. Select Save to save this Job.
Applying the Job to Devices
- Navigate to the SureMDM Home page.
- Select the desired device(s) or Group of devices
Select the Apply button (or Group-Apply button) and apply the above-created job.
Need help?