php - Playing MP3 songs without disclosing the path of the file -
i developing shopping cart in php sell songs in mp3 format. product display provide visitors/users listen song 1 time only. if use players jw player play song. player disclose file path in source code of web page , can download file directly.
what looking play song visitors not know path of song file.
how can avoid ? please advice.
thanks
you asking drm system. such thing not exist.
rationale:
- alice wants send message (mp3 file) bob
- alice not want eve message (mp3 file)
- bob , eve same person
this drm trying solve. can try hide fact end user. luck that...
(in above example can replace "alice" "server", "bob" "site visitor" , "eve" "an user wants download file without paying it".)
if accept can't have drm system, there're more possibilities:
- send fragment of file user until have payed it
- destroy/watermark sample file (e.g. @ 15 seconds playback, mp3 file contains recording "this demo version of song, actual purchased song not contain message".
note must have sample file different actual file you're selling. that's way fix problem of user getting actual file before paying it.
Comments
Post a Comment