跟踪的次视频被播放的次数 [英] Tracking the number of times a video was played

查看:129
本文介绍了跟踪的次视频被播放的次数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们,

这是我的工作项目要求在一定的视频可以在Android设备上播放为x次。之后,它必须停止播放。当客户端得到的视频文件,他或她也得到包含Android设备ID和时代的视频可以播放次数另一个文件。原始文件和元数据文件都被加密。

The project that I am working on requires that a certain video can be played on an android device for x number of times. After that, it must stop playing. When a client gets the video file, he or she also gets another file that contains the Android device ID and the number of times the video can be played. The original file and the metadata file are both encrypted.

我首先想到的是刚写的视频文件视频去$ C $铬。每次播放文件时,如果取消codeR首先检查Android设备和计数是有效的,递减计数,开始解密数据,并分流到随操作系统MPEG-4的德$ C $铬。

My first thought is just to write a video decoder for the video file. Each time the file is played, the decoder first checks if Android device and the count are valid, decrements the count, starts decrypting the data and streaming it to the mpeg-4 decoder shipped with the OS.

我想AP preciate你对这个想法的反馈。如果你觉得有更好的办法做到这一点,请分享你的看法。

I would appreciate your feedback on this idea. Please share your thoughts if you feel there is a better way to do it.

一个问题我看到的是在哪里存储实际计数。文件本身的保存,将无法正常工作,用户只需备份原文件和计数超过后更换。它具有被存储在无法由最终用户被篡改系统的某些其他部分。

One problem I see is where to store the actual count. Storing it in the file itself won't work as the user can simply backup the original file and replace it after the count exceeds. It has to be stored in some other part of the system that cannot be tampered by the end-user.

感谢您提前对您有所帮助。

Thank you in advance for your help.

问候,
彼得

推荐答案

无用存储它的实际设备上的任何地方,在任何地方,因为一个应用程序可以触摸用户也可以。最好的办法是使用远程服务器进行授权,但你得到欺骗的问题。但是,你真正的目标是使其成为一个麻烦事,不值得去,而不是使其无法破解身边,因为你不能。

Useless to store it anywhere on the actual device, because anywhere an app can touch a user can as well. Best bet is to use a remote server for authorization, but then you get spoofing problems. But your real goal is to make it a nuisance, not worth going around, instead of making it impossible to crack, because you can't.

好吧,最简单的方法是类似的东西,你首先提出,并需要没有进一步的基础设施:存储在一个文件中的信息。这是通过重新读入文件打败了,如你所说,但即使这是一个足够高的壁垒一些。

Okay, the simplest way would be similar to something you first suggested, and needs no further infrastructure: store the information in a file. This is defeated by reloading the file, as you suggested, but even that is a high enough barrier for some.

击败通过obsfucating你在哪里存储的信息重新读入文件。可能性包括文本文件(容易被发现),或者图像文件(如图片即是所谓按钮图像)。

Defeat reloading the file via obsfucating where you're storing the information. Possibilities include text files (easy to spot), or perhaps image files (like images that are supposedly button images).

请记住,只需要1人1次到播放点到录像机,你有一个完美的,无DRM限制的副本在野外跑来跑去。请记住,你只是试图使它很容易的查看合法和足够的难以破解(利用这些的差),人们不会打扰咔吧。

Remember, it only takes 1 guy 1 time to point the playback into a recorder, and you have a perfect, DRM-free copy running around in the wild. Remember that you're simply trying to make it easy enough to view legitimately and difficult enough to crack (take the difference of those) that people won't bother cracking it.

这篇关于跟踪的次视频被播放的次数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆