# 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:

### 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zeasn-reommend.gitbook.io/project/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
