> For the complete documentation index, see [llms.txt](https://zeasn-reommend.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zeasn-reommend.gitbook.io/project/master.md).

# Deeplink spec for android

```java
{
  "pkg":"com.xxx.xxx",
  "className":"VideoActivity",
  "data":{
    "uri":"https://www.youtube.com/watch?videoid=545547"
  },
  "flag":0,
  "action":"android.intent.action.VIEW",
  "extra":[
    {
      "key":"force_fullscreen",
      "value":true
    }
  ]
}
```

Certain parameters in the JSON data above need to be configured in the backend, for example:1

### pkg

This parameter is the package name of an application, such as the package name for YouTube:

```
com.google.android.youtube.tv
```

The main function of this parameter is to facilitate locating the target activity of the application to be launched. This parameter can be provided by members of the WhaleTV Powered team.

### **className**

This parameter is used to specify the target activity to be launched. It is optional and can be provided by Android team members.

### data

This parameter contains a `uri` field. The string in the `uri` parameter should be generated according to the following rules:

* **scheme**: e.g., `http://`, `https://`
* **host**: e.g., `www.youtube.com/`
* **path**: Used to construct the path rules for video-on-demand across different platforms. For example, for YouTube:

```java
watch?videoid=545547
// The parameter name videoid above may vary depending on the platform, and it should be followed by the resource ID to be played.
// This will be concatenated by the backend and returned to the client.
```

### flag

This parameter is used to specify how Android launches the third-party platform's process for playing videos. Currently, it can be fixed as:

```
0x10000000
```

### action�

This parameter is an optional configuration for launching third-party applications on Android. Relevant information can be provided by Android team members, for example:

```
"android.intent.action.VIEW"
```

Additional string parameters may be required later and should be made configurable in the backend.

### extra

This parameter is used to specify additional key-value pairs to be passed when launching a third-party application. These should be configurable in the backend, with no limit on the number of key-value pairs. The specific parameter names and corresponding values can be provided by WhaleTV Powered team.
