针对iframe嵌入的YouTube Player API参考给出了奇怪的错误

时间:2019-03-05 02:59:02

标签: youtube-api

我从youtube播放器API中收到奇怪的错误,该错误几个小时前就可以正常工作了。

有人可以为我提供解决方案吗?

public class feature2 extends AppCompatActivity {

    ...

    // Add this method
    @Override
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);

        // Get data from intent
        String requirement = intent.getStringExtra("requirement");
        String day = intent.getStringExtra("day");
        float progress = intent.getFloatExtra("progress", 0F);

        // Update UI
        TextView requirements = findViewById(R.id.requirements);
        TextView Days = findViewById(R.id.days);
        DonutProgress dailyProgress = findViewById(R.id.donut_progress);

        requirements.setText(requirement);
        Days.setText(day);
        dailyProgress.setProgress(progress);
    }
}

0 个答案:

没有答案