代码拉取完成,页面将自动刷新
同步操作将从 AnJoiner/FFmpegCommand 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
package com.coder.ffmpegtest.ui
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.text.method.ScrollingMovementMethod
import android.view.View
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.coder.ffmpeg.annotation.FormatAttribute
import com.coder.ffmpeg.jni.FFmpegCommand
import com.coder.ffmpegtest.R
/**
*
* @author: AnJoiner
* @datetime: 20-11-14
*/
class KFFmppegFormatActivity : AppCompatActivity() {
private var btnInputFormat: Button?=null
private var btnOutputFormat: Button?=null
private var tvContent: TextView? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_ffmpeg_format)
init()
}
private fun init(){
initView()
initListener()
}
private fun initView() {
btnInputFormat = findViewById(R.id.btn_input_format)
btnOutputFormat = findViewById(R.id.btn_output_format)
tvContent = findViewById(R.id.tv_content)
tvContent?.movementMethod = ScrollingMovementMethod.getInstance();
}
private fun initListener(){
btnInputFormat?.setOnClickListener {
tvContent?.text=FFmpegCommand.getSupportFormat(FormatAttribute.INPUT_FORMAT)
}
btnOutputFormat?.setOnClickListener {
tvContent?.text=FFmpegCommand.getSupportFormat(FormatAttribute.OUTPUT_FORMAT)
}
}
companion object{
fun start(context: Context){
val intent = Intent(context,KFFmppegFormatActivity::class.java)
context.startActivity(intent)
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。